Skip to content

Commit 909ddf4

Browse files
Add JUnit Platform Launcher to subprojects (#5958)
Closes gh-5957
1 parent fdeb238 commit 909ddf4

File tree

13 files changed

+12
-12
lines changed

13 files changed

+12
-12
lines changed

build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ subprojects {
7070
apply plugin: 'java'
7171
} else {
7272
apply plugin: 'java-library'
73+
dependencies {
74+
testImplementation libs.junitJupiter
75+
testRuntimeOnly libs.junitPlatformLauncher
76+
}
7377
}
7478
apply plugin: 'com.github.hierynomus.license'
7579
apply plugin: 'checkstyle'

docs/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ dependencies {
2929
testImplementation project(':micrometer-test')
3030
testImplementation project(':micrometer-observation-test')
3131
testImplementation 'org.aspectj:aspectjweaver'
32-
testImplementation libs.junitJupiter
3332
testImplementation 'org.assertj:assertj-core'
3433
testImplementation 'org.springframework:spring-context'
3534
testImplementation 'io.projectreactor:reactor-core'

gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jmh = "1.37"
4949
jooqNew = "3.19.8"
5050
jsr107 = "1.1.1"
5151
jsr305 = "3.0.2"
52-
junit = "5.10.5"
52+
junit = "5.12.0"
5353
kafka = "2.8.2"
5454
kafka-junit = "4.2.10"
5555
latency-utils = "2.0.3"

micrometer-commons/build.gradle

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ dependencies {
77
// Aspects
88
optionalApi 'org.aspectj:aspectjweaver'
99

10-
// JUnit 5
11-
testImplementation libs.junitJupiter
1210
testImplementation 'org.assertj:assertj-core'
1311
}
1412

micrometer-core/build.gradle

-2
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ dependencies {
148148
// testImplementation 'com.google.dagger:dagger'
149149
// testAnnotationProcessor 'com.google.dagger:dagger-compiler'
150150

151-
// JUnit 5
152-
testImplementation libs.junitJupiter
153151
testImplementation(libs.archunitJunit5) {
154152
// avoid transitively pulling in slf4j 2
155153
exclude group: "org.slf4j", module: "slf4j-api"

micrometer-jakarta9/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ dependencies {
1919

2020
optionalApi 'jakarta.jms:jakarta.jms-api'
2121

22-
testImplementation libs.junitJupiter
2322
testImplementation(libs.archunitJunit5) {
2423
// avoid transitively pulling in slf4j 2
2524
exclude group: "org.slf4j", module: "slf4j-api"

micrometer-jetty11/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ dependencies {
44
api project(":micrometer-core")
55
api libs.jetty11Server
66

7-
testImplementation libs.junitJupiter
87
testImplementation 'org.assertj:assertj-core'
98
}
109

micrometer-observation/build.gradle

-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ dependencies {
3131

3232
testImplementation 'org.springframework:spring-context'
3333

34-
// JUnit 5
35-
testImplementation libs.junitJupiter
3634
testImplementation(libs.archunitJunit5) {
3735
// avoid transitively pulling in slf4j 2
3836
exclude group: "org.slf4j", module: "slf4j-api"

micrometer-osgi-test/build.gradle

-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import aQute.bnd.gradle.TestOSGi
44

55
dependencies {
66
testImplementation 'org.assertj:assertj-core'
7-
testImplementation libs.junitJupiter
87
testImplementation libs.osgiJunit5
98
testImplementation 'org.slf4j:slf4j-api'
109

@@ -17,7 +16,6 @@ dependencies {
1716

1817
testImplementation libs.felixFramework
1918

20-
testRuntimeOnly libs.junitPlatformLauncher
2119
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
2220
testRuntimeOnly libs.felixScr
2321
testRuntimeOnly libs.slfj4Simple

samples/micrometer-samples-hazelcast3/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ dependencies {
1212
implementation 'ch.qos.logback:logback-classic'
1313

1414
testImplementation project(':micrometer-test')
15+
testImplementation libs.junitJupiter
16+
testRuntimeOnly libs.junitPlatformLauncher
1517
testImplementation libs.mockitoCore5
1618
}

samples/micrometer-samples-jersey3/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dependencies {
2222

2323
testImplementation libs.jersey3TestFrameworkJdkHttp
2424
testImplementation libs.junitJupiter
25+
testRuntimeOnly libs.junitPlatformLauncher
2526
testImplementation 'org.assertj:assertj-core'
2627
testImplementation libs.awaitility
2728
}

samples/micrometer-samples-jooq/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependencies {
1313
implementation libs.jooqLatest
1414

1515
testImplementation libs.junitJupiter
16+
testRuntimeOnly libs.junitPlatformLauncher
1617
testImplementation libs.assertj
1718
testImplementation libs.mockitoCore5
1819

samples/micrometer-samples-kotlin/build.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@ dependencies {
2222
testRuntimeOnly libs.contextPropagation
2323

2424
testImplementation project(":micrometer-test")
25+
26+
testImplementation libs.junitJupiter
27+
testRuntimeOnly libs.junitPlatformLauncher
2528
}

0 commit comments

Comments
 (0)