Skip to content

Commit 737f858

Browse files
fabric things
1 parent 1bde340 commit 737f858

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

build.gradle

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,11 @@ processResources {
5151
}
5252
}
5353

54-
def targetJavaVersion = 21
5554
tasks.withType(JavaCompile).configureEach {
56-
// ensure that the encoding is set to UTF-8, no matter what the system default is
57-
// this fixes some edge cases with special characters not displaying correctly
58-
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
59-
// If Javadoc is generated, this must be specified in that task too.
60-
it.options.encoding = "UTF-8"
61-
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
62-
it.options.release = targetJavaVersion
63-
}
55+
it.options.release = 21
6456
}
6557

6658
java {
67-
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
68-
if (JavaVersion.current() < javaVersion) {
69-
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
70-
}
7159
sourceCompatibility = JavaVersion.VERSION_21
7260
targetCompatibility = JavaVersion.VERSION_21
7361

0 commit comments

Comments
 (0)