1
0
mirror of synced 2026-05-22 21:33:16 +00:00
Files
spring-security/core/spring-security-core.gradle
T

63 lines
1.8 KiB
Groovy
Raw Normal View History

2017-03-28 15:45:30 -05:00
apply plugin: 'io.spring.convention.spring-module'
def includeProject = project(':spring-security-crypto')
configurations {
included
compile.extendsFrom included
}
dependencies {
compile 'org.springframework:spring-aop'
compile 'org.springframework:spring-beans'
compile 'org.springframework:spring-context'
compile 'org.springframework:spring-core'
compile 'org.springframework:spring-expression'
included includeProject
optional 'com.fasterxml.jackson.core:jackson-databind'
2017-05-02 21:19:14 -05:00
optional 'io.projectreactor:reactor-core'
2017-03-28 15:45:30 -05: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'
2017-10-09 13:19:21 -05:00
testCompile powerMock2Dependencies
2017-03-28 15:45:30 -05:00
testCompile 'commons-collections:commons-collections'
testCompile 'io.projectreactor:reactor-test'
2017-03-28 15:45:30 -05:00
testCompile 'org.skyscreamer:jsonassert'
testCompile 'org.slf4j:jcl-over-slf4j'
testCompile 'org.springframework:spring-test'
testRuntime 'org.hsqldb:hsqldb'
}
2018-03-16 13:53:40 -05:00
task springVersion(type: versions.VersionsResourceTasks) {
versionsFile = file("${buildDir}/versions/spring-security.versions")
2020-01-06 15:12:04 -06:00
versions = provider { ["org.springframework:spring-core":"${springVersion()}"] }
2018-03-16 13:53:40 -05:00
}
tasks.processResources {
into('META-INF') {
from project.tasks.springVersion.outputs
}
}
2018-02-01 13:17:01 +01:00
tasks.jar.from { includeProject.sourceSets.main.output }
2017-03-28 15:45:30 -05:00
tasks.sourcesJar.from {includeProject.sourceSets.main.java}
configure(project.tasks.withType(Test)) {
2018-03-16 13:55:17 -05:00
doFirst {
systemProperties['springSecurityVersion'] = version
2020-01-06 15:12:04 -06:00
systemProperties['springVersion'] = springVersion()
2018-03-16 13:55:17 -05:00
}
2017-03-28 15:45:30 -05:00
}
2020-01-06 15:12:04 -06:00
String springVersion() {
return project.configurations.compile.resolvedConfiguration.resolvedArtifacts
.find { it.name == 'spring-core' }.moduleVersion.id.version
}