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