Fully target Java 8.

This commit is contained in:
Username404-59 2021-04-08 11:35:51 +02:00
parent 6771734add
commit d4198589e4
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 4 additions and 3 deletions

View File

@ -27,7 +27,7 @@ allprojects {
apply(plugin = "architectury-plugin")
java {
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks {
withType(com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar::class) {
@ -51,8 +51,9 @@ allprojects {
withType(JavaCompile::class) {
with(options) {
encoding = "UTF-8"
release.set(8)
isFork = true
if (JavaVersion.current().isJava9Compatible) {
release.set(8)
}; isFork = true
}
}
withType(net.fabricmc.loom.task.RemapJarTask::class) {