Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/brave-pandas-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
bump: patch
---

decrease generated jar file size
19 changes: 18 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<minimizeJar>true</minimizeJar>
<filters>
<!-- Both are loaded reflectively, so the minimizer cannot see the
references and would strip them. Keep each artifact whole. -->
<filter>
<artifact>net.wesjd:anvilgui</artifact>
<includes><include>**</include></includes>
</filter>
<filter>
<artifact>org.bstats:*</artifact>
<includes><include>**</include></includes>
</filter>
<filter>
<artifact>*:*</artifact>
<excludes><exclude>META-INF/maven/**</exclude></excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>net.wesjd.anvilgui</pattern>
Expand Down Expand Up @@ -127,7 +144,7 @@
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>RELEASE</version>
<scope>compile</scope>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.luckperms</groupId>
Expand Down
Loading