1+ import aQute.bnd.gradle.BundleTaskExtension
12import net.ltgt.gradle.errorprone.CheckSeverity
2- import org.gradle.api.file.DuplicatesStrategy
33import org.jetbrains.kotlin.gradle.dsl.JvmTarget
44import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
55
@@ -127,9 +127,10 @@ dependencies {
127127 implementation ' org.antlr:antlr4-runtime:' + antlrVersion
128128 implementation ' com.google.guava:guava:' + guavaVersion
129129
130- testImplementation ' junit:junit:4.13.2'
130+ testImplementation ' org.junit.jupiter:junit-jupiter:5.14.1'
131+
131132 testImplementation ' org.spockframework:spock-core:2.3-groovy-4.0'
132- testImplementation ' net.bytebuddy:byte-buddy:1.17.8 '
133+ testImplementation ' net.bytebuddy:byte-buddy:1.18.1 '
133134 testImplementation ' org.objenesis:objenesis:3.4'
134135 testImplementation ' org.apache.groovy:groovy:4.0.28"'
135136 testImplementation ' org.apache.groovy:groovy-json:4.0.28'
@@ -141,14 +142,14 @@ dependencies {
141142
142143 testImplementation ' org.reactivestreams:reactive-streams-tck:' + reactiveStreamsVersion
143144 testImplementation " io.reactivex.rxjava2:rxjava:2.2.21"
144- testImplementation " io.projectreactor:reactor-core:3.7.12 "
145+ testImplementation " io.projectreactor:reactor-core:3.8.0 "
145146
146147 testImplementation ' org.testng:testng:7.11.0' // use for reactive streams test inheritance
147148 testImplementation " com.tngtech.archunit:archunit-junit5:1.4.1"
148149 testImplementation ' org.openjdk.jmh:jmh-core:1.37' // required for ArchUnit to check JMH tests
149150
150151 // JUnit Platform launcher required for Gradle 9
151- testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
152+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher:1.14.1 '
152153
153154 antlr ' org.antlr:antlr4:' + antlrVersion
154155
@@ -160,14 +161,12 @@ dependencies {
160161// jmhAnnotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess:1.37'
161162
162163 errorprone ' com.uber.nullaway:nullaway:0.12.10'
163- errorprone ' com.google.errorprone:error_prone_core:2.43 .0'
164+ errorprone ' com.google.errorprone:error_prone_core:2.44 .0'
164165
165166 // just tests - no Kotlin otherwise
166167 testImplementation ' org.jetbrains.kotlin:kotlin-stdlib-jdk8'
167168}
168169
169- import aQute.bnd.gradle.BundleTaskExtension
170-
171170shadowJar {
172171 minimize()
173172 archiveClassifier. set(' ' )
@@ -368,11 +367,28 @@ tasks.register('testWithJava17', Test) {
368367 javaLauncher = javaToolchains. launcherFor {
369368 languageVersion = JavaLanguageVersion . of(17 )
370369 }
370+ testClassesDirs = sourceSets. test. output. classesDirs
371+ classpath = sourceSets. test. runtimeClasspath
372+ classpath + = sourceSets. jmh. output
373+ dependsOn " jmhClasses"
374+
375+
376+ dependsOn tasks. named(' testClasses' )
377+
371378}
379+
372380tasks. register(' testWithJava11' , Test ) {
373381 javaLauncher = javaToolchains. launcherFor {
374382 languageVersion = JavaLanguageVersion . of(11 )
375383 }
384+ testClassesDirs = sourceSets. test. output. classesDirs
385+ classpath = sourceSets. test. runtimeClasspath
386+
387+ dependsOn tasks. named(' testClasses' )
388+
389+ classpath + = sourceSets. jmh. output
390+ dependsOn " jmhClasses"
391+
376392}
377393test. dependsOn testWithJava21
378394test. dependsOn testWithJava17
0 commit comments