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 3.4
Created 02 October 2022.
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 "3.4"
}
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:3.4") }
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:3.4") } } apply(plugin = "de.thetaphi.forbiddenapis")
- Applying plugins to all subprojects .