File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
import io.spring.gradle.IncludeRepoTask
2
+ import trang.RncToXsd
2
3
3
4
buildscript {
4
5
dependencies {
@@ -174,7 +175,7 @@ if (hasProperty('buildScan')) {
174
175
175
176
nohttp {
176
177
source. exclude " buildSrc/build/**"
177
-
178
+ source . builtBy(project( ' :spring-security-config ' ) . tasks . withType( RncToXsd ))
178
179
}
179
180
180
181
tasks. register(' cloneSamples' , IncludeRepoTask ) {
Original file line number Diff line number Diff line change 1
1
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
+ import trang.RncToXsd
2
3
3
4
apply plugin : ' io.spring.convention.spring-module'
4
5
apply plugin : ' trang'
@@ -115,12 +116,20 @@ dependencies {
115
116
}
116
117
117
118
118
- rncToXsd {
119
+ tasks . named( ' rncToXsd' , RncToXsd ) . configure {
119
120
rncDir = file(' src/main/resources/org/springframework/security/config/' )
120
121
xsdDir = rncDir
121
122
xslFile = new File (rncDir, ' spring-security.xsl' )
122
123
}
123
124
125
+ sourceSets {
126
+ main {
127
+ resources {
128
+ srcDir(tasks. named(' rncToXsd' ))
129
+ }
130
+ }
131
+ }
132
+
124
133
tasks. withType(KotlinCompile ). configureEach {
125
134
kotlinOptions {
126
135
languageVersion = " 1.7"
@@ -129,5 +138,3 @@ tasks.withType(KotlinCompile).configureEach {
129
138
jvmTarget = " 17"
130
139
}
131
140
}
132
-
133
- build. dependsOn rncToXsd
You can’t perform that action at this time.
0 commit comments