You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(since version 2.0) The plugin registers a separate task for each defined sourceSet using the default task naming convention.
For default Java projects, two tasks are created: forbiddenApisMain and forbiddenApisTest.
Additional source sets will produce a task with similar names ('forbiddenApis' + nameOfSourceSet).
All tasks are added as dependencies to the check default Gradle task. For convenience, the plugin
also defines an additional task forbiddenApis that runs checks on all source sets.
Installation can be done from your build.gradle file using the Gradle plugin DSL:
plugins {
id 'de.thetaphi.forbiddenapis' version '3.9'
}
Alternatively, you can use the following script snippet if dynamic configuration is required (e.g., for own tasks):
(using the += notation, you can add additional bundled signatures to the defaults).
To define those defaults, which are used by all source sets, you can use the extension / convention mapping provided by the corresponding extension: