This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 01a3244142 fix jmh tests
01a3244142 is described below
commit 01a32441429b25b807694400294867599c31f376
Author: Paul King <[email protected]>
AuthorDate: Sun Feb 15 10:38:54 2026 +1000
fix jmh tests
---
.../src/main/groovy/org.apache.groovy-performance.gradle | 11 ++++++++++-
subprojects/performance/src/test/groovy/DummyTest.groovy | 2 +-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/build-logic/src/main/groovy/org.apache.groovy-performance.gradle
b/build-logic/src/main/groovy/org.apache.groovy-performance.gradle
index 3aaa333df8..b4ba38190d 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-performance.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-performance.gradle
@@ -44,7 +44,8 @@ repositories {
dependencies {
jmh project(':')
testImplementation project(':')
- testImplementation "junit:junit:${versions.junit}"
+ testImplementation "org.junit.jupiter:junit-jupiter-api:${versions.junit5}"
+ testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${versions.junit5}"
stats "org.apache.commons:commons-math3:${versions.commonsMath3}"
}
@@ -80,3 +81,11 @@ tasks.register('performanceTests', PerformanceTestSummary)
sonarqube {
skipProject = true
}
+
+tasks.named('test') {
+ useJUnitPlatform()
+}
+
+tasks.named('jmhJar') {
+ from(sourceSets.jmh.output)
+}
diff --git a/subprojects/performance/src/test/groovy/DummyTest.groovy
b/subprojects/performance/src/test/groovy/DummyTest.groovy
index 6d90587099..9e51276302 100644
--- a/subprojects/performance/src/test/groovy/DummyTest.groovy
+++ b/subprojects/performance/src/test/groovy/DummyTest.groovy
@@ -17,7 +17,7 @@
* under the License.
*/
-import org.junit.Test
+import org.junit.jupiter.api.Test
/**
* Gradle complains if we have no tests, so this keeps it happy