Skip to content

Commit 9678313

Browse files
committed
Relocate shaded dependecies and generate separate shaded artifact
1 parent f9794f2 commit 9678313

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

pom.xml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,22 @@
8585
<version>3.2.1</version>
8686
<executions>
8787
<execution>
88+
<id>shaded-jar</id>
8889
<phase>package</phase>
8990
<goals>
9091
<goal>shade</goal>
9192
</goals>
9293
<configuration>
94+
<relocations>
95+
<relocation>
96+
<pattern>com.fasterxml.jackson</pattern>
97+
<shadedPattern>hidden.com.fasterxml.jackson</shadedPattern>
98+
</relocation>
99+
<relocation>
100+
<pattern>org.apache</pattern>
101+
<shadedPattern>hidden.org.apache</shadedPattern>
102+
</relocation>
103+
</relocations>
93104
<artifactSet>
94105
<excludes>
95106
<exclude>com.infradna.tool:bridge-method-annotation</exclude>
@@ -100,6 +111,7 @@
100111
<exclude>com.google.code.findbugs:*</exclude>
101112
</excludes>
102113
</artifactSet>
114+
<shadedArtifactAttached>true</shadedArtifactAttached>
103115
<filters>
104116
<filter>
105117
<artifact>*:*</artifact>
@@ -538,7 +550,7 @@
538550
<groupId>com.github.spotbugs</groupId>
539551
<artifactId>spotbugs-annotations</artifactId>
540552
<version>${spotbugs.version}</version>
541-
<optional>true</optional>
553+
<scope>provided</scope>
542554
</dependency>
543555
<dependency>
544556
<groupId>com.github.tomakehurst</groupId>

0 commit comments

Comments
 (0)