Skip to content

Commit cc6543e

Browse files
committed
Let Gradle use the right JUnit runtime version
1 parent 094aa0d commit cc6543e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

apprunner/gradle-plugin/src/test/java/org/apache/polaris/apprunner/plugin/TestPolarisRunnerPlugin.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ void setup() throws Exception {
8989
Arrays.asList(
9090
"plugins {",
9191
" id 'java'",
92+
" id 'jvm-test-suite'",
9293
" id 'org.apache.polaris.apprunner'",
9394
"}",
9495
"",
@@ -97,13 +98,15 @@ void setup() throws Exception {
9798
" mavenCentral()",
9899
"}",
99100
"",
100-
"test {",
101-
" useJUnitPlatform()",
101+
"testing {",
102+
" suites.withType(JvmTestSuite) {",
103+
" useJUnitJupiter('" + junitVersion + "')",
104+
" }",
102105
"}",
103106
"",
104107
"dependencies {",
105-
" testImplementation 'org.junit.jupiter:junit-jupiter-api:" + junitVersion + "'",
106-
" testImplementation 'org.junit.jupiter:junit-jupiter-engine:" + junitVersion + "'",
108+
" testImplementation platform('org.junit:junit-bom:" + junitVersion + "')",
109+
" testImplementation 'org.junit.jupiter:junit-jupiter-api'",
107110
" testImplementation 'org.projectnessie.nessie:nessie-client:"
108111
+ nessieVersionForTest
109112
+ "'");

0 commit comments

Comments
 (0)