Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No implicit or explicit dependency on rncToXsd task causes caching to be disabled for some tasks #13668

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import io.spring.gradle.IncludeRepoTask
import trang.RncToXsd

buildscript {
dependencies {
Expand Down Expand Up @@ -174,7 +175,7 @@ if (hasProperty('buildScan')) {

nohttp {
source.exclude "buildSrc/build/**"

source.builtBy(project(':spring-security-config').tasks.withType(RncToXsd))
}

tasks.register('cloneSamples', IncludeRepoTask) {
Expand Down
14 changes: 10 additions & 4 deletions config/spring-security-config.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import trang.RncToXsd

apply plugin: 'io.spring.convention.spring-module'
apply plugin: 'trang'
Expand Down Expand Up @@ -115,13 +116,20 @@ dependencies {
testRuntimeOnly 'org.hsqldb:hsqldb'
}


rncToXsd {
tasks.named('rncToXsd', RncToXsd).configure {
rncDir = file('src/main/resources/org/springframework/security/config/')
xsdDir = rncDir
xslFile = new File(rncDir, 'spring-security.xsl')
}

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

tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
languageVersion = "1.7"
Expand All @@ -130,5 +138,3 @@ tasks.withType(KotlinCompile).configureEach {
jvmTarget = "17"
}
}

build.dependsOn rncToXsd