Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
C
cas-server
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Khalid Ali
cas-server
Commits
7d6ad46a
Unverified
Commit
7d6ad46a
authored
Nov 27, 2018
by
Misagh Moayyed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move commands into gradle build
parent
fe611f38
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
build.sh
build.sh
+1
-1
gradle.properties
gradle.properties
+1
-2
gradle/tasks.gradle
gradle/tasks.gradle
+3
-3
No files found.
build.sh
View file @
7d6ad46a
...
@@ -126,7 +126,7 @@ case "$command" in
...
@@ -126,7 +126,7 @@ case "$command" in
;;
;;
"explode"
)
"explode"
)
explodeApp
"
$@
"
explodeApp
"
$@
"
;;
;;
"docker"
)
"docker"
)
jibdocker
"
$@
"
jibdocker
"
$@
"
;;
;;
...
...
gradle.properties
View file @
7d6ad46a
...
@@ -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
...
...
gradle/tasks.gradle
View file @
7d6ad46a
...
@@ -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-${tomcat
Full
Version}"
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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment