Skip to content

Commit

Permalink
build: Add a Gradle property for the Java version
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveplays28 committed May 26, 2024
1 parent 54fc162 commit 9ea6e91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ allprojects {

tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
options.release = 17
options.release = "${rootProject.java_version}" as int
}

java {
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ architectury_loom_version=1.6-SNAPSHOT
shadow_plugin_version=7.1.2
forgix_plugin_version=1.2.6
minecraft_version=1.20.2
java_version=17
enabled_platforms=fabric,forge,neoforge

# mc-publish properties
Expand Down

0 comments on commit 9ea6e91

Please sign in to comment.