1- import org.gradle.api.tasks.testing.logging.TestLogEvent
2-
31plugins {
42 java
5- id(" com.diffplug.spotless" ) version " 8.2.1 "
3+ id(" com.diffplug.spotless" ) version " 8.4.0 "
64 id(" com.github.ben-manes.versions" ) version " 0.53.0"
75}
86
@@ -11,15 +9,16 @@ repositories {
119}
1210
1311java {
14- sourceCompatibility = JavaVersion .VERSION_21
15- targetCompatibility = JavaVersion .VERSION_21
12+ toolchain {
13+ languageVersion.set(JavaLanguageVersion .of(25 ))
14+ }
1615}
1716
1817dependencies {
19- implementation(" org.junit.jupiter:junit-jupiter-api:5.14.2 " )
20- testImplementation(" org.junit.jupiter:junit-jupiter-params:5.14.2 " )
21- testImplementation(" org.junit.platform:junit-platform-launcher:1.14.2 " )
22- testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine:5.14.2 " )
18+ implementation(" org.junit.jupiter:junit-jupiter-api:5.14.3 " )
19+ testImplementation(" org.junit.jupiter:junit-jupiter-params:5.14.3 " )
20+ testImplementation(" org.junit.platform:junit-platform-launcher:1.14.3 " )
21+ testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine:5.14.3 " )
2322}
2423
2524spotless {
@@ -31,19 +30,12 @@ spotless {
3130 }
3231}
3332
34- tasks {
35- test {
36- useJUnitPlatform()
37- // includeTags 'example1'
38- // excludeTags 'example2'
39- testLogging {
40- events = setOf (TestLogEvent .PASSED , TestLogEvent .SKIPPED , TestLogEvent .FAILED )
41- }
42- }
33+ tasks.named<Test >(" test" ) {
34+ useJUnitPlatform()
35+ }
4336
4437// task example2Test(type: Test) {
4538// useJUnitPlatform {
4639// includeTags = "example2"
4740// }
4841// }
49- }
0 commit comments