Skip to content

Commit 458f7f6

Browse files
committed
Polish "Start development of Spring Boot 4.1.x"
1 parent 7db1b39 commit 458f7f6

File tree

6 files changed

+105
-5
lines changed

6 files changed

+105
-5
lines changed

build-plugin/spring-boot-maven-plugin/src/intTest/projects/jar-layered-custom/jar/src/layers.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<layers xmlns="http://www.springframework.org/schema/boot/layers"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://www.springframework.org/schema/boot/layers
4-
https://www.springframework.org/schema/layers/layers-4.0.xsd">
4+
https://www.springframework.org/schema/layers/layers-4.1.xsd">
55
<application>
66
<into layer="configuration">
77
<include>**/application*.*</include>

build-plugin/spring-boot-maven-plugin/src/intTest/projects/war-layered-custom/war/src/layers.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<layers xmlns="http://www.springframework.org/schema/boot/layers"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://www.springframework.org/schema/boot/layers
4-
https://www.springframework.org/schema/layers/layers-4.0.xsd">
4+
https://www.springframework.org/schema/layers/layers-4.1.xsd">
55
<application>
66
<into layer="configuration">
77
<include>**/application*.*</include>
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<xsd:schema elementFormDefault="qualified"
3+
xmlns="http://www.springframework.org/schema/boot/layers"
4+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5+
targetNamespace="http://www.springframework.org/schema/boot/layers">
6+
<xsd:element name="layers" type="layersType" />
7+
<xsd:complexType name="layersType">
8+
<xsd:sequence>
9+
<xsd:element name="application" type="applicationType" minOccurs="0"/>
10+
<xsd:element name="dependencies" type="dependenciesType" minOccurs="0"/>
11+
<xsd:element name="layerOrder" type="layerOrderType" minOccurs="0"/>
12+
</xsd:sequence>
13+
</xsd:complexType>
14+
<xsd:complexType name="applicationType">
15+
<xsd:annotation>
16+
<xsd:documentation><![CDATA[
17+
The 'into layer' selections that should be applied to application classes and resources.
18+
]]></xsd:documentation>
19+
</xsd:annotation>
20+
<xsd:sequence maxOccurs="unbounded">
21+
<xsd:element name="into" type="intoType" />
22+
</xsd:sequence>
23+
</xsd:complexType>
24+
<xsd:complexType name="dependenciesType">
25+
<xsd:annotation>
26+
<xsd:documentation><![CDATA[
27+
The 'into layer' selections that should be applied to dependencies.
28+
]]></xsd:documentation>
29+
</xsd:annotation>
30+
<xsd:sequence maxOccurs="unbounded">
31+
<xsd:element name="into" type="dependenciesIntoType" />
32+
</xsd:sequence>
33+
</xsd:complexType>
34+
<xsd:complexType name="layerOrderType">
35+
<xsd:annotation>
36+
<xsd:documentation><![CDATA[
37+
The order that layers should be added (starting with the least frequently changed layer).
38+
]]></xsd:documentation>
39+
</xsd:annotation>
40+
<xsd:sequence>
41+
<xsd:element name="layer" maxOccurs="unbounded">
42+
<xsd:annotation>
43+
<xsd:documentation><![CDATA[
44+
The layer name.
45+
]]></xsd:documentation>
46+
</xsd:annotation>
47+
<xsd:simpleType>
48+
<xsd:restriction base="xsd:string">
49+
<xsd:minLength value="1" />
50+
</xsd:restriction>
51+
</xsd:simpleType>
52+
</xsd:element>
53+
</xsd:sequence>
54+
</xsd:complexType>
55+
<xsd:complexType name="intoType">
56+
<xsd:choice maxOccurs="unbounded">
57+
<xsd:element type="xsd:string" name="include"
58+
minOccurs="0" maxOccurs="unbounded">
59+
<xsd:annotation>
60+
<xsd:documentation><![CDATA[
61+
Pattern of the elements to include.
62+
]]></xsd:documentation>
63+
</xsd:annotation>
64+
</xsd:element>
65+
<xsd:element type="xsd:string" name="exclude"
66+
minOccurs="0" maxOccurs="unbounded">
67+
<xsd:annotation>
68+
<xsd:documentation><![CDATA[
69+
Pattern of the elements to exclude.
70+
]]></xsd:documentation>
71+
</xsd:annotation>
72+
</xsd:element>
73+
</xsd:choice>
74+
<xsd:attribute type="xsd:string" name="layer"
75+
use="required" />
76+
</xsd:complexType>
77+
<xsd:complexType name="dependenciesIntoType">
78+
<xsd:complexContent>
79+
<xsd:extension base="intoType">
80+
<xsd:choice minOccurs="0">
81+
<xsd:element type="xsd:string" name="includeModuleDependencies" minOccurs="0">
82+
<xsd:annotation>
83+
<xsd:documentation><![CDATA[
84+
Include dependencies on other modules in the build.
85+
]]></xsd:documentation>
86+
</xsd:annotation>
87+
</xsd:element>
88+
<xsd:element type="xsd:string" name="excludeModuleDependencies" minOccurs="0">
89+
<xsd:annotation>
90+
<xsd:documentation><![CDATA[
91+
Exclude dependencies on other modules in the build.
92+
]]></xsd:documentation>
93+
</xsd:annotation>
94+
</xsd:element>
95+
</xsd:choice>
96+
</xsd:extension>
97+
</xsd:complexContent>
98+
</xsd:complexType>
99+
100+
</xsd:schema>

build-plugin/spring-boot-maven-plugin/src/test/resources/dependencies-layer-no-filter.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<layers xmlns="http://www.springframework.org/schema/boot/layers"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://www.springframework.org/schema/boot/layers
4-
https://www.springframework.org/schema/boot/layers/layers-4.0.xsd">
4+
https://www.springframework.org/schema/boot/layers/layers-4.1.xsd">
55
<dependencies>
66
<into layer="my-deps" />
77
</dependencies>

build-plugin/spring-boot-maven-plugin/src/test/resources/layers.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<layers xmlns="http://www.springframework.org/schema/boot/layers"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://www.springframework.org/schema/boot/layers
4-
https://www.springframework.org/schema/boot/layers/layers-4.0.xsd">
4+
https://www.springframework.org/schema/boot/layers/layers-4.1.xsd">
55
<application>
66
<into layer="my-resources">
77
<include>META-INF/resources/**</include>

build-plugin/spring-boot-maven-plugin/src/test/resources/resource-layer-no-filter.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<layers xmlns="http://www.springframework.org/schema/boot/layers"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://www.springframework.org/schema/boot/layers
4-
https://www.springframework.org/schema/boot/layers/layers-4.0.xsd">
4+
https://www.springframework.org/schema/boot/layers/layers-4.1.xsd">
55
<application>
66
<into layer="my-layer" />
77
</application>

0 commit comments

Comments
 (0)