2019-08-13 14:45:39 -07:00
|
|
|
apply plugin: 'io.spring.convention.spring-module'
|
2021-05-17 15:51:12 -05:00
|
|
|
apply plugin: 'nebula.facet'
|
2019-08-13 14:45:39 -07:00
|
|
|
|
2021-05-17 15:51:12 -05:00
|
|
|
facets {
|
|
|
|
opensaml3Main {
|
|
|
|
parentSourceSet = 'main'
|
2021-04-06 17:10:53 -06:00
|
|
|
}
|
2021-05-17 15:51:12 -05:00
|
|
|
opensaml4Main {
|
|
|
|
parentSourceSet = 'main'
|
2021-04-06 17:10:53 -06:00
|
|
|
}
|
2021-05-17 15:51:12 -05:00
|
|
|
opensaml3Test {
|
|
|
|
parentSourceSet = 'opensaml3Main'
|
2021-04-06 17:10:53 -06:00
|
|
|
}
|
2021-05-17 15:51:12 -05:00
|
|
|
opensaml4Test {
|
|
|
|
parentSourceSet = 'opensaml4Main'
|
2021-04-06 17:10:53 -06:00
|
|
|
}
|
2021-05-17 15:51:12 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
opensaml3Test {
|
|
|
|
compileClasspath += sourceSets.test.output
|
|
|
|
runtimeClasspath += sourceSets.test.output
|
2021-04-06 17:10:53 -06:00
|
|
|
}
|
2021-05-17 15:51:12 -05:00
|
|
|
opensaml4Test {
|
|
|
|
compileClasspath += sourceSets.test.output
|
|
|
|
runtimeClasspath += sourceSets.test.output
|
2020-12-07 12:28:19 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-17 15:51:12 -05:00
|
|
|
configurations {
|
|
|
|
opensaml3TestImplementation.extendsFrom testImplementation
|
|
|
|
opensaml4TestImplementation.extendsFrom testImplementation
|
2021-10-01 14:50:39 -03:00
|
|
|
opensaml4MainImplementation {
|
|
|
|
canBeConsumed = true
|
|
|
|
}
|
2021-05-17 15:51:12 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
compileOpensaml4MainJava {
|
2021-10-07 14:33:15 -03:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2021-05-17 15:51:12 -05:00
|
|
|
}
|
|
|
|
|
2020-12-07 12:28:19 -07:00
|
|
|
dependencies {
|
2021-10-05 11:23:29 -03:00
|
|
|
management platform(project(":spring-security-dependencies"))
|
2021-04-09 12:42:04 -06:00
|
|
|
api project(':spring-security-web')
|
2021-05-17 15:51:12 -05:00
|
|
|
api "org.opensaml:opensaml-core"
|
2021-12-10 15:15:28 -07:00
|
|
|
api ("org.opensaml:opensaml-saml-api") {
|
|
|
|
exclude group: 'commons-logging', module: 'commons-logging'
|
|
|
|
}
|
|
|
|
api ("org.opensaml:opensaml-saml-impl") {
|
|
|
|
exclude group: 'commons-logging', module: 'commons-logging'
|
|
|
|
}
|
2021-10-01 14:50:39 -03:00
|
|
|
opensaml4MainImplementation "org.opensaml:opensaml-core:4.1.0"
|
2021-12-10 15:15:28 -07:00
|
|
|
opensaml4MainImplementation ("org.opensaml:opensaml-saml-api:4.1.0") {
|
|
|
|
exclude group: 'commons-logging', module: 'commons-logging'
|
|
|
|
}
|
|
|
|
opensaml4MainImplementation ("org.opensaml:opensaml-saml-impl:4.1.0") {
|
|
|
|
exclude group: 'commons-logging', module: 'commons-logging'
|
|
|
|
}
|
2020-08-05 00:28:22 -06:00
|
|
|
|
2021-10-11 16:01:02 -03:00
|
|
|
provided 'jakarta.servlet:jakarta.servlet-api'
|
2021-05-17 15:51:12 -05:00
|
|
|
|
2022-02-24 23:50:09 +01:00
|
|
|
optional 'com.fasterxml.jackson.core:jackson-databind'
|
|
|
|
|
2021-05-17 15:51:12 -05:00
|
|
|
testImplementation 'com.squareup.okhttp3:mockwebserver'
|
2021-07-12 13:06:44 -05:00
|
|
|
testImplementation "org.assertj:assertj-core"
|
2022-02-24 23:50:09 +01:00
|
|
|
testImplementation "org.skyscreamer:jsonassert"
|
2021-07-12 13:06:44 -05:00
|
|
|
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"
|
2021-06-28 13:58:42 -03:00
|
|
|
testImplementation "org.mockito:mockito-inline"
|
2021-07-12 13:06:44 -05:00
|
|
|
testImplementation "org.mockito:mockito-junit-jupiter"
|
|
|
|
testImplementation "org.springframework:spring-test"
|
2021-04-06 17:10:53 -06:00
|
|
|
}
|
|
|
|
|
2021-05-17 15:51:12 -05:00
|
|
|
project.tasks.matching { t -> t.name == "jar"}.configureEach {
|
2021-10-01 14:50:39 -03:00
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
2021-05-17 15:51:12 -05:00
|
|
|
from {
|
|
|
|
compileOpensaml3MainJava
|
|
|
|
}
|
|
|
|
from {
|
|
|
|
compileOpensaml4MainJava
|
|
|
|
}
|
2021-04-06 17:10:53 -06:00
|
|
|
}
|
|
|
|
|
2021-05-17 15:51:12 -05:00
|
|
|
project.tasks.matching { t -> t.name == "sourcesJar"}.configureEach {
|
|
|
|
from {
|
|
|
|
sourceSets.opensaml3Main.allSource
|
|
|
|
}
|
|
|
|
from {
|
|
|
|
sourceSets.opensaml4Main.allSource
|
|
|
|
}
|
2019-08-13 14:45:39 -07:00
|
|
|
}
|
2021-05-17 22:39:34 -05:00
|
|
|
|
|
|
|
|
|
|
|
javadoc {
|
|
|
|
source += sourceSets.opensaml3Main.allJava + sourceSets.opensaml4Main.allJava
|
|
|
|
}
|
2021-08-16 15:22:29 -06:00
|
|
|
|
|
|
|
opensaml3Test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
|
|
|
opensaml4Test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|