How to configure gradle that nested jar files must be stored without compression?

Viewed 269

In my gradle configuration, I wanted to enforce that nested jar files must be stored without compression. In Maven, we can define the configuration like this below:

<build>
     <pluginManagement>
         <plugins>
             <plugin>
                 <configuration>
                     <archive>
                         <compress>false</compress>
                    </archive>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>
  </build>

My question, how to configure such configuration with gradle?

1 Answers

There is a entryCompression attribute for the jar, zip, ear and tar plugins (since at least gradle 5).

The actual propagation/configuration is specific to your build.gradle.

Related