java-tutorials/cas/cas-server/gradle/springboot.gradle
Seun Matt 65e21d3f6a example code for BAEL-3749 (#8815)
* example code for BAEL-3749

* added live test

* added live test

* improved exception handling in response log filter

* propage exception in example code

* updated repo with upstream

* added example code for BAEL-3293

* updated the example code for BAEL-3749

* updated the example code for BAEL-3749

* updated the example code for BAEL-3749

* updated the example code for BAEL-3749
2020-03-29 13:36:54 -07:00

24 lines
684 B
Groovy

apply plugin: "org.springframework.boot"
bootRun.enabled = false
bootRun.onlyIf { return false }
tasks.remove(tasks['bootRun'])
springBoot {
mainClassName = "org.apereo.cas.web.CasWebApplication"
}
bootWar {
doFirst {
def executable = project.hasProperty("executable") && Boolean.valueOf(project.getProperty("executable"))
if (executable) {
logger.info "Including launch script for executable WAR artifact"
launchScript()
} else {
logger.info "WAR artifact is not marked as an executable"
}
archiveName "${casWebApplicationBinaryName}"
baseName "cas"
excludeDevtools = true
}
}