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

154 lines
4.7 KiB
Groovy
Raw Normal View History

2026-01-25 13:19:40 +07:00
plugins {
id 'compile-warnings-error'
2026-01-27 20:46:36 +07:00
id 'javadoc-warnings-error'
2026-02-02 13:05:11 -07:00
id 'security-nullability'
2026-01-25 13:19:40 +07:00
}
2019-08-13 14:45:39 -07:00
apply plugin: 'io.spring.convention.spring-module'
2021-05-17 15:51:12 -05:00
configurations {
2024-08-05 16:16:05 -06:00
opensamlFiveMain { extendsFrom(optional, provided) }
opensamlFiveTest { extendsFrom(opensamlFiveMain, testImplementation, testRuntimeOnly) }
}
sourceSets {
2024-08-05 10:39:26 -06:00
opensaml5Main {
java {
2024-08-05 16:16:05 -06:00
compileClasspath = main.output + configurations.opensamlFiveMain
2024-08-05 10:39:26 -06:00
srcDir 'src/opensaml5Main/java'
}
}
opensaml5Test {
java {
2024-08-05 16:16:05 -06:00
compileClasspath = main.output + test.output + opensaml5Main.output + configurations.opensamlFiveTest
runtimeClasspath = main.output + test.output + opensaml5Main.output + configurations.opensamlFiveTest
2024-08-05 10:39:26 -06:00
srcDir 'src/opensaml5Test/java'
}
}
}
2024-08-02 18:29:07 -06:00
sourceSets.configureEach { set ->
if (!set.name.containsIgnoreCase("main")) {
return
}
def from = copySpec {
from("$projectDir/src/$set.name/java/org/springframework/security/saml2/internal")
}
copy {
into "$projectDir/src/$set.name/java/org/springframework/security/saml2/provider/service/authentication/logout"
filter { line -> line.replaceAll(".saml2.internal", ".saml2.provider.service.authentication.logout") }
with from
}
2024-08-02 18:50:28 -06:00
copy {
into "$projectDir/src/$set.name/java/org/springframework/security/saml2/provider/service/authentication"
filter { line -> line.replaceAll(".saml2.internal", ".saml2.provider.service.authentication") }
with from
}
2024-08-02 18:57:57 -06:00
copy {
into "$projectDir/src/$set.name/java/org/springframework/security/saml2/provider/service/metadata"
filter { line -> line.replaceAll(".saml2.internal", ".saml2.provider.service.metadata") }
with from
}
copy {
into "$projectDir/src/$set.name/java/org/springframework/security/saml2/provider/service/web/authentication/logout"
filter { line -> line.replaceAll(".saml2.internal", ".saml2.provider.service.web.authentication.logout") }
with from
}
2024-08-05 08:56:18 -06:00
copy {
into "$projectDir/src/$set.name/java/org/springframework/security/saml2/provider/service/web/authentication"
filter { line -> line.replaceAll(".saml2.internal", ".saml2.provider.service.web.authentication") }
with from
}
2024-08-05 09:19:19 -06:00
copy {
into "$projectDir/src/$set.name/java/org/springframework/security/saml2/provider/service/web"
filter { line -> line.replaceAll(".saml2.internal", ".saml2.provider.service.web") }
with from
}
2024-08-05 09:32:02 -06:00
copy {
into "$projectDir/src/$set.name/java/org/springframework/security/saml2/provider/service/registration"
filter { line -> line.replaceAll(".saml2.internal", ".saml2.provider.service.registration") }
with from
}
2024-08-02 18:29:07 -06: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')
2024-08-05 16:16:05 -06:00
2024-08-05 10:39:26 -06:00
api ('org.opensaml:opensaml-saml-api') {
2021-12-10 15:15:28 -07:00
exclude group: 'commons-logging', module: 'commons-logging'
}
2024-08-05 10:39:26 -06:00
api ('org.opensaml:opensaml-saml-impl') {
exclude group: 'commons-logging', module: 'commons-logging'
}
2024-08-05 16:16:05 -06:00
opensamlFiveMain (libs.org.opensaml.opensaml5.saml.api) {
2024-08-05 10:39:26 -06:00
exclude group: 'commons-logging', module: 'commons-logging'
}
2025-08-14 18:01:02 -06:00
opensamlFiveMain (libs.org.opensaml.opensaml5.saml.api) {
2021-12-10 15:15:28 -07:00
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'
2025-05-08 17:24:30 +08:00
optional 'org.springframework:spring-jdbc'
2025-09-01 18:23:31 +02:00
optional 'tools.jackson.core:jackson-databind'
2022-02-24 23:50:09 +01:00
2025-07-02 18:16:41 -06:00
testImplementation project(path: ':spring-security-web', configuration: 'tests')
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"
testImplementation "org.mockito:mockito-junit-jupiter"
testImplementation "org.springframework:spring-test"
2025-03-17 14:16:44 -05:00
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
2025-05-08 17:24:30 +08:00
testRuntimeOnly 'org.hsqldb:hsqldb'
2026-01-25 13:19:40 +07:00
opensamlFiveMain "org.apiguardian:apiguardian-api:1.1.2"
2021-04-06 17:10:53 -06:00
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
2024-08-05 10:39:26 -06:00
from sourceSets.opensaml5Main.output
}
sourcesJar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
2024-08-05 10:39:26 -06:00
from sourceSets.opensaml5Main.allJava
}
testJar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
2024-08-05 10:39:26 -06:00
from sourceSets.opensaml5Test.output
}
javadoc {
2024-08-05 16:16:05 -06:00
classpath += configurations.opensamlFiveMain
2025-08-14 18:01:02 -06:00
source = sourceSets.main.allJava + sourceSets.opensaml5Main.allJava
}
2026-02-05 13:12:33 -07:00
tasks.named("compileOpensaml5MainJava") {
options.nullability.checking = "main"
}
2024-08-05 10:39:26 -06:00
tasks.register("opensaml5Test", Test) {
useJUnitPlatform()
2024-08-05 16:16:05 -06:00
testClassesDirs = sourceSets.opensaml5Test.output.classesDirs
classpath = sourceSets.opensaml5Test.output + sourceSets.opensaml5Test.runtimeClasspath
2024-08-05 10:39:26 -06:00
}
tasks.named("test") {
2024-08-05 10:39:26 -06:00
dependsOn opensaml5Test
}