From 5c3bbf4203cfea28022edfa4430aa08ec505e15e Mon Sep 17 00:00:00 2001 From: Len <40720638+destro174@users.noreply.github.com> Date: Tue, 4 Aug 2026 14:38:17 -0500 Subject: [PATCH] Update build.gradle.kts --- build.gradle.kts | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 0bf1183..3e04bf6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,13 +7,13 @@ import net.minecrell.pluginyml.paper.PaperPluginDescription plugins { id("java") id("java-library") - id("de.eldoria.plugin-yml.paper") version "0.8.0" + id("de.eldoria.plugin-yml.paper") version "0.9.0" id("xyz.jpenilla.run-paper") version "1.0.6" id("maven-publish") } group = "com.alttd.playershops" -version = System.getenv("BUILD_NUMBER") ?: "1.3-SNAPSHOT" +version = System.getenv("BUILD_NUMBER") ?: "1.4-SNAPSHOT" description = "Player Shop plugin for Altitude." apply() @@ -29,16 +29,17 @@ tasks { } runServer { - val fileName = "./run/cosmos.jar" - val file = File(fileName) - if (!file.parentFile.exists()) { - file.parentFile.mkdirs() - } - if (!file.exists()) { -// download("https://jenkins.destro.xyz/job/Cosmos/lastSuccessfulBuild/artifact/cosmos-server/build/libs/cosmos-bundler-1.21.11-R0.1-SNAPSHOT-mojmap.jar", fileName) + val dir = File(System.getProperty("user.home") + "/share/devserver/") + if (!dir.parentFile.exists()) { + dir.parentFile.mkdirs() } + runDirectory.set(dir) + + val fileName = "/cosmos.jar" + val file = File(dir.path + fileName) + serverJar(file) - minecraftVersion("1.21") + minecraftVersion("26.2") } jar { @@ -73,8 +74,8 @@ dependencies { } compileOnly("com.github.TechFortress:GriefPrevention:16.17.1") - compileOnly("org.projectlombok:lombok:1.18.30") - annotationProcessor("org.projectlombok:lombok:1.18.30") + compileOnly("org.projectlombok:lombok:1.18.46") + annotationProcessor("org.projectlombok:lombok:1.18.46") } fun download(link: String, path: String) {