11plugins {
22 java
3- id(" com.diffplug.spotless" ) version " 7 .0.2 "
4- id(" com.github.ben-manes.versions" ) version " 0.52 .0"
3+ id(" com.diffplug.spotless" ) version " 8 .0.0 "
4+ id(" com.github.ben-manes.versions" ) version " 0.53 .0"
55}
66
77repositories {
@@ -10,18 +10,24 @@ repositories {
1010
1111java {
1212 toolchain {
13- languageVersion = JavaLanguageVersion .of(21 )
13+ languageVersion.set( JavaLanguageVersion .of(17 ) )
1414 }
1515}
1616
1717dependencies {
18+ // Align JUnit artifacts
19+ testImplementation(platform(" org.junit:junit-bom:5.10.2" ))
20+
21+ testImplementation(" org.junit.jupiter:junit-jupiter-api" )
22+ testImplementation(" org.junit.jupiter:junit-jupiter-params" )
23+ testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine" )
24+ // Ensure JUnit Platform launcher is available on the test runtime classpath
25+ testRuntimeOnly(" org.junit.platform:junit-platform-launcher:1.10.2" )
26+
1827 testImplementation(" com.fasterxml.jackson.core:jackson-databind:2.18.3" )
19- testImplementation(" io.rest-assured:rest-assured:5.5.1 " )
28+ testImplementation(" io.rest-assured:rest-assured:5.5.6 " )
2029 testImplementation(" org.hamcrest:hamcrest:3.0" )
2130 testImplementation(" org.assertj:assertj-core:3.26.3" )
22- testImplementation(" org.junit.jupiter:junit-jupiter-api:5.11.3" )
23- testImplementation(" org.junit.jupiter:junit-jupiter-params:5.11.3" )
24- testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine:5.11.3" )
2531}
2632
2733spotless {
@@ -34,6 +40,5 @@ spotless {
3440}
3541
3642tasks.named<Test >(" test" ) {
37- // Use JUnit Platform for unit tests.
3843 useJUnitPlatform()
3944}
0 commit comments