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
olcbean edited this page Sep 16, 2018
·
2 revisions
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:
Step 0:
Modify JUnit5Plugin and JUnit5Extension as necessary.
Step 1:
$> gradle clean install
This builds and installs the junit-gradle snapshot JAR in your local Maven repository.
Step 2:
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).
Step 3:
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).