Skip to content

Commit 620e6e0

Browse files
erichaagdevmarcusdacoregio
authored andcommitted
Add rncToXsd task to resources set
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.
1 parent 4ebfa2c commit 620e6e0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

config/spring-security-config.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ tasks.named('rncToXsd', RncToXsd).configure {
116116
xslFile = new File(rncDir, 'spring-security.xsl')
117117
}
118118

119+
sourceSets {
120+
main {
121+
resources {
122+
srcDir(tasks.named('rncToXsd'))
123+
}
124+
}
125+
}
126+
119127
tasks.withType(KotlinCompile).configureEach {
120128
kotlinOptions {
121129
languageVersion = "1.3"
@@ -125,8 +133,6 @@ tasks.withType(KotlinCompile).configureEach {
125133
}
126134
}
127135

128-
build.dependsOn rncToXsd
129-
130136
compileTestJava {
131137
exclude "org/springframework/security/config/annotation/web/configurers/saml2/**", "org/springframework/security/config/http/Saml2*"
132138
}

0 commit comments

Comments
 (0)