Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cas-server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Khalid Ali
cas-server
Commits
205be64c
Unverified
Commit
205be64c
authored
Jul 30, 2018
by
Misagh Moayyed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working on overlay
parent
5e274c5f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
46 deletions
+55
-46
build.properties
build.properties
+18
-13
build.sh
build.sh
+26
-15
maven-overlay/pom.xml
maven-overlay/pom.xml
+11
-18
No files found.
gradle-overlay/gradle
.properties
→
build
.properties
View file @
205be64c
cas.version
=
6.0.0-RC1-SNAPSHOT
# Versions
app.server
=
-tomcat
casVersion
=
6.0.0-RC1-SNAPSHOT
appServer
=
-tomcat
springBootVersion
=
2.0.3.RELEASE
tomcatVersion
=
9
tomcatFullVersion
=
${tomcat.version}.0.10
##
# Only modify below this line if you know what you're doing!
##
cas.run.jvmArgs
=
-Xmx2048M
cas.debug.jvmArgs
=
-Xmx2048M -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xdebug -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=y
gradle.version
=
4.9
# Build
sourceCompatibility
=
10
targetCompatibility
=
10
springboot.version
=
2.0.3.RELEASE
# Maven
# ...
# Gradle
gradle.version
=
4.9
cas.run.jvmArgs
=
-Xmx2048M
cas.debug.jvmArgs
=
-Xmx2048M -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xdebug -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=y
# For debug, increase speed when executing gradle many times
# Daemon will keep running a daemon for 3h hours on each gradle run, improves speed
org.gradle.daemon
=
true
org.gradle.jvmargs
=
-Xmx2048M -XX:+TieredCompilation -XX:TieredStopAtLevel=1
org.gradle.jvmargs
=
-Xmx2048M -XX:+TieredCompilation -XX:TieredStopAtLevel=1
\ No newline at end of file
build.sh
View file @
205be64c
#!/bin/bash
while
IFS
=
''
read
-r
line
||
[[
-n
"
$line
"
]]
;
do
if
[
-n
"
$line
"
]
&&
[[
$line
!=
\#
*
]]
;
then
IFS
=
'='
read
-r
-a
array
<<<
"
$line
"
varName
=
${
array
[0]
}
varValue
=
${
array
[1]
}
export
"
$varName
"
=
"
$varValue
"
2>/dev/null
fi
done
< ./build.properties
function
copy
()
{
echo
-e
"Creating configuration directory under /etc/cas"
mkdir
-p
/etc/cas/config
...
...
@@ -11,26 +20,28 @@ function copy() {
function
help
()
{
clear
echo
"******************************************************************"
echo
"Apereo CAS"
tput setaf 2
echo
"Apereo CAS
${
casVersion
}
"
echo
"Enterprise Single SignOn for all earthlings and beyond"
tput sgr 0
echo
"- https://github.com/apereo/cas"
echo
"- https://apereo.github.io/cas"
echo
"******************************************************************"
echo
-e
"Usage: build.sh [maven|gradle] [copy|clean|package|run|update|debug|tomcat|gencert]
\n
"
echo
" clean:
Clean Maven build directory"
echo
" cli:
Run the CAS command line shell and pass commands"
echo
" copy:
Copy config from the project's local etc/cas/config directory to the root /etc/cas/config"
echo
" debug:
Run cas.war and listen for Java debugger on port 5000"
echo
" dependencies:
Get a report of all dependencies configured in the build"
echo
" gencert:
Create keystore with SSL certificate in location where CAS looks by default"
echo
" getview:
Ask for a view name to be included in the overlay for customizations"
echo
" listviews:
List all CAS views that ship with the web application and can be customized in the overlay"
echo
" package:
Clean and build CAS war"
echo
" run:
Build and run cas.war via Java as an executable war"
echo
" runalone:
Build and run cas.war on its own as a standalone executable"
echo
" tomcat:
Deploy the CAS web application to an external Apache Tomcat server"
echo
" update:
Package the CAS overlay by force-updating dependencies and SNAPSHOT versions"
echo
-e
"Usage: build.sh [maven|gradle] [copy|clean|package|run|
dependencies|
update|debug|tomcat|gencert]
\n
"
echo
-e
"
\t
clean:
\t\t
Clean Maven build directory"
echo
-e
"
\t
cli:
\t\t
Run the CAS command line shell and pass commands"
echo
-e
"
\t
copy:
\t\t
Copy config from the project's local etc/cas/config directory to the root /etc/cas/config"
echo
-e
"
\t
debug:
\t\t
Run cas.war and listen for Java debugger on port 5000"
echo
-e
"
\t
dependencies:
\t
Get a report of all dependencies configured in the build"
echo
-e
"
\t
gencert:
\t
Create keystore with SSL certificate in location where CAS looks by default"
echo
-e
"
\t
getview:
\t
Ask for a view name to be included in the overlay for customizations"
echo
-e
"
\t
listviews:
\t
List all CAS views that ship with the web application and can be customized in the overlay"
echo
-e
"
\t
package:
\t
Clean and build CAS war"
echo
-e
"
\t
run:
\t\t
Build and run cas.war via Java as an executable war"
echo
-e
"
\t
runalone:
\t
Build and run cas.war on its own as a standalone executable"
echo
-e
"
\t
tomcat:
\t
Deploy the CAS web application to an external Apache Tomcat server"
echo
-e
"
\t
update:
\t
Package the CAS overlay by force-updating dependencies and SNAPSHOT versions"
}
function
clean
()
{
...
...
maven-overlay/pom.xml
View file @
205be64c
...
...
@@ -22,7 +22,7 @@
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<version>
${spring
boot.v
ersion}
</version>
<version>
${spring
BootV
ersion}
</version>
<configuration>
<mainClass>
${startClass}
</mainClass>
<addResources>
true
</addResources>
...
...
@@ -32,7 +32,7 @@
<excludes>
<exclude>
<groupId>
org.apereo.cas
</groupId>
<artifactId>
cas-server-webapp${app
.s
erver}
</artifactId>
<artifactId>
cas-server-webapp${app
S
erver}
</artifactId>
</exclude>
</excludes>
</configuration>
...
...
@@ -62,7 +62,7 @@
<overlays>
<overlay>
<groupId>
org.apereo.cas
</groupId>
<artifactId>
cas-server-webapp${app
.s
erver}
</artifactId>
<artifactId>
cas-server-webapp${app
S
erver}
</artifactId>
</overlay>
</overlays>
</configuration>
...
...
@@ -77,19 +77,13 @@
</build>
<properties>
<cas.version>
6.0.0-RC1-SNAPSHOT
</cas.version>
<springboot.version>
2.0.3.RELEASE
</springboot.version>
<tomcat.version>
9
</tomcat.version>
<tomcat.fullversion>
${tomcat.version}.0.10
</tomcat.fullversion>
<!-- app.server could be -jetty, -undertow, -tomcat, or blank if you plan to provide appserver -->
<app.server>
-tomcat
</app.server>
<isExecutable>
false
</isExecutable>
<startClass>
org.apereo.cas.web.CasWebApplication
</startClass>
<mainClass>
org.springframework.boot.loader.WarLauncher
</mainClass>
<maven.compiler.source>
10
</maven.compiler.source>
<maven.compiler.target>
10
</maven.compiler.target>
<maven.compiler.source>
${sourceCompatibility}
</maven.compiler.source>
<maven.compiler.target>
${targetCompatibility}
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
...
...
@@ -150,8 +144,8 @@
<dependencies>
<dependency>
<groupId>
org.apereo.cas
</groupId>
<artifactId>
cas-server-webapp${app
.s
erver}
</artifactId>
<version>
${cas
.v
ersion}
</version>
<artifactId>
cas-server-webapp${app
S
erver}
</artifactId>
<version>
${cas
V
ersion}
</version>
<type>
war
</type>
<scope>
runtime
</scope>
</dependency>
...
...
@@ -177,15 +171,14 @@
</activation>
<id>
external
</id>
<properties>
<app.server></app.server>
<isExecutable>
false
</isExecutable>
<mainClass>
${startClass}
</mainClass>
</properties>
<dependencies>
<dependency>
<groupId>
org.apereo.cas
</groupId>
<artifactId>
cas-server-webapp
${app.server}
</artifactId>
<version>
${cas
.v
ersion}
</version>
<artifactId>
cas-server-webapp
</artifactId>
<version>
${cas
V
ersion}
</version>
<type>
war
</type>
<scope>
compile
</scope>
</dependency>
...
...
@@ -204,7 +197,7 @@
<goal>
wget
</goal>
</goals>
<configuration>
<url>
http://www-eu.apache.org/dist/tomcat/tomcat-${tomcat
.version}/v${tomcat.fullversion}/bin/apache-tomcat-${tomcat.fullv
ersion}.zip
</url>
<url>
http://www-eu.apache.org/dist/tomcat/tomcat-${tomcat
Version}/v${tomcatFullVersion}/bin/apache-tomcat-${tomcatFullV
ersion}.zip
</url>
<unpack>
true
</unpack>
<outputDirectory>
${project.basedir}
</outputDirectory>
</configuration>
...
...
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