From bc9bc991a5b33bf390ec05aa741f048733d64a91 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 6 Aug 2024 00:46:10 +1200 Subject: [PATCH] Does this do the trick --- nms/v1_17_R1/build.gradle.kts | 2 +- nms/v1_18_R1/build.gradle.kts | 5 +++++ nms/v1_18_R2/build.gradle.kts | 5 +++++ nms/v1_19_R1/build.gradle.kts | 5 +++++ nms/v1_19_R2/build.gradle.kts | 5 +++++ nms/v1_19_R3/build.gradle.kts | 5 +++++ nms/v1_20_R1/build.gradle.kts | 5 +++++ nms/v1_20_R2/build.gradle.kts | 5 +++++ nms/v1_20_R3/build.gradle.kts | 5 +++++ nms/v1_20_R4/build.gradle.kts | 5 +++++ nms/v1_21_R1/build.gradle.kts | 5 +++++ shaded/build.gradle.kts | 5 +++++ 12 files changed, 56 insertions(+), 1 deletion(-) diff --git a/nms/v1_17_R1/build.gradle.kts b/nms/v1_17_R1/build.gradle.kts index 9cbede7f..76151fde 100644 --- a/nms/v1_17_R1/build.gradle.kts +++ b/nms/v1_17_R1/build.gradle.kts @@ -13,4 +13,4 @@ dependencies { compileOnly(libs.io.netty.netty.buffer) compileOnly(libs.it.unimi.dsi.fastutil) compileOnly(libs.com.mojang.datafixerupper) -} +} \ No newline at end of file diff --git a/nms/v1_18_R1/build.gradle.kts b/nms/v1_18_R1/build.gradle.kts index fd4d5a9f..19b41dd0 100644 --- a/nms/v1_18_R1/build.gradle.kts +++ b/nms/v1_18_R1/build.gradle.kts @@ -14,3 +14,8 @@ dependencies { compileOnly(libs.it.unimi.dsi.fastutil) compileOnly(libs.com.mojang.datafixerupper) } + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} \ No newline at end of file diff --git a/nms/v1_18_R2/build.gradle.kts b/nms/v1_18_R2/build.gradle.kts index 37ba87d2..ae6ca5aa 100644 --- a/nms/v1_18_R2/build.gradle.kts +++ b/nms/v1_18_R2/build.gradle.kts @@ -14,3 +14,8 @@ dependencies { compileOnly(libs.it.unimi.dsi.fastutil) compileOnly(libs.com.mojang.datafixerupper) } + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} \ No newline at end of file diff --git a/nms/v1_19_R1/build.gradle.kts b/nms/v1_19_R1/build.gradle.kts index c5427df4..f20e501d 100644 --- a/nms/v1_19_R1/build.gradle.kts +++ b/nms/v1_19_R1/build.gradle.kts @@ -14,3 +14,8 @@ dependencies { compileOnly(libs.it.unimi.dsi.fastutil) compileOnly(libs.com.mojang.datafixerupper) } + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} \ No newline at end of file diff --git a/nms/v1_19_R2/build.gradle.kts b/nms/v1_19_R2/build.gradle.kts index 07789234..a890d704 100644 --- a/nms/v1_19_R2/build.gradle.kts +++ b/nms/v1_19_R2/build.gradle.kts @@ -14,3 +14,8 @@ dependencies { compileOnly(libs.it.unimi.dsi.fastutil) compileOnly(libs.com.mojang.datafixerupper) } + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} \ No newline at end of file diff --git a/nms/v1_19_R3/build.gradle.kts b/nms/v1_19_R3/build.gradle.kts index 5ebf7b9e..626a7665 100644 --- a/nms/v1_19_R3/build.gradle.kts +++ b/nms/v1_19_R3/build.gradle.kts @@ -14,3 +14,8 @@ dependencies { compileOnly(libs.it.unimi.dsi.fastutil) compileOnly(libs.com.mojang.datafixerupper) } + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} \ No newline at end of file diff --git a/nms/v1_20_R1/build.gradle.kts b/nms/v1_20_R1/build.gradle.kts index 0582b490..249a9077 100644 --- a/nms/v1_20_R1/build.gradle.kts +++ b/nms/v1_20_R1/build.gradle.kts @@ -14,3 +14,8 @@ dependencies { compileOnly(libs.it.unimi.dsi.fastutil) compileOnly(libs.com.mojang.datafixerupper) } + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} \ No newline at end of file diff --git a/nms/v1_20_R2/build.gradle.kts b/nms/v1_20_R2/build.gradle.kts index 265f7bef..e65104a6 100644 --- a/nms/v1_20_R2/build.gradle.kts +++ b/nms/v1_20_R2/build.gradle.kts @@ -14,3 +14,8 @@ dependencies { compileOnly(libs.it.unimi.dsi.fastutil) compileOnly(libs.com.mojang.datafixerupper) } + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} \ No newline at end of file diff --git a/nms/v1_20_R3/build.gradle.kts b/nms/v1_20_R3/build.gradle.kts index 472f66d2..401fd46e 100644 --- a/nms/v1_20_R3/build.gradle.kts +++ b/nms/v1_20_R3/build.gradle.kts @@ -14,3 +14,8 @@ dependencies { compileOnly(libs.it.unimi.dsi.fastutil) compileOnly(libs.com.mojang.datafixerupper) } + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} \ No newline at end of file diff --git a/nms/v1_20_R4/build.gradle.kts b/nms/v1_20_R4/build.gradle.kts index 33057a98..d39036c1 100644 --- a/nms/v1_20_R4/build.gradle.kts +++ b/nms/v1_20_R4/build.gradle.kts @@ -14,3 +14,8 @@ dependencies { compileOnly(libs.it.unimi.dsi.fastutil) compileOnly(libs.com.mojang.datafixerupper) } + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} \ No newline at end of file diff --git a/nms/v1_21_R1/build.gradle.kts b/nms/v1_21_R1/build.gradle.kts index 05d083d7..489e20b4 100644 --- a/nms/v1_21_R1/build.gradle.kts +++ b/nms/v1_21_R1/build.gradle.kts @@ -13,4 +13,9 @@ dependencies { compileOnly(libs.io.netty.netty.buffer) compileOnly(libs.it.unimi.dsi.fastutil) compileOnly(libs.com.mojang.datafixerupper) +} + +java { + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 } \ No newline at end of file diff --git a/shaded/build.gradle.kts b/shaded/build.gradle.kts index 37fb06c6..f8906b07 100644 --- a/shaded/build.gradle.kts +++ b/shaded/build.gradle.kts @@ -110,4 +110,9 @@ dependencies { testImplementation(libs.net.kyori.adventure.text.serializer.json) testRuntimeOnly(libs.org.spigotmc.spigot.api) testRuntimeOnly(libs.org.spigotmc.spigot) +} + +java { + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 } \ No newline at end of file