Is there a way to get Gradle to NOT compress the files when using the "jar" task?
I can't for the life of me find any reference to setting the compression settings for a jar.
This may only be in the newer version of gradle, but you can now specify entryCompression
for your jar
task:
ZipEntryCompression entryCompression
The compression level of the entries of the archive. If set to ZipEntryCompression.DEFLATED (the default), each entry is compressed using the DEFLATE algorithm. If set to ZipEntryCompression.STORED the entries of the archive are left uncompressed.
Gradle's Jar task doesn't currently support any compression options. To generate an uncompressed Jar, use the Ant task.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With