From 228c6aaf5ddd344123cb3cab76c496d6e5f47110 Mon Sep 17 00:00:00 2001 From: Kyle Wood Date: Sun, 1 Aug 2021 02:55:02 -0500 Subject: [PATCH] Fix Java toolchain configuration to work on arm macOS --- build.gradle.kts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 50eca8fd7c..3d8830b0db 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,15 +4,19 @@ plugins { id("io.papermc.paperweight.core") version "1.1.9" } -subprojects { +allprojects { apply(plugin = "java") - apply(plugin = "maven-publish") java { toolchain { languageVersion.set(JavaLanguageVersion.of(16)) } } +} + +subprojects { + apply(plugin = "java") + apply(plugin = "maven-publish") tasks.withType { options.encoding = Charsets.UTF_8.name()