From 620e6e0c34fd4d9e9be522e4cdee81015e923127 Mon Sep 17 00:00:00 2001 From: Eric Haag Date: Fri, 18 Aug 2023 16:26:17 +0100 Subject: [PATCH] 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. --- config/spring-security-config.gradle | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config/spring-security-config.gradle b/config/spring-security-config.gradle index 6f897d4a8b..e6be0cabe9 100644 --- a/config/spring-security-config.gradle +++ b/config/spring-security-config.gradle @@ -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" @@ -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*" }