Commit 7d6ad46a authored by Misagh Moayyed's avatar Misagh Moayyed

move commands into gradle build

parent fe611f38
......@@ -126,7 +126,7 @@ case "$command" in
;;
"explode")
explodeApp "$@"
;;
;;
"docker")
jibdocker "$@"
;;
......
......@@ -6,8 +6,7 @@ appServer=-tomcat
executable=false
gradleVersion=5.0
tomcatVersion=9
tomcatFullVersion=9.0.13
tomcatVersion=9.0.13
group=org.apereo.cas
sourceCompatibility=11
......
......@@ -17,7 +17,7 @@ buildscript {
apply plugin: 'de.undercouch.download'
apply plugin: 'com.boazj.log'
def tomcatDirectory = "${buildDir}/apache-tomcat-${tomcatFullVersion}"
def tomcatDirectory = "${buildDir}/apache-tomcat-${tomcatVersion}"
task copyCasConfiguration(type: Copy, group: "build", description: "Copy the CAS configuration from this project to /etc/cas/config") {
from "etc/cas/config"
......@@ -246,9 +246,9 @@ def isRunningCasServerSnapshot(casServerVersion) {
return "${casServerVersion}".contains("-SNAPSHOT")
}
task downloadTomcat(type: Download) {
def downloadFile = "https://www.apache.org/dist/tomcat/tomcat-${tomcatVersion}/v${tomcatFullVersion}/bin/apache-tomcat-${tomcatFullVersion}.zip"
def tomcatMajorVersion = "${tomcatVersion}".substring(0, "${tomcatVersion}".indexOf("."))
def downloadFile = "https://www.apache.org/dist/tomcat/tomcat-${tomcatMajorVersion}/v${tomcatVersion}/bin/apache-tomcat-${tomcatVersion}.zip"
logger.info "Downloading file $downloadFile"
src downloadFile
dest new File("apache-tomcat.zip")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment