File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff 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
5349protobuf {
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments