Skip to content

Commit eb55691

Browse files
committed
Add shading of dependencies
Fixes hub4j#630
1 parent dd508e7 commit eb55691

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ target
77
.project
88
.settings/
99
.DS_Store
10+
11+
dependency-reduced-pom.xml

pom.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,49 @@
8282
<failOnWarnings>true</failOnWarnings>
8383
</configuration>
8484
</plugin>
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-shade-plugin</artifactId>
88+
<version>3.2.1</version>
89+
</plugin>
8590
</plugins>
8691
</pluginManagement>
8792
<plugins>
93+
<plugin>
94+
<groupId>org.apache.maven.plugins</groupId>
95+
<artifactId>maven-shade-plugin</artifactId>
96+
<executions>
97+
<execution>
98+
<phase>package</phase>
99+
<goals>
100+
<goal>shade</goal>
101+
</goals>
102+
<configuration>
103+
<artifactSet>
104+
<excludes>
105+
<exclude>com.infradna.tool:bridge-method-annotation</exclude>
106+
<exclude>org.jenkins-ci:annotation-indexer</exclude>
107+
<exclude>com.squareup.*:*</exclude>
108+
<exclude>org.jetbrains*:*</exclude>
109+
<exclude>com.github.spotbugs:*</exclude>
110+
<exclude>com.google.code.findbugs:*</exclude>
111+
</excludes>
112+
</artifactSet>
113+
<filters>
114+
<filter>
115+
<artifact>*:*</artifact>
116+
<excludes>
117+
<exclude>module-info.class</exclude>
118+
<exclude>META-INF/*.SF</exclude>
119+
<exclude>META-INF/*.DSA</exclude>
120+
<exclude>META-INF/*.RSA</exclude>
121+
</excludes>
122+
</filter>
123+
</filters>
124+
</configuration>
125+
</execution>
126+
</executions>
127+
</plugin>
88128
<plugin>
89129
<groupId>org.apache.maven.plugins</groupId>
90130
<artifactId>maven-site-plugin</artifactId>

0 commit comments

Comments
 (0)