Skip to content

Commit d2d4ce3

Browse files
authored
Use junit bom and align more with other repos (#55)
1 parent 585f3df commit d2d4ce3

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ dependencies {
4444
compileOnly("io.grpc:grpc-api:$grpcVersion")
4545
compileOnly("io.grpc:grpc-protobuf:$grpcVersion")
4646
compileOnly("io.grpc:grpc-stub:$grpcVersion")
47-
48-
testImplementation("org.junit.jupiter:junit-jupiter:5.12.0")
49-
testImplementation("org.assertj:assertj-core:3.27.3")
50-
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.12.0")
5147
}
5248

5349
protobuf {

buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,20 @@ configurations.configureEach {
8686
preferProjectModules()
8787
}
8888
}
89+
90+
testing {
91+
suites.withType(JvmTestSuite::class).configureEach {
92+
dependencies {
93+
implementation(project(project.path))
94+
95+
implementation(enforcedPlatform("org.junit:junit-bom:5.12.0"))
96+
implementation(enforcedPlatform("org.assertj:assertj-bom:3.27.3"))
97+
98+
implementation("org.junit.jupiter:junit-jupiter-api")
99+
implementation("org.assertj:assertj-core")
100+
101+
runtimeOnly("org.junit.jupiter:junit-jupiter-engine")
102+
runtimeOnly("org.junit.platform:junit-platform-launcher")
103+
}
104+
}
105+
}

0 commit comments

Comments
 (0)