Skip to content

Commit

Permalink
reduce unnecessary Java 21 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
2ndDerivative committed Nov 5, 2024
1 parent e632dd8 commit fbfb67e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ 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 gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G
org.gradle.java.home=C:\\Program Files\\Java\\jdk-21
org.gradle.java.home=C:\\Program Files\\Java\\jdk-17
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.1
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"fabricloader": ">=0.16.9",
"fabric": "*",
"minecraft": "~1.20",
"java": ">=21"
"java": ">=17"
},
"suggests": {
}
Expand Down

0 comments on commit fbfb67e

Please sign in to comment.