Version layers configuration xsd

This commit provides a versioned xsd for the layers configuration of the
Maven plugin. The version starts at `2.3` to match with the Spring Boot
feature release in which this was introduced.

Closes gh-20663
pull/20667/head
Stephane Nicoll 5 years ago
parent 5c6bc3729e
commit 6aa3461611

@ -50,6 +50,13 @@ syncDocumentationSourceForAsciidoctor {
} }
} }
tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
doFirst {
def versionEl = version.split("\\.")
attributes "spring-boot-xsd-version": versionEl[0] + '.' + versionEl[1]
}
}
asciidoctor { asciidoctor {
sources { sources {
include "index.adoc" include "index.adoc"

@ -144,7 +144,7 @@ The following example shows what the implicit layer configuration described abov
<layers-configuration xmlns="http://www.springframework.org/schema/boot/layers" <layers-configuration xmlns="http://www.springframework.org/schema/boot/layers"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/boot/layers xsi:schemaLocation="http://www.springframework.org/schema/boot/layers
https://www.springframework.org/schema/boot/layers/layers-configuration.xsd"> https://www.springframework.org/schema/boot/layers/layers-configuration-{spring-boot-xsd-version}.xsd">
<layers> <layers>
<layer>dependencies</layer> <layer>dependencies</layer>
<layer>snapshot-dependencies</layer> <layer>snapshot-dependencies</layer>
@ -554,7 +554,7 @@ This allows to reuse the cache for external dependencies when an internal depend
<layers-configuration xmlns="http://www.springframework.org/schema/boot/layers" <layers-configuration xmlns="http://www.springframework.org/schema/boot/layers"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/boot/layers xsi:schemaLocation="http://www.springframework.org/schema/boot/layers
https://www.springframework.org/schema/boot/layers/layers-configuration.xsd"> https://www.springframework.org/schema/boot/layers/layers-configuration-{spring-boot-xsd-version}.xsd">
<layers> <layers>
<layer>application</layer> <layer>application</layer>
<layer>resources</layer> <layer>resources</layer>

@ -1,7 +1,7 @@
<layers-configuration xmlns="http://www.springframework.org/schema/boot/layers" <layers-configuration xmlns="http://www.springframework.org/schema/boot/layers"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/boot/layers xsi:schemaLocation="http://www.springframework.org/schema/boot/layers
https://www.springframework.org/schema/layers/layers-configuration.xsd"> https://www.springframework.org/schema/layers/layers-configuration-2.3.xsd">
<layers> <layers>
<layer>configuration</layer> <layer>configuration</layer>
<layer>application</layer> <layer>application</layer>

@ -1,7 +1,7 @@
<layers-configuration xmlns="http://www.springframework.org/schema/boot/layers" <layers-configuration xmlns="http://www.springframework.org/schema/boot/layers"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/boot/layers xsi:schemaLocation="http://www.springframework.org/schema/boot/layers
https://www.springframework.org/schema/boot/layers/layers-configuration.xsd"> https://www.springframework.org/schema/boot/layers/layers-configuration-2.3.xsd">
<layers> <layers>
<layer>configuration</layer> <layer>configuration</layer>
<layer>application</layer> <layer>application</layer>

@ -1,7 +1,7 @@
<layers-configuration xmlns="http://www.springframework.org/schema/boot/layers" <layers-configuration xmlns="http://www.springframework.org/schema/boot/layers"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/boot/layers xsi:schemaLocation="http://www.springframework.org/schema/boot/layers
https://www.springframework.org/schema/boot/layers/layers-configuration.xsd"> https://www.springframework.org/schema/boot/layers/layers-configuration-2.3.xsd">
<layers> <layers>
<layer>my-deps</layer> <layer>my-deps</layer>
</layers> </layers>

@ -1,7 +1,7 @@
<layers-configuration xmlns="http://www.springframework.org/schema/boot/layers" <layers-configuration xmlns="http://www.springframework.org/schema/boot/layers"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/boot/layers xsi:schemaLocation="http://www.springframework.org/schema/boot/layers
https://www.springframework.org/schema/boot/layers/layers-configuration.xsd"> https://www.springframework.org/schema/boot/layers/layers-configuration-2.3.xsd">
<layers> <layers>
<layer>my-layer</layer> <layer>my-layer</layer>
</layers> </layers>

Loading…
Cancel
Save