Fully target Java 8.
This commit is contained in:
parent
6771734add
commit
d4198589e4
|
@ -27,7 +27,7 @@ allprojects {
|
||||||
apply(plugin = "architectury-plugin")
|
apply(plugin = "architectury-plugin")
|
||||||
java {
|
java {
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
sourceCompatibility = JavaVersion.VERSION_11
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
tasks {
|
tasks {
|
||||||
withType(com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar::class) {
|
withType(com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar::class) {
|
||||||
|
@ -51,8 +51,9 @@ allprojects {
|
||||||
withType(JavaCompile::class) {
|
withType(JavaCompile::class) {
|
||||||
with(options) {
|
with(options) {
|
||||||
encoding = "UTF-8"
|
encoding = "UTF-8"
|
||||||
release.set(8)
|
if (JavaVersion.current().isJava9Compatible) {
|
||||||
isFork = true
|
release.set(8)
|
||||||
|
}; isFork = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
withType(net.fabricmc.loom.task.RemapJarTask::class) {
|
withType(net.fabricmc.loom.task.RemapJarTask::class) {
|
||||||
|
|
Loading…
Reference in New Issue