-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
207 lines (188 loc) · 8.21 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
buildscript {
repositories {
mavenLocal()
gradlePluginPortal()
mavenCentral()
jcenter()
maven {
url "https://repo.spring.io/libs-milestone"
mavenContent { releasesOnly() }
}
maven {
url "https://repo.spring.io/libs-snapshot"
mavenContent { snapshotsOnly() }
}
maven {
url "https://plugins.gradle.org/m2/"
mavenContent { releasesOnly() }
}
}
dependencies {
classpath "de.undercouch:gradle-download-task:${project.gradleDownloadTaskVersion}"
classpath "org.springframework.boot:spring-boot-gradle-plugin:${project.springBootVersion}"
classpath "gradle.plugin.com.google.cloud.tools:jib-gradle-plugin:${project.jibVersion}"
classpath "io.freefair.gradle:maven-plugin:${project.gradleMavenPluginVersion}"
classpath "io.freefair.gradle:lombok-plugin:${project.gradleLombokPluginVersion}"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1"
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
mavenContent { snapshotsOnly() }
}
maven {
mavenContent { releasesOnly() }
url "https://build.shibboleth.net/nexus/content/repositories/releases/"
}
maven {
mavenContent { releasesOnly() }
url "https://repo.spring.io/milestone/"
}
maven {
url "https://repo.spring.io/snapshot/"
mavenContent { snapshotsOnly() }
}
maven {
mavenContent { snapshotsOnly() }
url "https://oss.jfrog.org/artifactory/oss-snapshot-local"
}
}
def casServerVersion = project.'cas.version'
def casWebApplicationBinaryName = "cas.war"
project.ext."casServerVersion" = casServerVersion
project.ext."casWebApplicationBinaryName" = casWebApplicationBinaryName
apply plugin: "war"
apply plugin: "io.freefair.war-overlay"
apply from: rootProject.file("gradle/tasks.gradle")
apply from: rootProject.file("gradle/springboot.gradle")
apply from: rootProject.file("gradle/dockerjib.gradle")
apply plugin: "io.freefair.lombok"
lombok {
config["config.stopBubbling"] = "true"
config["lombok.addLombokGeneratedAnnotation"] = "true"
config["lombok.equalsAndHashCode.doNotUseGetters"] = "true"
config["lombok.log.fieldName"] = "LOGGER"
config["lombok.log.fieldIsStatic"] = "true"
config["lombok.toString.doNotUseGetters"] = "true"
}
apply plugin: "eclipse"
eclipse {
classpath {
downloadSources = true
downloadJavadoc = true
}
}
apply plugin: "idea"
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
apply plugin: "org.sonarqube"
dependencies {
// Other CAS dependencies/modules may be listed here...
// Authentication
implementation "org.apereo.cas:cas-server-core-authentication:${project.'cas.version'}"
implementation "org.apereo.cas:cas-server-core-authentication-api:${project.'cas.version'}"
implementation "org.apereo.cas:cas-server-core-authentication-attributes:${project.'cas.version'}"
implementation "org.apereo.cas:cas-server-core-authentication-mfa-api:${project.'cas.version'}"
implementation "org.apereo.cas:cas-server-core-authentication-throttle:${project.'cas.version'}"
// Cookie
implementation "org.apereo.cas:cas-server-core-cookie-api:${project.'cas.version'}"
// Services
implementation "org.apereo.cas:cas-server-core-services:${project.'cas.version'}"
implementation "org.apereo.cas:cas-server-core-services-api:${project.'cas.version'}"
implementation "org.apereo.cas:cas-server-core-services-registry:${project.'cas.version'}"
// Ticket
implementation "org.apereo.cas:cas-server-core-tickets-api:${project.'cas.version'}"
// Core Utilities
implementation "org.apereo.cas:cas-server-core-util-api:${project.'cas.version'}"
// Validation
implementation "org.apereo.cas:cas-server-core-validation-api:${project.'cas.version'}"
// Web
implementation "org.apereo.cas:cas-server-core-web-api:${project.'cas.version'}"
// Web Flow
implementation "org.apereo.cas:cas-server-core-webflow:${project.'cas.version'}"
implementation "org.apereo.cas:cas-server-core-webflow-api:${project.'cas.version'}"
// Actions
implementation "org.apereo.cas:cas-server-support-actions:${project.'cas.version'}"
// JDBC Drivers
implementation "org.apereo.cas:cas-server-support-jdbc-drivers:${project.'cas.version'}"
// JPA Ticket Registry
implementation "org.apereo.cas:cas-server-support-jpa-ticket-registry:${project.'cas.version'}"
// JPA Utilities
implementation "org.apereo.cas:cas-server-support-jpa-util:${project.'cas.version'}"
// JSON Service Registry
implementation "org.apereo.cas:cas-server-support-json-service-registry:${project.'cas.version'}"
// OAuth 2.0 Server
implementation "org.apereo.cas:cas-server-support-oauth-api:${project.'cas.version'}"
implementation "org.apereo.cas:cas-server-support-oauth-core-api:${project.'cas.version'}"
implementation "org.apereo.cas:cas-server-support-oauth-services:${project.'cas.version'}"
implementation "org.apereo.cas:cas-server-support-oauth-webflow:${project.'cas.version'}"
// Pac4j
implementation "org.apereo.cas:cas-server-support-pac4j-api:${project.'cas.version'}"
implementation "org.apereo.cas:cas-server-support-pac4j-core:${project.'cas.version'}"
implementation "org.apereo.cas:cas-server-support-pac4j-webflow:${project.'cas.version'}"
// Token
implementation "org.apereo.cas:cas-server-support-token-core-api:${project.'cas.version'}"
// Throttling
implementation "org.apereo.cas:cas-server-support-throttle:${project.'cas.version'}"
// Monitoring & Statistics
implementation "org.apereo.cas:cas-server-support-reports:${project.'cas.version'}"
// Tomcat Catalina
implementation "org.apache.tomcat:tomcat-catalina:${springBootTomcatVersion}"
// Hibernate
implementation "org.hibernate:hibernate-core:${hibernateCoreVersion}"
// Google GSON
implementation "com.google.code.gson:gson:${gsonVersion}"
// Javascript Object Signing and Encryption (JOSE) and JSON Web Tokens (JWT)
implementation "com.nimbusds:nimbus-jose-jwt:${nimbusJoseVersion}"
// Apache HttpComponents Client Fluent API
implementation "org.apache.httpcomponents:fluent-hc:${fluentHcVersion}"
// Jasig CAS Client
// The core module supports CAS client for both OAuth login and institution SSO
implementation "org.jasig.cas.client:cas-client-core:${casClientVersion}"
// The SAML module supports SAML validation for CAS-PAC4J institution SSO
implementation "org.jasig.cas.client:cas-client-support-saml:${casClientVersion}"
// Log4j
implementation("org.apache.logging.log4j:log4j-api:$log4jVersion") {
exclude(group: "org.slf4j", module: "slf4j-api")
}
implementation("org.apache.logging.log4j:log4j-core:$log4jVersion") {
exclude(group: "org.slf4j", module: "slf4j-api")
}
implementation("org.apache.logging.log4j:log4j-jcl:$log4jVersion") {
exclude(group: "org.slf4j", module: "slf4j-api")
}
implementation("org.apache.logging.log4j:log4j-jul:$log4jVersion") {
exclude(group: "org.slf4j", module: "slf4j-api")
}
implementation("org.apache.logging.log4j:log4j-web:$log4jVersion") {
exclude(group: "org.slf4j", module: "slf4j-api")
}
implementation("org.apache.logging.log4j:log4j-slf4j18-impl:$log4jVersion") {
exclude(group: "org.slf4j", module: "slf4j-api")
}
}
tasks.findByName("jibDockerBuild")
.dependsOn(copyWebAppIntoJib, copyConfigIntoJib)
.finalizedBy(deleteWebAppFromJib)
tasks.findByName("jib")
.dependsOn(copyWebAppIntoJib, copyConfigIntoJib)
.finalizedBy(deleteWebAppFromJib)
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, "seconds"
cacheDynamicVersionsFor 0, "seconds"
preferProjectModules()
def failIfConflict = project.hasProperty("failOnVersionConflict") && Boolean.valueOf(project.getProperty("failOnVersionConflict"))
if (failIfConflict) {
failOnVersionConflict()
}
}
}