diff --git a/build.xml b/build.xml index 1e4f0654..5abce5fb 100644 --- a/build.xml +++ b/build.xml @@ -164,6 +164,14 @@ + + + + + + + + @@ -280,13 +288,7 @@ - - - - - - - + @@ -355,6 +357,7 @@ + @@ -714,11 +717,7 @@ - - - - - + diff --git a/src/main/java/de/thetaphi/forbiddenapis/gradle/CheckForbiddenApis.java b/src/main/java/de/thetaphi/forbiddenapis/gradle/CheckForbiddenApis.java index b7675668..94880a39 100644 --- a/src/main/java/de/thetaphi/forbiddenapis/gradle/CheckForbiddenApis.java +++ b/src/main/java/de/thetaphi/forbiddenapis/gradle/CheckForbiddenApis.java @@ -69,18 +69,23 @@ * For convenience, the plugin also defines an additional task {@code forbiddenApis} * that runs checks on all source sets. *

- * Installation can be done from your {@code build.gradle} file: + * Installation can be done from your {@code build.gradle} file using the Gradle {@code plugin} DSL: + *

+ * plugins {
+ *  id 'de.thetaphi.forbiddenapis' version '@VERSION@'
+ * }
+ * 
+ * Alternatively, you can use the following script snippet if dynamic configuration is required (e.g., for own tasks): *
  * buildscript {
  *  repositories {
  *   mavenCentral()
  *  }
  *  dependencies {
- *   classpath 'de.thetaphi:forbiddenapis:' + FORBIDDEN_APIS_VERSION
+ *   classpath '@GROUPID@:@ARTIFACTID@:@VERSION@'
  *  }
  * }
  * 
- * apply plugin: 'java'
  * apply plugin: 'de.thetaphi.forbiddenapis'
  * 
* After that you can add the following task configuration closures: