Skip to content

Commit

Permalink
Shade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrptonaught committed May 8, 2024
1 parent 5642d70 commit 2890603
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,33 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>com.google.gson</pattern>
<shadedPattern>shaded.toolbox.gson</shadedPattern>
</relocation>
</relocations>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>net.kyrptonaught.ToolBoxBootstrap.Main</mainClass>
</transformer>
</transformers>
<minimizeJar>true</minimizeJar>
<entryPoints>
<entryPoint>net.kyrptonaught.ToolBoxBootstrap.Main</entryPoint>
</entryPoints>
<outputFile>target/dist/Toolbox2.0.jar</outputFile>
</configuration>
</execution>
</executions>
<configuration>
<outputDirectory>target/dist</outputDirectory>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<finalName>Toolbox2.0</finalName>
<appendAssemblyId>false</appendAssemblyId>
<archive>
<manifest>
<mainClass>net.kyrptonaught.ToolBoxBootstrap.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit 2890603

Please sign in to comment.