chore: support java 21 or higher for 1.20.6

This commit is contained in:
Erica Marigold 2024-06-06 16:34:49 +05:30
parent 7571bd68f6
commit b35b2f3264
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1

View file

@ -64,14 +64,14 @@ processResources {
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 17
it.options.release = 21
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
jar {
@ -87,11 +87,11 @@ modrinth {
debugMode = false
uploadFile = remapJar
loaders = ["fabric", "quilt"]
syncBodyFrom = rootProject.file("README.md").text
// syncBodyFrom = rootProject.file("README.md").text
dependencies {
required.project "fabric-api"
optional.version "modmenu", "${project.modmenu_version}"
optional.version "yacl", "${project.yacl_version}-fabric"
optional.version "yacl", "${project.yacl_version}"
}
}