Skip to content

Commit 6a60e50

Browse files
committed
feat(deps): apply junit dependencies all gradle subprojects
1 parent b368002 commit 6a60e50

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ allprojects {
2424
sourceCompatibility = JavaVersion.VERSION_1_8
2525
targetCompatibility = JavaVersion.VERSION_1_8
2626

27-
tasks.withType(JavaCompile) {
27+
tasks.withType(JavaCompile).configureEach {
2828
options.encoding = 'UTF-8'
2929
}
3030

@@ -120,7 +120,7 @@ subprojects {
120120
}
121121
}
122122

123-
tasks.withType(Test) {
123+
tasks.withType(Test).configureEach {
124124
// Enable JUnit 5 (Gradle 4.6+).
125125
useJUnitPlatform()
126126

@@ -138,5 +138,8 @@ subprojects {
138138
// prevent circular dependency
139139
implementation project(':core')
140140
}
141+
142+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.0'
143+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.0'
141144
}
142145
}

0 commit comments

Comments
 (0)