Skip to content

1.10.0

Compare
Choose a tag to compare
@eed3si9n eed3si9n released this 03 Oct 21:57
· 14 commits to develop since this release
v1.10.0
b34e3d3

drop-in CLI

Jar Jar Abrams 1.10.0 implements drop-in CLI for jarjar CLI's process command. Unlike the original, this has the advantage of various upkeeps we've applied, handling of Scala symbols and synthetic class names, and more reproducible JAR output (all timestamps reset to 2010).

$ curl -L https://repo1.maven.org/maven2/com/eed3si9n/jarjarabrams/jarjar-abrams-assembly_2.12/1.10.0/jarjar-abrams-assembly_2.12-1.10.0.jar > jarjar-abrams-assembly_2.12-1.10.0.jar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 9773k  100 9773k    0     0  3993k      0  0:00:02  0:00:02 --:--:-- 4005k
$ java -jar jarjar-abrams-assembly_2.12-1.10.0.jar --help
Jar Jar Abrams - A utility to repackage and embed Java and Scala libraries
...
$ cat example/shade.rules
rule net.bytebuddy.agent.** foo.@1
$ java -jar jarjar-abrams-assembly_2.12-1.10.0.jar process example/shade.rules example/byte-buddy-agent.jar /tmp/byte-buddy-agent-shaded.jar
$ unzip -l /tmp/byte-buddy-agent-shaded.jar | head
Archive:  /tmp/byte-buddy-agent-shaded.jar
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  01-01-2010 00:00   META-INF/
        0  01-01-2010 00:00   META-INF/maven/
        0  01-01-2010 00:00   META-INF/maven/net.bytebuddy/
        0  01-01-2010 00:00   META-INF/maven/net.bytebuddy/byte-buddy-agent/
        0  01-01-2010 00:00   META-INF/versions/
        0  01-01-2010 00:00   META-INF/versions/9/
        0  01-01-2010 00:00   foo/

This was contributed by @eed3si9n in #37

Full Changelog: v1.9.0...v1.10.0