Skip to content

Commit 48babb7

Browse files
Merge branch '5.8.x' into 6.0.x
2 parents f03224f + f026e29 commit 48babb7

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import io.spring.gradle.IncludeRepoTask
2+
import trang.RncToXsd
23

34
buildscript {
45
dependencies {
@@ -174,7 +175,7 @@ if (hasProperty('buildScan')) {
174175

175176
nohttp {
176177
source.exclude "buildSrc/build/**"
177-
178+
source.builtBy(project(':spring-security-config').tasks.withType(RncToXsd))
178179
}
179180

180181
tasks.register('cloneSamples', IncludeRepoTask) {

config/spring-security-config.gradle

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2+
import trang.RncToXsd
23

34
apply plugin: 'io.spring.convention.spring-module'
45
apply plugin: 'trang'
@@ -115,12 +116,20 @@ dependencies {
115116
}
116117

117118

118-
rncToXsd {
119+
tasks.named('rncToXsd', RncToXsd).configure {
119120
rncDir = file('src/main/resources/org/springframework/security/config/')
120121
xsdDir = rncDir
121122
xslFile = new File(rncDir, 'spring-security.xsl')
122123
}
123124

125+
sourceSets {
126+
main {
127+
resources {
128+
srcDir(tasks.named('rncToXsd'))
129+
}
130+
}
131+
}
132+
124133
tasks.withType(KotlinCompile).configureEach {
125134
kotlinOptions {
126135
languageVersion = "1.7"
@@ -129,5 +138,3 @@ tasks.withType(KotlinCompile).configureEach {
129138
jvmTarget = "17"
130139
}
131140
}
132-
133-
build.dependsOn rncToXsd

0 commit comments

Comments
 (0)