Skip to content

Commit e7e7d08

Browse files
committed
rollback sourceCompatibility since it's not providing new lang feature as expected
1 parent ca0f891 commit e7e7d08

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ base {
1010
version = project.mod_version
1111
group = project.maven_group
1212

13-
java {
14-
sourceCompatibility = JavaVersion.VERSION_21
15-
}
16-
1713
loom {
1814
// use this if you are using the official mojang mappings
1915
// and want loom to stop warning you about their license
@@ -131,7 +127,7 @@ tasks.withType(JavaCompile) {
131127
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
132128
// If Javadoc is generated, this must be specified in that task too.
133129
options.encoding = "UTF-8"
134-
sourceCompatibility = 21
130+
sourceCompatibility = 16
135131

136132
// The Minecraft launcher currently installs Java 8 for users, so your mod probably wants to target Java 8 too
137133
// JDK 9 introduced a new way of specifying this that will make sure no newer classes or methods are used.

0 commit comments

Comments
 (0)