| 
									
										
										
										
											2020-04-07 22:49:38 +08:00
										 |  |  | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | apply plugin: 'io.spring.convention.spring-module' | 
					
						
							|  |  |  | apply plugin: 'trang' | 
					
						
							| 
									
										
										
										
											2020-01-08 01:08:43 +08:00
										 |  |  | apply plugin: 'kotlin' | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-08 03:28:19 +08:00
										 |  |  | repositories { | 
					
						
							|  |  |  | 	maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | dependencies { | 
					
						
							| 
									
										
										
										
											2021-04-05 08:36:21 +08:00
										 |  |  | 	management platform(project(":spring-security-dependencies")) | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | 	// NB: Don't add other compile time dependencies to the config module as this breaks tooling
 | 
					
						
							| 
									
										
										
										
											2021-04-04 20:31:47 +08:00
										 |  |  | 	api project(':spring-security-core') | 
					
						
							|  |  |  | 	api 'org.springframework:spring-aop' | 
					
						
							|  |  |  | 	api 'org.springframework:spring-beans' | 
					
						
							|  |  |  | 	api 'org.springframework:spring-context' | 
					
						
							|  |  |  | 	api 'org.springframework:spring-core' | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	optional project(':spring-security-ldap') | 
					
						
							|  |  |  | 	optional project(':spring-security-messaging') | 
					
						
							| 
									
										
										
										
											2020-12-08 03:28:19 +08:00
										 |  |  | 	optional project(':saml2-service-provider-opensaml3') | 
					
						
							|  |  |  | 	optional project(':saml2-service-provider-opensaml4') | 
					
						
							| 
									
										
										
										
											2017-03-21 04:18:08 +08:00
										 |  |  | 	optional project(':spring-security-oauth2-client') | 
					
						
							| 
									
										
										
										
											2017-10-23 21:04:01 +08:00
										 |  |  | 	optional project(':spring-security-oauth2-jose') | 
					
						
							| 
									
										
										
										
											2018-06-13 11:33:26 +08:00
										 |  |  | 	optional project(':spring-security-oauth2-resource-server') | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | 	optional project(':spring-security-openid') | 
					
						
							| 
									
										
										
										
											2019-09-05 08:16:56 +08:00
										 |  |  | 	optional project(':spring-security-rsocket') | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | 	optional project(':spring-security-web') | 
					
						
							| 
									
										
										
										
											2017-10-13 02:45:23 +08:00
										 |  |  | 	optional 'io.projectreactor:reactor-core' | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | 	optional 'org.aspectj:aspectjweaver' | 
					
						
							|  |  |  | 	optional 'org.springframework:spring-jdbc' | 
					
						
							| 
									
										
										
										
											2019-09-05 08:16:56 +08:00
										 |  |  | 	optional 'org.springframework:spring-messaging' | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | 	optional 'org.springframework:spring-tx' | 
					
						
							|  |  |  | 	optional 'org.springframework:spring-webmvc' | 
					
						
							|  |  |  | 	optional'org.springframework:spring-web' | 
					
						
							| 
									
										
										
										
											2017-10-13 02:45:23 +08:00
										 |  |  | 	optional'org.springframework:spring-webflux' | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | 	optional'org.springframework:spring-websocket' | 
					
						
							| 
									
										
										
										
											2020-01-08 01:08:43 +08:00
										 |  |  | 	optional 'org.jetbrains.kotlin:kotlin-reflect' | 
					
						
							|  |  |  | 	optional 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	provided 'javax.servlet:javax.servlet-api' | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-04 20:31:47 +08:00
										 |  |  | 	testImplementation project(':spring-security-aspects') | 
					
						
							|  |  |  | 	testImplementation project(':spring-security-cas') | 
					
						
							|  |  |  | 	testImplementation project(':spring-security-test') | 
					
						
							|  |  |  | 	testImplementation project(path : ':spring-security-core', configuration : 'tests') | 
					
						
							|  |  |  | 	testImplementation project(path : ':spring-security-ldap', configuration : 'tests') | 
					
						
							|  |  |  | 	testImplementation project(path : ':spring-security-oauth2-client', configuration : 'tests') | 
					
						
							|  |  |  | 	testImplementation project(path : ':spring-security-oauth2-resource-server', configuration : 'tests') | 
					
						
							|  |  |  | 	testImplementation project(path : ':saml2-service-provider-core', configuration : 'tests') | 
					
						
							|  |  |  | 	testImplementation project(path : ':saml2-service-provider-opensaml4', configuration : 'tests') | 
					
						
							|  |  |  | 	testImplementation project(path : ':spring-security-web', configuration : 'tests') | 
					
						
							|  |  |  | 	testImplementation apachedsDependencies | 
					
						
							|  |  |  | 	testImplementation powerMock2Dependencies | 
					
						
							|  |  |  | 	testImplementation 'com.squareup.okhttp3:mockwebserver' | 
					
						
							|  |  |  | 	testImplementation 'ch.qos.logback:logback-classic' | 
					
						
							|  |  |  | 	testImplementation 'io.projectreactor.netty:reactor-netty' | 
					
						
							|  |  |  | 	testImplementation 'io.rsocket:rsocket-transport-netty' | 
					
						
							|  |  |  | 	testImplementation 'javax.annotation:jsr250-api:1.0' | 
					
						
							|  |  |  | 	testImplementation 'javax.xml.bind:jaxb-api' | 
					
						
							|  |  |  | 	testImplementation 'ldapsdk:ldapsdk:4.1' | 
					
						
							|  |  |  | 	testImplementation('net.sourceforge.htmlunit:htmlunit') { | 
					
						
							| 
									
										
										
										
											2017-09-09 04:45:17 +08:00
										 |  |  | 		exclude group: 'commons-logging', module: 'commons-logging' | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2021-04-04 20:31:47 +08:00
										 |  |  | 	testImplementation 'org.eclipse.persistence:javax.persistence' | 
					
						
							|  |  |  | 	testImplementation 'org.hibernate:hibernate-entitymanager' | 
					
						
							|  |  |  | 	testImplementation 'org.hsqldb:hsqldb' | 
					
						
							|  |  |  | 	testImplementation ('org.openid4java:openid4java-nodeps') { | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | 		exclude group: 'com.google.code.guice', module: 'guice' | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2021-04-04 20:31:47 +08:00
										 |  |  | 	testImplementation('org.seleniumhq.selenium:htmlunit-driver') { | 
					
						
							| 
									
										
										
										
											2017-09-09 04:45:17 +08:00
										 |  |  | 		exclude group: 'commons-logging', module: 'commons-logging' | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2021-04-04 20:31:47 +08:00
										 |  |  | 	testImplementation('org.seleniumhq.selenium:selenium-java') { | 
					
						
							| 
									
										
										
										
											2017-09-09 04:45:17 +08:00
										 |  |  | 		exclude group: 'commons-logging', module: 'commons-logging' | 
					
						
							|  |  |  | 		exclude group: 'io.netty', module: 'netty' | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2021-04-04 20:31:47 +08:00
										 |  |  | 	testImplementation 'org.slf4j:jcl-over-slf4j' | 
					
						
							|  |  |  | 	testImplementation 'org.springframework.ldap:spring-ldap-core' | 
					
						
							|  |  |  | 	testImplementation 'org.springframework:spring-expression' | 
					
						
							|  |  |  | 	testImplementation 'org.springframework:spring-jdbc' | 
					
						
							|  |  |  | 	testImplementation 'org.springframework:spring-orm' | 
					
						
							|  |  |  | 	testImplementation 'org.springframework:spring-tx' | 
					
						
							|  |  |  | 	testImplementation ('org.springframework.data:spring-data-jpa') { | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | 		exclude group: 'org.aspectj', module: 'aspectjrt' | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2021-04-09 19:11:18 +08:00
										 |  |  | 	testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core' | 
					
						
							|  |  |  | 	testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-reactor' | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-04 20:31:47 +08:00
										 |  |  | 	testRuntimeOnly 'org.hsqldb:hsqldb' | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | rncToXsd { | 
					
						
							|  |  |  | 	rncDir = file('src/main/resources/org/springframework/security/config/') | 
					
						
							|  |  |  | 	xsdDir = rncDir | 
					
						
							|  |  |  | 	xslFile = new File(rncDir, 'spring-security.xsl') | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-04-07 22:49:38 +08:00
										 |  |  | tasks.withType(KotlinCompile).configureEach { | 
					
						
							|  |  |  | 	kotlinOptions { | 
					
						
							|  |  |  | 		jvmTarget = "1.8" | 
					
						
							|  |  |  | 		freeCompilerArgs = ["-Xjsr305=strict"] | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2020-01-08 01:08:43 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-29 04:45:30 +08:00
										 |  |  | build.dependsOn rncToXsd |