Skip to content

Commit

Permalink
Set java compatibility to 17
Browse files Browse the repository at this point in the history
  • Loading branch information
ishikyoo committed Oct 3, 2024
1 parent e85106f commit 3a91133
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,14 @@ processResources {
}

tasks.withType(JavaCompile).configureEach {
it.options.release = 21
it.options.release = 17
}

java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()

sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

jar {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/leavesly.mixins.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"package": "com.ishikyoo.leavesly.mixin",
"compatibilityLevel": "JAVA_21",
"compatibilityLevel": "JAVA_17",
"mixins": [
"LeavesBlockMixin",
"CherryLeavesBlockMixin",
Expand Down

0 comments on commit 3a91133

Please sign in to comment.