Skip to content

Commit

Permalink
fix: Shading config around dependencies that are MultiRelease and JPMS.
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbasjes committed Dec 2, 2023
1 parent a0ee343 commit fd56b24
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions analyzer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@
<excludes>
<exclude>META-INF/services/**</exclude>
<exclude>META-INF/MANIFEST.MF</exclude>
<!-- Also relocated so we do not want these anymore -->
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
<filter>
Expand All @@ -225,23 +227,32 @@
<exclude>META-INF/MANIFEST.MF</exclude>
<!-- The snakeyaml is a `Multi-Release Jar` and the maven-shade-plugin does not (yet) -->
<!-- do the relocation of the additional versions correctly. -->
<!-- https://issues.apache.org/jira/browse/MSHADE-406 -->
<exclude>META-INF/versions/**</exclude>
<!-- Also relocated so we do not want these anymore -->
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
<filter>
<artifact>org.apache.commons:commons-text</artifact>
<excludes>
<exclude>META-INF/MANIFEST.MF</exclude>
<exclude>META-INF/*.txt</exclude>
<!-- If not excluded shading overwrites the module-info.class for Yauaa -->
<exclude>META-INF/versions/9/module-info.class</exclude>
<exclude>META-INF/versions/**</exclude>
<!-- Also relocated so we do not want these anymore -->
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
<filter>
<artifact>org.apache.commons:commons-lang3</artifact>
<excludes>
<exclude>META-INF/MANIFEST.MF</exclude>
<exclude>META-INF/*.txt</exclude>
<!-- If not excluded shading overwrites the module-info.class for Yauaa -->
<exclude>META-INF/versions/9/module-info.class</exclude>
<exclude>META-INF/versions/**</exclude>
<!-- Also relocated so we do not want these anymore -->
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
</filters>
Expand All @@ -263,6 +274,16 @@
<shadedPattern>${project.groupId}.${project.artifactId}.shaded.org.apache.commons.lang3</shadedPattern>
</relocation>
</relocations>
<artifactSet>
<includes>
<include>org.antlr:antlr4-runtime</include>
<include>org.yaml:snakeyaml</include>
<!-- These are shaded in because of backward compatibility problems when using Yauaa -->
<!-- in an environment which has already loaded an older version of either of these. -->
<include>org.apache.commons:commons-text</include>
<include>org.apache.commons:commons-lang3</include>
</includes>
</artifactSet>
</configuration>

<executions>
Expand All @@ -272,18 +293,6 @@
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>org.antlr:antlr4-runtime</include>
<include>org.yaml:snakeyaml</include>
<!-- These are shaded in because of backward compatibility problems when using Yauaa -->
<!-- in an environment which has already loaded an older version of either of these. -->
<include>org.apache.commons:commons-text</include>
<include>org.apache.commons:commons-lang3</include>
</includes>
</artifactSet>
</configuration>
</execution>

</executions>
Expand Down

0 comments on commit fd56b24

Please sign in to comment.