Skip to content

Commit

Permalink
Enforce test only dependencies in test modules
Browse files Browse the repository at this point in the history
  • Loading branch information
scordio committed Sep 4, 2022
1 parent b0e92f3 commit 1e655c0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions assertj-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,31 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-test-only-dependencies</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<bannedDependencies>
<includes>
<include>*:*:*:jar:test</include>
</includes>
<excludes>
<exclude>*</exclude>
</excludes>
</bannedDependencies>
<dependencyConvergence/>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down

0 comments on commit 1e655c0

Please sign in to comment.