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 11import io.spring.gradle.IncludeRepoTask
2+ import trang.RncToXsd
23
34buildscript {
45 dependencies {
@@ -174,7 +175,7 @@ if (hasProperty('buildScan')) {
174175
175176nohttp {
176177 source. exclude " buildSrc/build/**"
177-
178+ source . builtBy(project( ' :spring-security-config ' ) . tasks . withType( RncToXsd ))
178179}
179180
180181tasks. register(' cloneSamples' , IncludeRepoTask ) {
Original file line number Diff line number Diff line change 11import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2+ import trang.RncToXsd
23
34apply plugin : ' io.spring.convention.spring-module'
45apply 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+
125134tasks. 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
You can’t perform that action at this time.
0 commit comments