Skip to content

Commit b4ce77c

Browse files
Merge branch '6.0.x' into 6.1.x
2 parents 461bf9a + 48babb7 commit b4ce77c

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'
@@ -116,12 +117,20 @@ dependencies {
116117
}
117118

118119

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

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

0 commit comments

Comments
 (0)