Skip to content

Commit

Permalink
build: shade dependencies instead of bundling them
Browse files Browse the repository at this point in the history
fixes #604
  • Loading branch information
gtoison committed Oct 15, 2022
1 parent 13dd8b2 commit e78a0f0
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@
<plugin>
<groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
<artifactId>sonar-packaging-maven-plugin</artifactId>
<version>1.19.0.397</version>
<version>1.21.0.505</version>
<extensions>true</extensions>
<configuration>
<archive>
Expand All @@ -397,6 +397,7 @@
<pluginDescription>Analyze Java, Scala, Closure and JSP code with SpotBugs. ${spotbugs.version}</pluginDescription>
<pluginClass>org.sonar.plugins.findbugs.FindbugsPlugin</pluginClass>
<useChildFirstClassLoader>false</useChildFirstClassLoader>
<skipDependenciesPackaging>true</skipDependenciesPackaging>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -427,30 +428,29 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>3.4.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>commons-io:commons-io</include>
<include>org.codehaus.sonar:sonar-channel</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.apache.commons.io</pattern>
<shadedPattern>shaded.io</shadedPattern>
</relocation>
<relocation>
<pattern>org.sonar.channel</pattern>
<shadedPattern>shaded.channel</shadedPattern>
</relocation>
</relocations>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
<addHeader>false</addHeader>
</transformer>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</execution>
Expand Down

0 comments on commit e78a0f0

Please sign in to comment.