Merge branch '5.7.x' into 5.8.x

Closes gh-13207
This commit is contained in:
Josh Cummings 2023-05-22 15:42:36 -06:00
commit 62ede47d86
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5
2 changed files with 12 additions and 2 deletions

View File

@ -1,9 +1,9 @@
package io.spring.gradle.convention
import org.gradle.api.plugins.JavaPlugin
import org.gradle.api.tasks.bundling.Zip
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.JavaPlugin
import org.gradle.api.tasks.bundling.Zip
public class SchemaZipPlugin implements Plugin<Project> {
@ -37,6 +37,15 @@ public class SchemaZipPlugin implements Plugin<Project> {
from xsdFile.path
}
}
File symlink = module.sourceSets.main.resources.find {
it.path.endsWith('org/springframework/security/config/spring-security.xsd')
}
if (symlink != null) {
schemaZip.into('security') {
duplicatesStrategy 'exclude'
from symlink.path
}
}
}
}
}

View File

@ -0,0 +1 @@
spring-security-5.7.xsd