Skip to content

Commit b91f9e6

Browse files
committed
Fixed broken encoding for unit tests
1 parent 33a280d commit b91f9e6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

build.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ subprojects {
6363
targetCompatibility = JavaVersion.VERSION_17
6464
}
6565

66+
compileTestJava {
67+
options.encoding = 'UTF-8'
68+
69+
// Makes spotlessApply task run on every compile/build.
70+
dependsOn 'spotlessApply'
71+
72+
// Nails the Java-Version of every Subproject
73+
sourceCompatibility = JavaVersion.VERSION_17
74+
targetCompatibility = JavaVersion.VERSION_17
75+
}
76+
6677
spotless {
6778
java {
6879
// Excludes build folder since it contains generated java classes.
@@ -72,7 +83,6 @@ subprojects {
7283
}
7384

7485
test {
75-
systemProperty 'file.encoding', 'UTF-8'
7686
useJUnitPlatform()
7787
}
7888
}

0 commit comments

Comments
 (0)