2020-03-04 16:14:21 -05:00
|
|
|
import java.util.concurrent.Callable
|
|
|
|
|
2017-03-28 16:45:30 -04:00
|
|
|
apply plugin: 'io.spring.convention.spring-module'
|
|
|
|
|
|
|
|
dependencies {
|
2021-04-04 20:36:21 -04:00
|
|
|
management platform(project(":spring-security-dependencies"))
|
2021-05-18 17:03:35 -04:00
|
|
|
api project(':spring-security-crypto')
|
2021-04-04 08:31:47 -04:00
|
|
|
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'
|
2017-03-28 16:45:30 -04:00
|
|
|
|
|
|
|
optional 'com.fasterxml.jackson.core:jackson-databind'
|
2017-05-02 22:19:14 -04:00
|
|
|
optional 'io.projectreactor:reactor-core'
|
2017-03-28 16:45:30 -04:00
|
|
|
optional 'javax.annotation:jsr250-api'
|
|
|
|
optional 'net.sf.ehcache:ehcache'
|
|
|
|
optional 'org.aspectj:aspectjrt'
|
|
|
|
optional 'org.springframework:spring-jdbc'
|
|
|
|
optional 'org.springframework:spring-tx'
|
2021-04-09 07:11:18 -04:00
|
|
|
optional 'org.jetbrains.kotlinx:kotlinx-coroutines-reactor'
|
2017-03-28 16:45:30 -04:00
|
|
|
|
2021-04-04 08:31:47 -04:00
|
|
|
testImplementation 'commons-collections:commons-collections'
|
|
|
|
testImplementation 'io.projectreactor:reactor-test'
|
2021-07-07 10:11:53 -04:00
|
|
|
testImplementation 'org.mockito:mockito-core'
|
|
|
|
testImplementation 'org.mockito:mockito-inline'
|
2021-04-04 08:31:47 -04:00
|
|
|
testImplementation 'org.skyscreamer:jsonassert'
|
|
|
|
testImplementation 'org.slf4j:jcl-over-slf4j'
|
|
|
|
testImplementation 'org.springframework:spring-test'
|
2017-03-28 16:45:30 -04:00
|
|
|
|
2021-04-04 08:31:47 -04:00
|
|
|
testRuntimeOnly 'org.hsqldb:hsqldb'
|
2017-03-28 16:45:30 -04:00
|
|
|
}
|
|
|
|
|
2020-03-04 16:14:21 -05:00
|
|
|
task springVersion(type: org.gradle.api.tasks.WriteProperties) {
|
|
|
|
outputFile = file("${buildDir}/versions/spring-security.versions")
|
|
|
|
property("org.springframework:spring-core", springVersion())
|
2018-03-16 14:53:40 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.processResources {
|
|
|
|
into('META-INF') {
|
|
|
|
from project.tasks.springVersion.outputs
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-28 16:45:30 -04:00
|
|
|
configure(project.tasks.withType(Test)) {
|
2018-03-16 14:55:17 -04:00
|
|
|
doFirst {
|
|
|
|
systemProperties['springSecurityVersion'] = version
|
2020-03-04 16:14:21 -05:00
|
|
|
systemProperties['springVersion'] = springVersion().call()
|
2018-03-16 14:55:17 -04:00
|
|
|
}
|
2017-03-28 16:45:30 -04:00
|
|
|
}
|
2020-01-06 16:12:04 -05:00
|
|
|
|
2020-03-04 16:14:21 -05:00
|
|
|
Callable<String> springVersion() {
|
2021-04-04 11:44:50 -04:00
|
|
|
return (Callable<String>) { project.configurations.compileClasspath.resolvedConfiguration.resolvedArtifacts
|
2020-03-04 16:14:21 -05:00
|
|
|
.find { it.name == 'spring-core' }.moduleVersion.id.version }
|
2020-01-06 16:12:04 -05:00
|
|
|
}
|