From 3fefa1aa6cc62193cca08665294ad36ddc7626cc Mon Sep 17 00:00:00 2001 From: AlexProgrammerDE <40795980+AlexProgrammerDE@users.noreply.github.com> Date: Wed, 18 Dec 2024 08:22:10 +0100 Subject: [PATCH] Bump placeholder plugin to 21 --- PistonQueuePlaceholder/build.gradle.kts | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/PistonQueuePlaceholder/build.gradle.kts b/PistonQueuePlaceholder/build.gradle.kts index 9331ce1..a864ba6 100644 --- a/PistonQueuePlaceholder/build.gradle.kts +++ b/PistonQueuePlaceholder/build.gradle.kts @@ -4,16 +4,10 @@ plugins { } repositories { - maven { - url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") - } - maven { - url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/") - } - maven { - url = uri("https://papermc.io/repo/repository/maven-public/") - } mavenCentral() + maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") + maven("https://repo.extendedclip.com/content/repositories/placeholderapi/") + maven("https://papermc.io/repo/repository/maven-public/") } dependencies { @@ -27,8 +21,12 @@ dependencies { group = "net.pistonmaster" version = "3.0.0-SNAPSHOT" description = "PistonQueuePlaceholder" -java.sourceCompatibility = JavaVersion.VERSION_1_8 -java.targetCompatibility = JavaVersion.VERSION_1_8 + +java { + toolchain { + languageVersion.set(JavaLanguageVersion.of(21)) + } +} tasks.withType { options.encoding = "UTF-8"