Skip to content

Commit ad5fb35

Browse files
scordiojoel-costigliola
authored andcommitted
Enforce banned dependencies in maven-enforcer-plugin
1 parent 392fc22 commit ad5fb35

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,31 @@
139139
</dependencies>
140140
<build>
141141
<plugins>
142+
<plugin>
143+
<groupId>org.apache.maven.plugins</groupId>
144+
<artifactId>maven-enforcer-plugin</artifactId>
145+
<executions>
146+
<execution>
147+
<id>enforce-banned-dependencies</id>
148+
<goals>
149+
<goal>enforce</goal>
150+
</goals>
151+
<configuration>
152+
<rules>
153+
<bannedDependencies>
154+
<includes>
155+
<include>net.bytebuddy:byte-buddy</include>
156+
</includes>
157+
<excludes>
158+
<exclude>org.assertj:assertj-core</exclude>
159+
<exclude>*:*:*:jar:compile</exclude>
160+
</excludes>
161+
</bannedDependencies>
162+
</rules>
163+
</configuration>
164+
</execution>
165+
</executions>
166+
</plugin>
142167
<plugin>
143168
<groupId>org.apache.maven.plugins</groupId>
144169
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)