Skip to content

Commit

Permalink
Add rncToXsd task to resources set
Browse files Browse the repository at this point in the history
This addresses a deprecation warning causing build caching to be
disabled for some tasks. With this change, we tell Gradle that the
rncToXsd task produces output that should be considered a resource.
This clears up ambiguities when computing the task graph.
  • Loading branch information
erichaagdev authored and marcusdacoregio committed Sep 13, 2023
1 parent 4ebfa2c commit 620e6e0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions config/spring-security-config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ tasks.named('rncToXsd', RncToXsd).configure {
xslFile = new File(rncDir, 'spring-security.xsl')
}

sourceSets {
main {
resources {
srcDir(tasks.named('rncToXsd'))
}
}
}

tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
languageVersion = "1.3"
Expand All @@ -125,8 +133,6 @@ tasks.withType(KotlinCompile).configureEach {
}
}

build.dependsOn rncToXsd

compileTestJava {
exclude "org/springframework/security/config/annotation/web/configurers/saml2/**", "org/springframework/security/config/http/Saml2*"
}
Expand Down

0 comments on commit 620e6e0

Please sign in to comment.