From 0ab621079b3769d89c7ec1379d69125c82fc3e71 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 18 Jun 2024 19:04:13 +0100 Subject: [PATCH] Toolchain stuff --- build.gradle.kts | 4 ++++ eco-core/core-nms/nms-common/build.gradle.kts | 6 ++++++ eco-core/core-nms/v1_17_R1/build.gradle.kts | 6 ++++++ eco-core/core-nms/v1_18_R1/build.gradle.kts | 6 ++++++ eco-core/core-nms/v1_18_R2/build.gradle.kts | 6 ++++++ eco-core/core-nms/v1_19_R1/build.gradle.kts | 6 ++++++ 6 files changed, 34 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index ef09e5edd..98dbd0079 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -163,6 +163,10 @@ allprojects { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 withSourcesJar() + + toolchain { + languageVersion = JavaLanguageVersion.of(17) + } } test { diff --git a/eco-core/core-nms/nms-common/build.gradle.kts b/eco-core/core-nms/nms-common/build.gradle.kts index 27a95d2b8..11d4fe3bb 100644 --- a/eco-core/core-nms/nms-common/build.gradle.kts +++ b/eco-core/core-nms/nms-common/build.gradle.kts @@ -8,3 +8,9 @@ version = rootProject.version dependencies { paperweight.paperDevBundle("1.17.1-R0.1-SNAPSHOT") } + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(17) + } +} diff --git a/eco-core/core-nms/v1_17_R1/build.gradle.kts b/eco-core/core-nms/v1_17_R1/build.gradle.kts index b074875ab..893730a3f 100644 --- a/eco-core/core-nms/v1_17_R1/build.gradle.kts +++ b/eco-core/core-nms/v1_17_R1/build.gradle.kts @@ -38,3 +38,9 @@ tasks { ) } } + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(17) + } +} diff --git a/eco-core/core-nms/v1_18_R1/build.gradle.kts b/eco-core/core-nms/v1_18_R1/build.gradle.kts index 86c77e6ea..746ee752e 100644 --- a/eco-core/core-nms/v1_18_R1/build.gradle.kts +++ b/eco-core/core-nms/v1_18_R1/build.gradle.kts @@ -37,3 +37,9 @@ tasks { ) } } + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(17) + } +} diff --git a/eco-core/core-nms/v1_18_R2/build.gradle.kts b/eco-core/core-nms/v1_18_R2/build.gradle.kts index 7be254fb3..677647fa4 100644 --- a/eco-core/core-nms/v1_18_R2/build.gradle.kts +++ b/eco-core/core-nms/v1_18_R2/build.gradle.kts @@ -37,3 +37,9 @@ tasks { ) } } + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(17) + } +} diff --git a/eco-core/core-nms/v1_19_R1/build.gradle.kts b/eco-core/core-nms/v1_19_R1/build.gradle.kts index a38b75d85..b683cb3d5 100644 --- a/eco-core/core-nms/v1_19_R1/build.gradle.kts +++ b/eco-core/core-nms/v1_19_R1/build.gradle.kts @@ -37,3 +37,9 @@ tasks { ) } } + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(17) + } +}