From f000cdb2c35ba679c90cd8bd767d77312c1a7f85 Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:37:45 +0100 Subject: [PATCH] [ci skip] Cleaned up runViaProxy gradle task --- build.gradle | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 2815541..e37b79f 100644 --- a/build.gradle +++ b/build.gradle @@ -104,23 +104,23 @@ tasks.register("runViaProxy", JavaExec) { dependsOn tasks.jar def viaProxyConfiguration = configurations.create("viaProxy") - viaProxyConfiguration.dependencies.add(project.dependencies.create("net.raphimc:ViaProxy:3.3.4") { + viaProxyConfiguration.dependencies.add(dependencies.create("net.raphimc:ViaProxy:3.3.5-SNAPSHOT") { transitive = false }) mainClass = "net.raphimc.viaproxy.ViaProxy" - classpath viaProxyConfiguration - + classpath = viaProxyConfiguration workingDir = file("run") doFirst { - def jarsDir = new File(workingDir, "jars") + def jarsDir = file("$workingDir/jars") jarsDir.mkdirs() - new File(jarsDir, "${project.name}.jar").bytes = tasks.jar.archiveFile.get().asFile.bytes + file("$jarsDir/${project.name}.jar").bytes = tasks.jar.archiveFile.get().asFile.bytes } doLast { - new File(workingDir, "jars/${project.name}.jar").delete() + file("$workingDir/jars/${project.name}.jar").delete() + file("$workingDir/logs").deleteDir() } }