spring-security/saml2/saml2-service-provider/spring-security-saml2-servi...

89 lines
2.7 KiB
Groovy

apply plugin: 'io.spring.convention.spring-module'
tasks.forEach({ task ->
if (project(":saml2-service-provider-core").tasks.findByName(task.name)) {
task.dependsOn(project(":saml2-service-provider-core").tasks[task.name])
}
if (project(":saml2-service-provider-opensaml3").tasks.findByName(task.name)) {
task.dependsOn(project(":saml2-service-provider-opensaml3").tasks[task.name])
}
if (project(":saml2-service-provider-opensaml4").tasks.findByName(task.name)) {
task.dependsOn(project(":saml2-service-provider-opensaml4").tasks[task.name])
}
})
configurations {
coreSource {
canBeConsumed = false
canBeResolved = true
}
opensaml3Source {
canBeConsumed = false
canBeResolved = true
}
opensaml4Source {
canBeConsumed = false
canBeResolved = true
}
coreClasses {
canBeConsumed = false
canBeResolved = true
}
opensaml3Classes {
canBeConsumed = false
canBeResolved = true
}
opensaml4Classes {
canBeConsumed = false
canBeResolved = true
}
coreJavadoc {
canBeConsumed = false
canBeResolved = true
}
opensaml3Javadoc {
canBeConsumed = false
canBeResolved = true
}
opensaml4Javadoc {
canBeConsumed = false
canBeResolved = true
}
}
dependencies {
management platform(project(":spring-security-dependencies"))
api project(':spring-security-web')
api("org.opensaml:opensaml-core")
api("org.opensaml:opensaml-saml-api")
api("org.opensaml:opensaml-saml-impl")
coreSource(project(path: ":saml2-service-provider-core", configuration: 'sourceElements'))
opensaml3Source(project(path: ":saml2-service-provider-opensaml3", configuration: 'sourceElements'))
opensaml4Source(project(path: ":saml2-service-provider-opensaml4", configuration: 'sourceElements'))
coreClasses(project(path: ":saml2-service-provider-core", configuration: 'classesOnlyElements'))
opensaml3Classes(project(path: ":saml2-service-provider-opensaml3", configuration: 'classesOnlyElements'))
opensaml4Classes(project(path: ":saml2-service-provider-opensaml4", configuration: 'classesOnlyElements'))
coreJavadoc(project(path: ":saml2-service-provider-core", configuration: 'javadocElements'))
opensaml3Javadoc(project(path: ":saml2-service-provider-opensaml3", configuration: 'javadocElements'))
opensaml4Javadoc(project(path: ":saml2-service-provider-opensaml4", configuration: 'javadocElements'))
}
jar {
from configurations.coreClasses
from configurations.opensaml3Classes
from configurations.opensaml4Classes
}
javadocJar {
from configurations.coreJavadoc
from configurations.opensaml3Javadoc
from configurations.opensaml4Javadoc
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
sourcesJar {
from configurations.coreSource
from configurations.opensaml3Source
from configurations.opensaml4Source
}