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 + + } + +} + +