Newer
Older
sklauncher / launcher-builder / build.gradle
@Henry Le Grys Henry Le Grys on 28 Aug 2022 645 bytes GH-484 Work around bug with gradle shadow plugin
plugins {
    id 'application'
    id 'java-library'
    id "com.github.johnrengelman.shadow"
    id 'io.freefair.lombok'
}

application {
    mainClassName = "com.skcraft.launcher.builder.PackageBuilder"
}

dependencies {
    api project(':launcher')
    implementation 'org.apache.commons:commons-compress:1.21'
}

shadowJar {
    dependsOn ':launcher:shadowJar'
    archiveClassifier.set("")
}

// 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)