Fix Java toolchain configuration to work on arm macOS

This commit is contained in:
Kyle Wood 2021-08-01 02:55:02 -05:00
parent 81a7559b41
commit eaadb4a68f
No known key found for this signature in database
GPG Key ID: 86AF5613ACA30CC5
1 changed files with 6 additions and 2 deletions

View File

@ -4,15 +4,19 @@ plugins {
id("io.papermc.paperweight.core") version "1.1.9" id("io.papermc.paperweight.core") version "1.1.9"
} }
subprojects { allprojects {
apply(plugin = "java") apply(plugin = "java")
apply(plugin = "maven-publish")
java { java {
toolchain { toolchain {
languageVersion.set(JavaLanguageVersion.of(16)) languageVersion.set(JavaLanguageVersion.of(16))
} }
} }
}
subprojects {
apply(plugin = "java")
apply(plugin = "maven-publish")
tasks.withType<JavaCompile> { tasks.withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name() options.encoding = Charsets.UTF_8.name()