Make the JAR lighter by excluding unnecessary manifests
All checks were successful
/ build (push) Successful in 1m29s

This commit is contained in:
Minecon724 2025-05-31 13:56:15 +02:00
commit 050b26b0d6
Signed by untrusted user who does not match committer: m724
GPG key ID: A02E6E67AB961189

28
pom.xml
View file

@ -117,6 +117,34 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<minimizeJar>true</minimizeJar>
<filters>
<filter>
<artifact>*</artifact>
<excludes>
<exclude>META-INF/MANIFEST.MF</exclude>
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>