diff --git a/README.md b/README.md index a9f0219..4392d46 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,27 @@ # Nondex-Gradle-Plugin -To use the plugin, add the following in your build.gradle: +To use the plugin, add the following in your build.gradle(.kts): ## Groovy ``` plugins { - id 'edu.illinois.nondexGradle' version '2.1.1' + id 'edu.illinois.nondexGradle' version '2.1.7' +} +``` +Apply it to subjects (if any, optional): +``` +subprojects { + apply plugin: 'edu.illinois.nondex' } ``` ## Kotlin ``` plugins { - id("edu.illinois.nondexGradle") version "2.1.1" + id("edu.illinois.nondexGradle") version "2.1.7" +} +``` +Apply it to subjects (if any, optional): +``` +subprojects { + apply(plugin = "edu.illinois.nondex") } ``` @@ -17,13 +29,13 @@ The NonDex tasks are based off of Gradle's test task. As such, it is recommended ## Before ``` test { - useJUnitPlatform() + ... } ``` ## After ``` tasks.withType(Test) { - useJUnitPlatform() + ... } ``` If you do not want to configure all the tasks that extend the Gradle Test task or if you want to configure the NonDex in a different way, you can specify the configurations for each individual NonDex task as needed. @@ -43,6 +55,6 @@ To get more information on the task options, run: ./gradlew help --task nondexTest ``` -If you want to have NonDex for Maven project or learn more about NonDex, please visit the [NonDex repository](https://github.com/TestingResearchIllinois/NonDex). +If you want to run NonDex on Maven projects or learn more about NonDex, please visit the [NonDex repository](https://github.com/TestingResearchIllinois/NonDex).