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'
@@ -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+
124133tasks. 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
You can’t perform that action at this time.
0 commit comments