From 25bc41edf923b5fdc9dabbd6a547eb49fbccceb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=9D=E5=A4=8F=E5=90=8C=E5=AD=A6?= <2411829240@qq.com> Date: Thu, 10 Aug 2023 00:57:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=89=93=E5=8C=85=E6=9C=BA?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UI/build.gradle | 5 ----- build.gradle | 21 ++++++++++++++++++++- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/UI/build.gradle b/UI/build.gradle index 81924b8..b935826 100644 --- a/UI/build.gradle +++ b/UI/build.gradle @@ -65,7 +65,6 @@ tasks.register('runZPL', JavaExec) { jvmArgs += ["--add-opens", "java.base/java.lang.reflect=ALL-UNNAMED"] systemProperty("zpl.rootDir", "D:\\DevProject\\JavaProject\\ZeroPointLaunch\\TestResources\\.GTNH") - systemProperty("zpl.url", "http://127.0.0.1/ZeroPointLauncher") } def allJars = (configurations.runtimeClasspath) .findAll{it.isFile()} @@ -82,7 +81,3 @@ jar { } } -tasks.register("copyLib", Copy){ - from configurations.runtimeClasspath - into "$buildDir/libs" -} \ No newline at end of file diff --git a/build.gradle b/build.gradle index c5176fe..694a1f6 100644 --- a/build.gradle +++ b/build.gradle @@ -54,4 +54,23 @@ spotless { eclipse('4.19.0').configFile('spotless.eclipseformat.xml') } -} \ No newline at end of file +} + + +tasks.register('copyLib', Copy) { + + + into "$buildDir/zpl" + + from rootProject.childProjects.get("MappingTools").tasks.jar.archiveFile.get().asFile + from rootProject.childProjects.get("Launcher").tasks.jar.archiveFile.get().asFile + + into('lib') { + from rootProject.childProjects.get("UI").configurations.runtimeClasspath + from rootProject.childProjects.get("UI").tasks.jar.archiveFile.get().asFile + + } + +} + +