[FEATURE] Генерация готового bundle, со всей структурой каталогов нужной для работы лауннчсервера.

This commit is contained in:
zaxar163 2019-03-08 15:57:23 +03:00
parent 55080540b6
commit 82ee209c55

View file

@ -21,7 +21,7 @@
launch4j launch4j
launch4jCJ launch4jCJ
bundleOnly.extendsFrom bundle bundleOnly.extendsFrom bundle
compile.extendsFrom bundle, hikari, pack, launch4jCJ compile.extendsFrom bundle, hikari, pack, launch4jCJ, launch4j
} }
jar { jar {
@ -60,15 +60,15 @@ pack project(':libLauncher')
exclude group: 'org.slf4j' exclude group: 'org.slf4j'
} }
launch4j('net.sf.launch4j:launch4j:3.12') { // need user launch4j('net.sf.launch4j:launch4j:3.12') {
exclude group: '*' exclude group: '*'
} }
launch4jCJ('net.sf.launch4j:launch4j:3.12:workdir-win32') { // need user launch4jCJ('net.sf.launch4j:launch4j:3.12:workdir-win32') {
exclude group: '*' exclude group: '*'
} }
launch4jCJ('net.sf.launch4j:launch4j:3.12:workdir-linux') { // need user launch4jCJ('net.sf.launch4j:launch4j:3.12:workdir-linux') {
exclude group: '*' exclude group: '*'
} }
} }
@ -115,10 +115,13 @@ task dumpLibs(type: Copy) {
from configurations.bundleOnly from configurations.bundleOnly
} }
task dumpClientLibs(type: Copy) { task bundle(type: Zip) {
dependsOn parent.childProjects.Launcher.tasks.build dependsOn parent.childProjects.Launcher.tasks.build, tasks.dumpLibs, tasks.jar
into "$buildDir/libs/launcher-libraries" archiveName 'bundle.zip'
from parent.childProjects.Launcher.tasks.dumpLibs.destinationDir destinationDir file("$buildDir")
from(tasks.dumpLibs.destinationDir) { into 'libraries' }
from tasks.jar.archivePath
from(parent.childProjects.Launcher.tasks.dumpLibs) { into 'launcher-libraries' }
} }
build.dependsOn tasks.dumpLibs, tasks.dumpClientLibs build.dependsOn tasks.dumpLibs, tasks.bundle