mirror of
				https://github.com/spring-projects/spring-security.git
				synced 2025-10-31 06:38:42 +00:00 
			
		
		
		
	Prior to this commit, the implementation was placed in spring-security-core, however we do not want to introduce a dependency on spring-web and spring-webflux for that module. Issue gh-7395
		
			
				
	
	
		
			60 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| import java.util.concurrent.Callable
 | |
| 
 | |
| apply plugin: 'io.spring.convention.spring-module'
 | |
| 
 | |
| dependencies {
 | |
| 	management platform(project(":spring-security-dependencies"))
 | |
| 	api project(':spring-security-crypto')
 | |
| 	api 'org.springframework:spring-aop'
 | |
| 	api 'org.springframework:spring-beans'
 | |
| 	api 'org.springframework:spring-context'
 | |
| 	api 'org.springframework:spring-core'
 | |
| 	api 'org.springframework:spring-expression'
 | |
| 	api 'io.micrometer:micrometer-observation'
 | |
| 
 | |
| 	optional 'com.fasterxml.jackson.core:jackson-databind'
 | |
| 	optional 'io.projectreactor:reactor-core'
 | |
| 	optional 'jakarta.annotation:jakarta.annotation-api'
 | |
| 	optional 'org.aspectj:aspectjrt'
 | |
| 	optional 'org.springframework:spring-jdbc'
 | |
| 	optional 'org.springframework:spring-tx'
 | |
| 	optional 'org.jetbrains.kotlinx:kotlinx-coroutines-reactor'
 | |
| 
 | |
| 	testImplementation 'commons-collections:commons-collections'
 | |
| 	testImplementation 'io.projectreactor:reactor-test'
 | |
| 	testImplementation "org.assertj:assertj-core"
 | |
| 	testImplementation "org.junit.jupiter:junit-jupiter-api"
 | |
| 	testImplementation "org.junit.jupiter:junit-jupiter-params"
 | |
| 	testImplementation "org.junit.jupiter:junit-jupiter-engine"
 | |
| 	testImplementation "org.mockito:mockito-core"
 | |
| 	testImplementation "org.mockito:mockito-junit-jupiter"
 | |
| 	testImplementation "org.springframework:spring-test"
 | |
| 	testImplementation 'org.skyscreamer:jsonassert'
 | |
| 	testImplementation 'org.springframework:spring-test'
 | |
| 
 | |
| 	testRuntimeOnly 'org.hsqldb:hsqldb'
 | |
| }
 | |
| 
 | |
| task springVersion(type: org.gradle.api.tasks.WriteProperties) {
 | |
| 	destinationFile = file("${buildDir}/versions/spring-security.versions")
 | |
| 	property("org.springframework:spring-core", springVersion())
 | |
| }
 | |
| 
 | |
| tasks.processResources {
 | |
| 	into('META-INF') {
 | |
| 		from project.tasks.springVersion.outputs
 | |
| 	}
 | |
| }
 | |
| 
 | |
| configure(project.tasks.withType(Test)) {
 | |
| 	doFirst {
 | |
| 		systemProperties['springSecurityVersion'] = version
 | |
| 		systemProperties['springVersion'] = springVersion().call()
 | |
| 	}
 | |
| }
 | |
| 
 | |
| Callable<String> springVersion() {
 | |
| 	return  (Callable<String>) { project.configurations.compileClasspath.resolvedConfiguration.resolvedArtifacts
 | |
|     .find { it.name == 'spring-core' }.moduleVersion.id.version }
 | |
| }
 |