Configure shadowJar classifier in time for packageNative config

This change avoids the "Main application jar is missing" error described
in the comments on issue #243.
This commit is contained in:
Chris Beams 2014-11-20 18:50:39 +01:00
parent 351feae334
commit 356b76a21a
No known key found for this signature in database
GPG Key ID: 3D214F8F5BC5ED73

View File

@ -60,6 +60,8 @@ dependencies {
testCompile 'org.springframework:spring-test:4.1.1.RELEASE'
}
shadowJar.classifier = 'app'
task packageNative(type: Exec, dependsOn: shadowJar) {
if (Os.isFamily(Os.FAMILY_MAC))
executable "${project.rootDir}/package/mac.sh"
@ -73,8 +75,6 @@ task packageNative(type: Exec, dependsOn: shadowJar) {
args project.version, shadowJar.archivePath, mainClassName
}
shadowJar.classifier = 'app'
task appJar(dependsOn: shadowJar) {
group = "shadow"
description = "Builds a Bitsquare client UI executable jar"