File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,6 @@ dependencies {
113
113
testRuntimeOnly ' org.hsqldb:hsqldb'
114
114
}
115
115
116
-
117
116
rncToXsd {
118
117
rncDir = file(' src/main/resources/org/springframework/security/config/' )
119
118
xsdDir = rncDir
@@ -130,3 +129,33 @@ tasks.withType(KotlinCompile).configureEach {
130
129
}
131
130
132
131
build. dependsOn rncToXsd
132
+
133
+ compileTestJava {
134
+ exclude " org/springframework/security/config/annotation/web/configurers/saml2/**" , " org/springframework/security/config/http/Saml2*"
135
+ }
136
+
137
+ task compileSaml2TestJava (type : JavaCompile ) {
138
+ javaCompiler = javaToolchains. compilerFor {
139
+ languageVersion = JavaLanguageVersion . of(11 )
140
+ }
141
+ source = sourceSets. test. java. srcDirs
142
+ include " org/springframework/security/config/annotation/web/configurers/saml2/**" , " org/springframework/security/config/http/Saml2*"
143
+ classpath = sourceSets. test. compileClasspath
144
+ destinationDirectory = new File (" ${ buildDir} /classes/java/test" )
145
+ options. sourcepath = sourceSets. test. java. getSourceDirectories()
146
+ }
147
+
148
+ task saml2Tests (type : Test ) {
149
+ javaLauncher = javaToolchains. launcherFor {
150
+ languageVersion = JavaLanguageVersion . of(11 )
151
+ }
152
+ filter {
153
+ includeTestsMatching " org.springframework.security.config.annotation.web.configurers.saml2.*"
154
+ }
155
+ useJUnitPlatform()
156
+ dependsOn compileSaml2TestJava
157
+ }
158
+
159
+ tasks. named(' test' ) {
160
+ finalizedBy ' saml2Tests'
161
+ }
You can’t perform that action at this time.
0 commit comments