Skip to content

Commit

Permalink
Shade guava and netty
Browse files Browse the repository at this point in the history
  • Loading branch information
spkrka committed Feb 15, 2019
1 parent 9d1921b commit ea7a5ec
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions folsom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,44 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
<minimizeJar/>
<createDependencyReducedPom/>
<artifactSet>
<includes>
<include>com.google.guava:guava</include>
<include>io.netty:*</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>com.google.common</pattern>
<shadedPattern>com.spotify.folsom.shaded.guava24</shadedPattern>
</relocation>
<relocation>
<pattern>io.netty</pattern>
<shadedPattern>com.spotify.folsom.shaded.netty</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit ea7a5ec

Please sign in to comment.