2018-07-15 04:09:40 +02:00
|
|
|
plugins {
|
2020-12-22 23:01:15 +01:00
|
|
|
id 'application'
|
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 12:13:07 +01:00
|
|
|
|
2022-04-26 23:42:15 +02:00
|
|
|
application {
|
|
|
|
mainClassName = "com.skcraft.launcher.FancyLauncher"
|
|
|
|
}
|
2015-02-19 12:13:07 +01:00
|
|
|
|
2020-12-22 23:51:14 +01:00
|
|
|
repositories {
|
|
|
|
maven {
|
2020-12-24 16:19:29 +01:00
|
|
|
name = 'obw maven'
|
|
|
|
url = 'https://maven.offbeatwit.ch/repository/snapshots'
|
2020-12-22 23:51:14 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-19 12:13:07 +01:00
|
|
|
dependencies {
|
2022-08-28 01:37:36 +02:00
|
|
|
implementation project(path: ':launcher')
|
2022-04-26 23:42:15 +02:00
|
|
|
implementation 'io.github.cottonmc.insubstantial:substance:7.3.1-SNAPSHOT'
|
2015-02-19 12:13:07 +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 12:13:07 +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')
|
|
|
|
|
2022-04-26 23:42:15 +02:00
|
|
|
build {
|
|
|
|
dependsOn(shadowJar)
|
|
|
|
}
|