Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
完善打包机制
Browse files Browse the repository at this point in the history
  • Loading branch information
wohaopa committed Aug 9, 2023
1 parent fd4ef6f commit 25bc41e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
5 changes: 0 additions & 5 deletions UI/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
Expand All @@ -82,7 +81,3 @@ jar {
}
}

tasks.register("copyLib", Copy){
from configurations.runtimeClasspath
into "$buildDir/libs"
}
21 changes: 20 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,23 @@ spotless {
eclipse('4.19.0').configFile('spotless.eclipseformat.xml')
}

}
}


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

}

}


0 comments on commit 25bc41e

Please sign in to comment.