policeman-tools/forbidden-apis

Policeman's Forbidden API Checker

372

stars

767

commits

Java

primary language

Jul 3, 2026

updated

ant
checker
code-analysis
gradle
java
maven
static-analysis
staticanalysis
static-code-analysis

README

Policeman's Forbidden API Checker

Allows to parse Java byte code to find invocations of method/class/field signatures and fail build (Apache Ant, Apache Maven, or Gradle).

Maven Central Build Status

Documentation

Please refer to the Github Wiki & Documentation.

The checker is available as Apache Ant Task, Apache Maven Mojo, and Gradle plugin. In addition there is a command line tool (CLI):

This project uses Apache Ant (and Apache Ivy) to build. The minimum Ant version is 1.8.0 and it is recommended to not have Apache Ivy in the Ant lib folder, because the build script will download the correct version of Ivy automatically.

Project Resources

Contributors

uschindler

732 commits

joschi

4 commits

kwin

4 commits

dweiss

4 commits

policeman-tools/forbidden-apis

Policeman's Forbidden API Checker

372

stars

767

commits

Java

primary language

Jul 3, 2026

updated

ant
checker
code-analysis
gradle
java
maven
static-analysis
staticanalysis
static-code-analysis

README

Policeman's Forbidden API Checker

Allows to parse Java byte code to find invocations of method/class/field signatures and fail build (Apache Ant, Apache Maven, or Gradle).

Maven Central Build Status

Documentation

Please refer to the Github Wiki & Documentation.

The checker is available as Apache Ant Task, Apache Maven Mojo, and Gradle plugin. In addition there is a command line tool (CLI):

This project uses Apache Ant (and Apache Ivy) to build. The minimum Ant version is 1.8.0 and it is recommended to not have Apache Ivy in the Ant lib folder, because the build script will download the correct version of Ivy automatically.

Project Resources

Contributors

uschindler

732 commits

joschi

4 commits

kwin

4 commits

dweiss

4 commits

Languages

Java

82.9%

HTML

5.6%

CSS

4.7%

XSLT

3.5%

Groovy

3.2%