Skip to content

Commit 5f50090

Browse files
committed
Back to Java 17 for compatibility with Minecraft.
1 parent 6b7c056 commit 5f50090

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build.gradle.kts

+7-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
jacoco
66
}
77

8-
version = "0.0.6"
8+
version = "0.0.7"
99
group = "fr.formiko.utils"
1010

1111
repositories {
@@ -31,14 +31,19 @@ dependencies {
3131
// Apply a specific Java toolchain to ease working on different environments.
3232
java {
3333
toolchain {
34-
languageVersion = JavaLanguageVersion.of(21)
34+
languageVersion = JavaLanguageVersion.of(17)
3535
}
3636
}
3737

3838
tasks.assemble {
3939
dependsOn("jar")
4040
}
4141

42+
// utf 8 encoding
43+
tasks.compileJava {
44+
options.encoding = "UTF-8"
45+
}
46+
4247
tasks.named<Test>("test") {
4348
// Use JUnit Platform for unit tests.
4449
useJUnitPlatform()

0 commit comments

Comments
 (0)