Commit 418c05b9 authored by Hal Deadman's avatar Hal Deadman

fix reference to casServerVersion variable

parent f2191a29
...@@ -186,7 +186,7 @@ task downloadShell (group: "shell", description: "Download CAS shell jar from sn ...@@ -186,7 +186,7 @@ task downloadShell (group: "shell", description: "Download CAS shell jar from sn
} }
doLast { doLast {
def downloadFile def downloadFile
if (isRunningCasServerSnapshot()) { if (isRunningCasServerSnapshot(casServerVersion)) {
def snapshotDir = "https://oss.sonatype.org/content/repositories/snapshots/org/apereo/cas/cas-server-support-shell/${casServerVersion}/" def snapshotDir = "https://oss.sonatype.org/content/repositories/snapshots/org/apereo/cas/cas-server-support-shell/${casServerVersion}/"
def files = new org.apache.ivy.util.url.ApacheURLLister().listFiles(new URL(snapshotDir)) def files = new org.apache.ivy.util.url.ApacheURLLister().listFiles(new URL(snapshotDir))
files = files.sort{it.path} files = files.sort{it.path}
...@@ -249,6 +249,6 @@ task casVersion (group: "build", description: "Display the current CAS version") ...@@ -249,6 +249,6 @@ task casVersion (group: "build", description: "Display the current CAS version")
doFirst { println casServerVersion } doFirst { println casServerVersion }
} }
def isRunningCasServerSnapshot() { def isRunningCasServerSnapshot(casServerVersion) {
return "${casServerVersion}".contains("-SNAPSHOT") return "${casServerVersion}".contains("-SNAPSHOT")
} }
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