Allows to parse Java byte code to find invocations of method/class/field signatures and fail build.
Maven repository:
https://mvnrepository.com/artifact/de.thetaphi/forbiddenapis/3.4
Home Page:
https://github.com/policeman-tools/forbidden-apis
Plugin coordinates:
- Group Id: de.thetaphi
- Artifact Id: forbiddenapis
Goal Prefix: forbiddenapis
The
forbiddenapis plugin has the following goals:
-
help:
Display help information on forbiddenapis.
-
check:
Check if no project generated class files (compile scope) contain calls to forbidden APIs from the project classpath
and a list of API signatures (either inline or as pointer to files or bundled signatures).
-
testCheck:
Check if no project generated class files (test scope) contain calls to forbidden APIs from the project classpath
and a list of API signatures (either inline or as pointer to files or bundled signatures).