fix: crash with Java 17

This commit is contained in:
Martin Prokoph
2025-12-14 15:00:33 +01:00
parent 7c3cefca5f
commit f3aa5564e3
2 changed files with 5 additions and 5 deletions

View File

@@ -4,8 +4,8 @@ plugins {
id "me.shedaniel.unified-publishing" version "0.1.+"
}
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name
version = project.mod_version
@@ -55,7 +55,7 @@ tasks.withType(JavaCompile).configureEach {
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"
it.options.release = 21
it.options.release = 17
}
java {
@@ -130,7 +130,7 @@ unifiedPublishing {
curseforge {
token = CURSEFORGE_TOKEN
id = rootProject.curseforge_id
gameVersions.addAll "Java 21", project.minecraft_version, project.supported_versions
gameVersions.addAll "Java 17", project.minecraft_version, project.supported_versions
}
}