Skip to content

Commit

Permalink
Merge branch '6.1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusdacoregio committed Sep 13, 2023
2 parents 5535d17 + b4ce77c commit f5942aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import io.spring.gradle.IncludeRepoTask
import trang.RncToXsd

buildscript {
dependencies {
Expand Down Expand Up @@ -174,7 +175,7 @@ if (hasProperty('buildScan')) {

nohttp {
source.exclude "buildSrc/build/**"

source.builtBy(project(':spring-security-config').tasks.withType(RncToXsd))
}

tasks.register('cloneSamples', IncludeRepoTask) {
Expand Down
13 changes: 10 additions & 3 deletions config/spring-security-config.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import trang.RncToXsd

apply plugin: 'io.spring.convention.spring-module'
apply plugin: 'trang'
Expand Down Expand Up @@ -116,12 +117,20 @@ dependencies {
}


rncToXsd {
tasks.named('rncToXsd', RncToXsd).configure {
rncDir = file('src/main/resources/org/springframework/security/config/')
xsdDir = rncDir
xslFile = new File(rncDir, 'spring-security.xsl')
}

sourceSets {
main {
resources {
srcDir(tasks.named('rncToXsd'))
}
}
}

tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
languageVersion = "1.7"
Expand All @@ -130,5 +139,3 @@ tasks.withType(KotlinCompile).configureEach {
jvmTarget = "17"
}
}

build.dependsOn rncToXsd

0 comments on commit f5942aa

Please sign in to comment.