-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Testing Gradle Plugin Before Pushing to GitHub
A change to JUnit 5's gradle plugin usually takes two roundtrips since the junit5 build has to get the plugin from https://oss.sonatype.org/content/repositories/snapshots. If you want to test the plugin without deploying it first, you can follow a few steps:
Modify JUnit5Plugin and JUnit5Extension as necessary.
$> gradle clean install
This builds and installs the junit-gradle snapshot JAR in your local Maven repository.
Make changes to junit5
configuration blocks in Gradle build files as necessary.
Uncomment // mavenLocal()
in the buildscript
section of build.gradle
in the root project.
$> gradle clean test --refresh-dependencies
This will execute the junit5Test
tasks against the junit-gradle
snapshot JAR in your local Maven repository (using your local changes from Step #0).
Make sure mavenLocal()
in the buildscript
section of build.gradle
in the root project is commented out.
$> gradle clean test --refresh-dependencies
This will pull down the latest snapshot from the Sonatype snapshot repository (i.e., stop using your local junit-gradle snapshot JAR).