-
Notifications
You must be signed in to change notification settings - Fork 40.8k
Creating a New Maintenance Branch
A new maintenance branch should be created from main
. For example, if main
is currently building 2.6 and we want to start work on 2.7, a 2.6.x
maintenance branch must be created:
$ git checkout main
$ git checkout -b 2.6.x
Once the branch has been created, a number of changes must be made both on the new maintenance branch and on main
.
On the new maintenance branch:
-
Update the following, replacing
"main"
with the name of the new maintenance branch (for example"2.6.x"
):-
determineGitHubTag
inbuildSrc/src/main/java/org/springframework/boot/build/AsciidoctorConventions.java
-
branch
inci/parameters.yml
-
On main
:
-
Update
version
ingradle.properties
tom.n.0-SNAPSHOT
(for example2.7.0-SNAPSHOT
) -
Update the following, aligning with the
m.n.x
milestone for the new version (for example"2.7.x"
):-
main_branch
ingit/hooks/prepare-forward-merge
-
milestone
inci/parameters.yml
-
Example
fly
command inci/README.adoc
-
Build badge links in
README.adoc
-
-
Change
LATEST_GA
tofalse
inci/pipeline.yml
for bothupdate-homebrew-tap
andpublish-to-sdkman
-
Create a new
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/xsd/layers-m.n.xsd
file with identical contents to the previous version -
Update layers XML files beneath
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/
to reference the new XSD. You can use a command similar tofind spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src -type f | xargs grep -l layers-2.6.xsd
to identify the files to change. -
Set
bom.upgrade.policy
inspring-boot-dependencies
tosame-major-version
.