de.thetaphi.forbiddenapis
Owner: Uwe Schindler
Allows to parse Java byte code to find invocations of method/class/field signatures and fail build.
https://github.com/policeman-tools/forbidden-apis
Sources: https://github.com/policeman-tools/forbidden-apis.git
Version 2.5
Created 02 September 2018.
Allows to parse Java byte code to find invocations of method/class/field signatures and fail build.
Add this plugin to your build using the plugins DSL:
plugins {
id("de.thetaphi.forbiddenapis") version "2.5"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts)
:dependencies { implementation("de.thetaphi.forbiddenapis:de.thetaphi.forbiddenapis.gradle.plugin:2.5") }
It can then be applied in the precompiled script plugin:plugins { id("de.thetaphi.forbiddenapis") }
-
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("de.thetaphi.forbiddenapis:de.thetaphi.forbiddenapis.gradle.plugin:2.5") } } apply(plugin = "de.thetaphi.forbiddenapis")
- Applying plugins to all subprojects .