Fix Java 9+ ABI being used for Java 8 versions

This commit is contained in:
Jonas Herzig
2021-07-31 15:13:15 +02:00
parent 3cba99068e
commit a457bccf12

View File

@@ -109,6 +109,9 @@ preprocess {
def mcVersionStr = "${(int)(mcVersion/10000)}.${(int)(mcVersion/100)%100}" + (mcVersion%100==0 ? '' : ".${mcVersion%100}")
sourceCompatibility = targetCompatibility = mcVersion >= 11700 ? 16 : 1.8
tasks.withType(JavaCompile).configureEach {
options.release = mcVersion >= 11700 ? 16 : 8
}
if (mcVersion >= 11400) {
sourceSets {