From c9e819645a7e1eb296e80c8d7be9eea0a2d61745 Mon Sep 17 00:00:00 2001 From: Len <40720638+destro174@users.noreply.github.com> Date: Sat, 27 Jul 2024 22:33:39 +0200 Subject: [PATCH] Update build.gradle.kts --- api/build.gradle.kts | 2 +- galaxy/build.gradle.kts | 36 +----------------------------------- 2 files changed, 2 insertions(+), 36 deletions(-) diff --git a/api/build.gradle.kts b/api/build.gradle.kts index d4e432d..0205c1b 100644 --- a/api/build.gradle.kts +++ b/api/build.gradle.kts @@ -3,7 +3,7 @@ plugins { } dependencies { - compileOnly("com.alttd:Galaxy-API:1.19.2-R0.1-SNAPSHOT") { + compileOnly("com.alttd:Galaxy-API:1.21-R0.1-SNAPSHOT") { // exclude("net.kyori") } compileOnly("org.spongepowered:configurate-yaml:4.1.2") // Configurate diff --git a/galaxy/build.gradle.kts b/galaxy/build.gradle.kts index 5223b1a..7874f92 100644 --- a/galaxy/build.gradle.kts +++ b/galaxy/build.gradle.kts @@ -1,58 +1,24 @@ -import java.io.FileOutputStream -import java.net.URL - plugins { `maven-publish` id("io.github.goooler.shadow") - id("xyz.jpenilla.run-paper") version "1.0.6" } dependencies { implementation(project(":api")) // API - compileOnly("com.alttd:Galaxy-API:1.20.4-R0.1-SNAPSHOT") // Galaxy + compileOnly("com.alttd:Galaxy-API:1.21-R0.1-SNAPSHOT") // Galaxy compileOnly("com.gitlab.ruany:LiteBansAPI:0.3.5") // move to proxy compileOnly("org.apache.commons:commons-lang3:3.12.0") // needs an alternative, already removed from upstream api and will be removed in server compileOnly("net.luckperms:api:5.3") // Luckperms -// compileOnly(files("../libs/CMI.jar")) } tasks { shadowJar { archiveFileName.set("${rootProject.name}-${project.name}-${project.version}.jar") -// minimize() } build { -// setBuildDir("${rootProject.buildDir}") dependsOn(shadowJar) } - runServer { - val dir = File(System.getProperty("user.home") + "/share/devserver/"); - if (!dir.parentFile.exists()) { - dir.parentFile.mkdirs() - } - runDirectory.set(dir) - - val fileName = "/galaxy.jar" - var file = File(dir.path + fileName) - - if (!file.parentFile.exists()) { - file.parentFile.mkdirs() - } - if (!file.exists()) { - download("https://repo.destro.xyz/snapshots/com/alttd/Galaxy-Server/Galaxy-paperclip-1.19.2-R0.1-SNAPSHOT-reobf.jar", file) - } - serverJar(file) - minecraftVersion("1.19.2") - } -} - -fun download(link: String, path: File) { - URL(link).openStream().use { input -> - FileOutputStream(path).use { output -> - input.copyTo(output) - } - } } \ No newline at end of file