File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed
buildSrc/src/main/groovy/io/spring/gradle/convention
main/resources/org/springframework/security/config
test/java/org/springframework/security/config/doc Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
package io.spring.gradle.convention
2
2
3
- import org.gradle.api.plugins.JavaPlugin
4
- import org.gradle.api.tasks.bundling.Zip
5
3
import org.gradle.api.Plugin
6
4
import org.gradle.api.Project
5
+ import org.gradle.api.plugins.JavaPlugin
6
+ import org.gradle.api.tasks.bundling.Zip
7
7
8
8
public class SchemaZipPlugin implements Plugin<Project > {
9
9
@@ -37,6 +37,15 @@ public class SchemaZipPlugin implements Plugin<Project> {
37
37
from xsdFile. path
38
38
}
39
39
}
40
+ File symlink = module. sourceSets. main. resources. find {
41
+ it. path. endsWith(' org/springframework/security/config/spring-security.xsd' )
42
+ }
43
+ if (symlink != null ) {
44
+ schemaZip. into(' security' ) {
45
+ duplicatesStrategy ' exclude'
46
+ from symlink. path
47
+ }
48
+ }
40
49
}
41
50
}
42
51
}
Original file line number Diff line number Diff line change
1
+ spring-security-5.7.xsd
Original file line number Diff line number Diff line change @@ -150,8 +150,8 @@ public void sizeWhenReadingFilesystemThenIsCorrectNumberOfSchemaFiles() throws I
150
150
.getParentFile ()
151
151
.list ((dir , name ) -> name .endsWith (".xsd" ));
152
152
// @formatter:on
153
- assertThat (schemas .length ).isEqualTo (19 )
154
- .withFailMessage ("the count is equal to 19 , if not then schemaDocument needs updating" );
153
+ assertThat (schemas .length ).isEqualTo (20 )
154
+ .withFailMessage ("the count is equal to 20 , if not then schemaDocument needs updating" );
155
155
}
156
156
157
157
/**
You can’t perform that action at this time.
0 commit comments