Skip to content

Commit a0bc02b

Browse files
committed
Add junit5EmbeddedRuntime dependency handler
1 parent a728b12 commit a0bc02b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

android-junit5/src/main/groovy/de/mannodermaus/gradle/plugins/android_junit5/AndroidJUnitPlatformExtension.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ class AndroidJUnitPlatformExtension extends JUnitPlatformExtension {
2525
* The version of JUnit Vintage Engine to use.*/
2626
String vintageVersion = "4.12.1"
2727

28+
/**
29+
* The version of the JUnit 5 Embedded Runtime to use.*/
30+
String embeddedRuntimeVersion = "1.0.0-RC3-rev1"
31+
2832
/**
2933
* Configuration of Jacoco Code Coverage reports.*/
3034
void jacoco(Action<AndroidJUnit5JacocoExtension> closure) {

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ class AndroidJUnitPlatformPlugin implements Plugin<Project> {
107107
return project.dependencies.create("org.junit.jupiter:junit-jupiter-params:$jupiterVersion")
108108
}
109109

110+
project.dependencies.ext.junit5EmbeddedRuntime = {
111+
def embeddedRuntimeVersion = junitExtension.embeddedRuntimeVersion
112+
113+
return project.dependencies.create("de.mannodermaus.gradle.plugins:android-junit5-embedded-runtime:$embeddedRuntimeVersion")
114+
}
115+
110116
project.afterEvaluate {
111117
configure(project)
112118
}

0 commit comments

Comments
 (0)