Fixed fatmain bug in build.gradle-template
parent
63e26fdc16
commit
97f52bfd82
|
@ -131,17 +131,19 @@ if (project.hasProperty('mainClassName') && (mainClassName != null)) {
|
|||
|
||||
destinationDir = buildDir
|
||||
|
||||
def fatMain = hasProperty('fatmain') ? fatmain : mainClassName
|
||||
def fatMain
|
||||
|
||||
if (this.hasProperty('fatmain')) {
|
||||
fatMain = fatmain
|
||||
appendix = "fat-${fatMain}"
|
||||
} else {
|
||||
fatMain = mainClassName
|
||||
appendix = "fat"
|
||||
}
|
||||
|
||||
applicationClass fatMain
|
||||
|
||||
def testJar = hasProperty('test')
|
||||
|
||||
if (hasProperty('fatmain')) {
|
||||
appendix = "fat-${fatMain}"
|
||||
} else {
|
||||
appendix = "fat"
|
||||
}
|
||||
def testJar = this.hasProperty('test')
|
||||
|
||||
if (testJar) {
|
||||
from sourceSets.test.output
|
||||
|
|
Loading…
Reference in New Issue