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

97 lines
2.3 KiB
Groovy
Raw Normal View History

apply plugin: 'io.spring.convention.spring-module'
2021-05-17 16:51:12 -04:00
apply plugin: 'nebula.facet'
2021-05-17 16:51:12 -04:00
facets {
opensaml3Main {
parentSourceSet = 'main'
}
2021-05-17 16:51:12 -04:00
opensaml4Main {
parentSourceSet = 'main'
}
2021-05-17 16:51:12 -04:00
opensaml3Test {
parentSourceSet = 'opensaml3Main'
}
2021-05-17 16:51:12 -04:00
opensaml4Test {
parentSourceSet = 'opensaml4Main'
}
2021-05-17 16:51:12 -04:00
}
sourceSets {
opensaml3Test {
compileClasspath += sourceSets.test.output
runtimeClasspath += sourceSets.test.output
}
2021-05-17 16:51:12 -04:00
opensaml4Test {
compileClasspath += sourceSets.test.output
runtimeClasspath += sourceSets.test.output
2020-12-07 14:28:19 -05:00
}
}
2021-05-17 16:51:12 -04:00
configurations {
opensaml3TestImplementation.extendsFrom testImplementation
opensaml4TestImplementation.extendsFrom testImplementation
2021-10-01 13:50:39 -04:00
opensaml4MainImplementation {
canBeConsumed = true
}
2021-05-17 16:51:12 -04:00
}
compileOpensaml4MainJava {
sourceCompatibility = '11'
targetCompatibility = '11'
}
2020-12-07 14:28:19 -05:00
dependencies {
2021-10-01 13:50:39 -04:00
api platform(project(":spring-security-dependencies"))
api project(':spring-security-web')
2021-05-17 16:51:12 -04:00
api "org.opensaml:opensaml-core"
api "org.opensaml:opensaml-saml-api"
api "org.opensaml:opensaml-saml-impl"
2021-10-01 13:50:39 -04:00
opensaml4MainImplementation "org.opensaml:opensaml-core:4.1.0"
opensaml4MainImplementation "org.opensaml:opensaml-saml-api:4.1.0"
opensaml4MainImplementation "org.opensaml:opensaml-saml-impl:4.1.0"
2021-05-17 16:51:12 -04:00
provided 'javax.servlet:javax.servlet-api'
testImplementation 'com.squareup.okhttp3:mockwebserver'
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-inline"
testImplementation "org.mockito:mockito-junit-jupiter"
testImplementation "org.springframework:spring-test"
}
2021-05-17 16:51:12 -04:00
project.tasks.matching { t -> t.name == "jar"}.configureEach {
2021-10-01 13:50:39 -04:00
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
2021-05-17 16:51:12 -04:00
from {
compileOpensaml3MainJava
}
from {
compileOpensaml4MainJava
}
}
2021-05-17 16:51:12 -04:00
project.tasks.matching { t -> t.name == "sourcesJar"}.configureEach {
from {
sourceSets.opensaml3Main.allSource
}
from {
sourceSets.opensaml4Main.allSource
}
}
2021-05-17 23:39:34 -04:00
javadoc {
source += sourceSets.opensaml3Main.allJava + sourceSets.opensaml4Main.allJava
}
opensaml3Test {
useJUnitPlatform()
}
opensaml4Test {
useJUnitPlatform()
}