Skip to content

Commit

Permalink
Use lazy API to configure rncToXsd task
Browse files Browse the repository at this point in the history
This avoids configuring the task eagerly.
  • Loading branch information
erichaagdev authored and marcusdacoregio committed Sep 13, 2023
1 parent 3feb809 commit 4ebfa2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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 @@ -109,7 +110,7 @@ dependencies {
testRuntimeOnly 'org.hsqldb:hsqldb'
}

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

0 comments on commit 4ebfa2c

Please sign in to comment.