Fully target Java 8.
This commit is contained in:
parent
6771734add
commit
d4198589e4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue