SilverAndro / Machete

A gradle plugin to optimize built jars through individual file optimizations and increased compression
Mozilla Public License 2.0
21 stars 1 forks source link

Jar ordering weirdness #8

Open lukebemish opened 1 year ago

lukebemish commented 1 year ago

It appears to be dependent on the local environment (as in, it occurs on a GH actions run but not on my local machine), but machete seems to somewhat not preserve jar ordering, resulting in a jar where the MANIFEST.MF file is not the first or second entry of the jar (see https://github.com/openjdk/jdk17u/blob/aa8c46ca52c2f983470ab4c05e64c1ae85aa3b8e/src/java.base/share/classes/java/util/jar/JarInputStream.java#L78-L85 for why this for why this is an issue).