Skip to content

Commit c21bad2

Browse files
author
Marcel Schnelle
committed
Big overhaul to the way classpath setup works in this plugin
* Instead of trying to replicate whatever magic the Android Plugin applies, simply leverage its power & share the classpath of the default unit tests * Moved away from JUnit 5's Gradle Plugin a little more by removing the inheritance from its Java-based plugin * Moved setup of the JUnit 5 test tasks to their own class, using an initialization approach not unlike the AGP's, with ConfigAction * Repackaged classes
1 parent aa34dcc commit c21bad2

File tree

11 files changed

+381
-404
lines changed

11 files changed

+381
-404
lines changed

android-junit5/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ dependencies {
5050
testCompile "junit:junit:$JUNIT4_VERSION"
5151
testCompile("org.spockframework:spock-core:$SPOCK_VERSION") { transitive = false }
5252

53+
testCompileOnly "com.android.tools.build:gradle:$ANDROID_PLUGIN_VERSION_3X"
5354
testAgp2xCompile "com.android.tools.build:gradle:$ANDROID_PLUGIN_VERSION_2X"
5455
testAgp3xCompile "com.android.tools.build:gradle:$ANDROID_PLUGIN_VERSION_3X"
5556
}

android-junit5/src/main/groovy/de/mannodermaus/gradle/anj5/AndroidJUnit5Compat.groovy

Lines changed: 0 additions & 53 deletions
This file was deleted.

android-junit5/src/main/groovy/de/mannodermaus/gradle/anj5/AndroidJUnitPlatformPlugin.groovy

Lines changed: 0 additions & 324 deletions
This file was deleted.

0 commit comments

Comments
 (0)