move commands into gradle build

parent fe611f38
...@@ -126,7 +126,7 @@ case "$command" in ...@@ -126,7 +126,7 @@ case "$command" in
;; ;;
"explode") "explode")
explodeApp "$@" explodeApp "$@"
;; ;;
"docker") "docker")
jibdocker "$@" jibdocker "$@"
;; ;;
......
...@@ -6,8 +6,7 @@ appServer=-tomcat ...@@ -6,8 +6,7 @@ appServer=-tomcat
executable=false executable=false
gradleVersion=5.0 gradleVersion=5.0
tomcatVersion=9 tomcatVersion=9.0.13
tomcatFullVersion=9.0.13
group=org.apereo.cas group=org.apereo.cas
sourceCompatibility=11 sourceCompatibility=11
......
...@@ -17,7 +17,7 @@ buildscript { ...@@ -17,7 +17,7 @@ buildscript {
apply plugin: 'de.undercouch.download' apply plugin: 'de.undercouch.download'
apply plugin: 'com.boazj.log' 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") { task copyCasConfiguration(type: Copy, group: "build", description: "Copy the CAS configuration from this project to /etc/cas/config") {
from "etc/cas/config" from "etc/cas/config"
...@@ -246,9 +246,9 @@ def isRunningCasServerSnapshot(casServerVersion) { ...@@ -246,9 +246,9 @@ def isRunningCasServerSnapshot(casServerVersion) {
return "${casServerVersion}".contains("-SNAPSHOT") return "${casServerVersion}".contains("-SNAPSHOT")
} }
task downloadTomcat(type: Download) { 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" logger.info "Downloading file $downloadFile"
src downloadFile src downloadFile
dest new File("apache-tomcat.zip") 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