FINERACT-1203: Fix broken Executable WAR

This commit is contained in:
Aleksandar Vidakovic
2020-10-15 12:42:05 +03:00
committed by Petri Tuomola
parent cd688a5ce1
commit ee9f428f28
2 changed files with 8 additions and 9 deletions
+7 -8
View File
@@ -526,7 +526,7 @@ war {
// notice the parens
into "WEB-INF/" // no leading slash
}
war.finalizedBy(bootWar)
enabled = true
}
// Configuration for Gradle license plug-in
@@ -599,8 +599,8 @@ cargo {
}
}
cargoRunLocal.dependsOn bootWar
cargoStartLocal.dependsOn bootWar
cargoRunLocal.dependsOn war
cargoStartLocal.dependsOn war
cargoStartLocal.mustRunAfter "integrationTestClasses"
cargoStartLocal.mustRunAfter "enhance"
cargoStartLocal.mustRunAfter "resolve"
@@ -725,13 +725,12 @@ springBoot {
mainClassName = 'org.apache.fineract.ServerApplication'
}
bootWar {
mainClassName = 'org.apache.fineract.ServerApplication'
bootJar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
bootJar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
bootWar {
enabled = false
}
tasks.withType(Tar) {
@@ -745,7 +744,7 @@ distributions {
baseName "apache-fineract-$releaseVersion-binary"
contents {
from bootJar
from bootWar
from war
from("$buildDir/swagger-code-fineract/build/libs/") {
include '**/*.jar'
rename 'client-(.+)\\.jar', 'fineract-client.jar'