2018-07-15 04:09:40 +02:00
|
|
|
plugins {
|
2020-12-22 23:01:15 +01:00
|
|
|
id 'application'
|
2022-04-26 23:42:15 +02:00
|
|
|
id 'java-library'
|
2018-07-15 04:09:40 +02:00
|
|
|
id "com.github.johnrengelman.shadow"
|
2021-02-05 05:05:48 +01:00
|
|
|
id 'io.freefair.lombok'
|
2018-07-15 04:09:40 +02:00
|
|
|
}
|
2015-02-19 06:29:39 +01:00
|
|
|
|
2022-04-26 23:42:15 +02:00
|
|
|
application {
|
|
|
|
mainClassName = "com.skcraft.launcher.builder.PackageBuilder"
|
|
|
|
}
|
2015-02-19 06:29:39 +01:00
|
|
|
|
|
|
|
dependencies {
|
2022-04-26 23:42:15 +02:00
|
|
|
api project(':launcher')
|
2022-04-27 00:02:58 +02:00
|
|
|
implementation 'org.apache.commons:commons-compress:1.21'
|
2015-02-19 06:29:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
2022-08-28 01:37:36 +02:00
|
|
|
dependsOn ':launcher:shadowJar'
|
2022-04-27 02:53:14 +02:00
|
|
|
archiveClassifier.set("")
|
2015-02-19 06:29:39 +01:00
|
|
|
}
|
|
|
|
|
2022-08-28 01:37:36 +02:00
|
|
|
// Work around gradle shadow bug
|
|
|
|
// see https://github.com/johnrengelman/shadow/issues/713
|
|
|
|
startScripts.dependsOn(':launcher:shadowJar')
|
|
|
|
distTar.dependsOn(':launcher:shadowJar')
|
|
|
|
distZip.dependsOn(':launcher:shadowJar')
|
|
|
|
|
|
|
|
build.dependsOn(shadowJar)
|