Skip to content

Package uber JAR with Proguard #4129

@badmannersteam

Description

@badmannersteam

As I see there are 2 variants now:

  1. packageReleaseUberJarForCurrentOS produces uber jar, but it's not obfuscated even in Release version
  2. createReleaseDistributable/packageReleaseDistributionForCurrentOS use proguard, but it produces the same jars as input because of this code from AbstractProguardTask:
jarsConfigurationFile.ioFile.bufferedWriter().use { writer ->
    for ((input, output) in inputToOutputJars.entries) {
        writer.writeLn("-injars '${input.normalizedPath()}'")
        writer.writeLn("-outjars '${output.normalizedPath()}'")
    }
    // ...
}

Can you please add a possibility to package all classes to the single uber JAR after proguard, for example by specifying a single output jar in proguard config?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions