Skip to content

Commit

Permalink
GH-274 - Avoid dependency on Spring Core artifact for ArchUnit integr…
Browse files Browse the repository at this point in the history
…ation.

We now shade the few bits of the Spring Core artifact we depend on for generic type inspections and a few other tiny helpers.
  • Loading branch information
odrotbohm committed Oct 23, 2024
1 parent 0286a25 commit b79f4c9
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion jmolecules-archunit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,55 @@

</dependencies>

</project>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
<artifactSet>
<includes>
<include>org.springframework</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>org.springframework:spring-core</artifact>
<includes>
<include>org/springframework/core/ResolvableType*.class</include>
<include>org/springframework/core/SerializableTypeWrapper*.class</include>
<include>org/springframework/lang/Nullable.class</include>
<include>org/springframework/util/Assert.class</include>
<include>org/springframework/util/ClassUtils.class</include>
<include>org/springframework/util/ConcurrentReferenceHashMap*.class</include>
<include>org/springframework/util/ObjectUtils.class</include>
<include>org/springframework/util/StringUtils.class</include>
</includes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>org.springframework</pattern>
<shadedPattern>org.jmolecules.spring</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.commons.logging</pattern>
<shadedPattern>org.jmolecules.spring.logging</shadedPattern>
</relocation>
</relocations>
</configuration>
</plugin>
</plugins>
</build>

</project>

0 comments on commit b79f4c9

Please sign in to comment.