forked from apereo/cas-management-overlay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
92 lines (78 loc) · 2.2 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
buildscript {
repositories {
mavenLocal()
jcenter()
maven { url "https://repo.spring.io/libs-milestone" }
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${project.springBootVersion}"
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://build.shibboleth.net/nexus/content/repositories/releases/' }
maven { url "https://repo.spring.io/milestone/" }
maven { url "https://oss.jfrog.org/artifactory/oss-snapshot-local" }
}
apply from: "https://dl.bintray.com/scalding/generic/waroverlay.gradle"
apply plugin: "war"
apply plugin: "org.springframework.boot"
apply plugin: "eclipse"
apply plugin: "idea"
eclipse {
classpath {
downloadSources = true
downloadJavadoc = true
}
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
war {
includeWarJars = true
entryCompression = ZipEntryCompression.STORED
}
springBoot {
mainClassName = "org.apereo.cas.mgmt.web.CasManagementWebApplication"
}
bootWar {
if (project.hasProperty('executable')) {
launchScript()
}
archiveName "cas-management.war"
baseName "cas-management"
excludeDevtools = false
}
bootRun {
sourceResources sourceSets.main
classpath = sourceSets.main.runtimeClasspath
}
wrapper {
distributionType = Wrapper.DistributionType.BIN
gradleVersion = "${project.gradleVersion}"
}
dependencies {
if (project.hasProperty("external")) {
compile "org.apereo.cas:cas-mgmt-webapp:${project.'casmgmt.version'}"
} else {
compile "org.apereo.cas:cas-mgmt-webapp${project.appServer}:${project.'casmgmt.version'}"
}
}
task run(group: "build", description: "Run the CAS managment web application in embedded container mode") {
dependsOn build
doLast {
def casRunArgs = Arrays.asList("-Xmx2048M -XX:+TieredCompilation -XX:TieredStopAtLevel=1".split(" "))
javaexec {
main = "-jar"
jvmArgs = casRunArgs
args = ["build/libs/cas-management.war"]
logger.info "Started ${commandLine}"
}
}
}