Skip to content

Commit

Permalink
Properly shade the dependencies
Browse files Browse the repository at this point in the history
so as to not conflict with user runtime
  • Loading branch information
httpdigest committed Aug 17, 2017
1 parent 4b306cf commit 92b9e6a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
/.classpath
/.project
/*.iml
/dependency-reduced-pom.xml
22 changes: 22 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
<dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
Expand All @@ -208,7 +209,28 @@
<pattern>org.objectweb.asm</pattern>
<shadedPattern>org.lwjglx.debug.org.objectweb.asm</shadedPattern>
</relocation>
<relocation>
<pattern>org.eclipse.jetty</pattern>
<shadedPattern>org.lwjglx.debug.org.eclipse.jetty</shadedPattern>
</relocation>
<relocation>
<pattern>javax</pattern>
<shadedPattern>org.lwjglx.debug.javax</shadedPattern>
</relocation>
<relocation>
<pattern>joptsimple</pattern>
<shadedPattern>org.lwjglx.debug.joptsimple</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>org.eclipse.jetty*:*</artifact>
<excludes>
<exclude>about.html</exclude>
<exclude>jetty-dir.css</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit 92b9e6a

Please sign in to comment.