Skip to content

Commit 513edc3

Browse files
committed
Add forbiddenapis in core runtime packages and ban some WildFly Common
1 parent b08de8b commit 513edc3

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

.forbiddenapis/banned-signatures-common.txt

+10
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,13 @@ org.jboss.jandex.AnnotationValue#toString()
66
@defaultMessage Replace this by using InputStream.transferTo(OutputStream)
77
org.apache.commons.io.IOUtils#copy(java.io.InputStream,java.io.OutputStream)
88
org.apache.commons.compress.utils.IOUtils#copy(java.io.InputStream,java.io.OutputStream)
9+
10+
@defaultMessage We should avoid using WildFly Common APIs
11+
org.wildfly.common.Assert
12+
org.wildfly.common.net.**
13+
org.wildfly.common.os.**
14+
15+
@defaultMessage Use JUnit asserts
16+
io.smallrye.common.Assert.assertTrue(**)
17+
io.smallrye.common.Assert.assertFalse(**)
18+
io.smallrye.common.Assert.assertNotNull(**)

core/runtime/pom.xml

+9
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,15 @@
303303
</execution>
304304
</executions>
305305
</plugin>
306+
<plugin>
307+
<groupId>de.thetaphi</groupId>
308+
<artifactId>forbiddenapis</artifactId>
309+
<configuration>
310+
<excludes>
311+
<exclude>**/Target_org_wildfly_common_net*</exclude>
312+
</excludes>
313+
</configuration>
314+
</plugin>
306315
</plugins>
307316
</build>
308317

extensions/vertx-http/runtime/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@
138138
</execution>
139139
</executions>
140140
</plugin>
141+
<plugin>
142+
<groupId>de.thetaphi</groupId>
143+
<artifactId>forbiddenapis</artifactId>
144+
</plugin>
141145
</plugins>
142146
</build>
143147
</project>

extensions/vertx/runtime/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@
118118
</execution>
119119
</executions>
120120
</plugin>
121+
<plugin>
122+
<groupId>de.thetaphi</groupId>
123+
<artifactId>forbiddenapis</artifactId>
124+
</plugin>
121125
</plugins>
122126
</build>
123127
</project>

0 commit comments

Comments
 (0)