Skip to content

Commit

Permalink
build(Gradle): Configure the distTar task to use GZIP compression
Browse files Browse the repository at this point in the history
Although contained JARs already are compressed, this reduces the final
archive size by about 20 MiB compared to the plain TAR. As a side note,
BZIP2 compression yields about the same archive size, but is about 4
times slower (5s vs 20s) to compress.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Mar 1, 2024
1 parent 129bb20 commit b70a60d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ tasks.named<CreateStartScripts>("startScripts") {
}
}

tasks.named<Tar>("distTar") {
compression = Compression.GZIP
}

tasks.named<JavaExec>("run") {
System.getenv("TERM")?.also {
val mode = it.substringAfter('-', "16color")
Expand Down

0 comments on commit b70a60d

Please sign in to comment.