Skip to content

Commit 39e3d6e

Browse files
committed
Upgrade to Spring Boot 3.5.0
Closes gh-1812
1 parent cc4f71e commit 39e3d6e

20 files changed

Lines changed: 70 additions & 53 deletions

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.springframework.boot</groupId>
2424
<artifactId>spring-boot-starter-parent</artifactId>
25-
<version>3.4.5</version>
25+
<version>3.5.0</version>
2626
</parent>
2727
<groupId>io.spring.start</groupId>
2828
<artifactId>start-parent</artifactId>

start-site/src/test/java/io/spring/start/site/ProjectGenerationIntegrationTests.java

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -150,24 +150,32 @@ private Path getHome(BuildSystem buildSystem) {
150150

151151
private ProcessBuilder createProcessBuilder(Path directory, BuildSystem buildSystem, Path home) {
152152
if (buildSystem.id().equals(MavenBuildSystem.ID)) {
153-
String command = (isWindows()) ? "mvnw.cmd" : "mvnw";
154-
ProcessBuilder processBuilder = new ProcessBuilder(directory.resolve(command).toAbsolutePath().toString(),
155-
"-Dmaven.repo.local=" + home.resolve("repository").toAbsolutePath(), "package");
156-
processBuilder.environment().put("MAVEN_USER_HOME", home.toAbsolutePath().toString());
157-
processBuilder.directory(directory.toFile());
158-
return processBuilder;
153+
return createMavenProcessBuilder(directory, home);
159154
}
160155
if (buildSystem.id().equals(GradleBuildSystem.ID)) {
161-
String command = (isWindows()) ? "gradlew.bat" : "gradlew";
162-
ProcessBuilder processBuilder = new ProcessBuilder(directory.resolve(command).toAbsolutePath().toString(),
163-
"--no-daemon", "build");
164-
processBuilder.environment().put("GRADLE_USER_HOME", home.toAbsolutePath().toString());
165-
processBuilder.directory(directory.toFile());
166-
return processBuilder;
156+
return createGradleProcessBuilder(directory, home);
167157
}
168158
throw new IllegalStateException("Unknown build system '%s'".formatted(buildSystem.id()));
169159
}
170160

161+
private ProcessBuilder createGradleProcessBuilder(Path directory, Path home) {
162+
String command = (isWindows()) ? "gradlew.bat" : "gradlew";
163+
ProcessBuilder processBuilder = new ProcessBuilder(directory.resolve(command).toAbsolutePath().toString(),
164+
"--no-daemon", "build");
165+
processBuilder.environment().put("GRADLE_USER_HOME", home.toAbsolutePath().toString());
166+
processBuilder.directory(directory.toFile());
167+
return processBuilder;
168+
}
169+
170+
private ProcessBuilder createMavenProcessBuilder(Path directory, Path home) {
171+
String command = (isWindows()) ? "mvnw.cmd" : "mvnw";
172+
ProcessBuilder processBuilder = new ProcessBuilder(directory.resolve(command).toAbsolutePath().toString(),
173+
"-Dmaven.repo.local=" + home.resolve("repository").toAbsolutePath(), "package");
174+
processBuilder.environment().put("MAVEN_USER_HOME", home.toAbsolutePath().toString());
175+
processBuilder.directory(directory.toFile());
176+
return processBuilder;
177+
}
178+
171179
private boolean isWindows() {
172180
return SystemUtils.IS_OS_WINDOWS;
173181
}

start-site/src/test/java/io/spring/start/site/SupportedBootVersion.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,7 +30,11 @@ public enum SupportedBootVersion {
3030
/**
3131
* 3.4.0.
3232
*/
33-
V3_4("3.4.0");
33+
V3_4("3.4.0"),
34+
/**
35+
* 3.5.0.
36+
*/
37+
V3_5("3.5.0");
3438

3539
private final String version;
3640

@@ -52,7 +56,7 @@ public String toString() {
5256
* @return the latest supported Spring Boot version
5357
*/
5458
public static SupportedBootVersion latest() {
55-
return V3_4;
59+
return V3_5;
5660
}
5761

5862
}

start-site/src/test/java/io/spring/start/site/extension/build/gradle/GradleBuildSystemHelpDocumentCustomizerTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,8 +36,8 @@ class GradleBuildSystemHelpDocumentCustomizerTests extends AbstractExtensionTest
3636
void linksAddedToHelpDocumentForGradleBuild() {
3737
assertHelpDocument("gradle-build").contains("* [Official Gradle documentation](https://docs.gradle.org)",
3838
"* [Gradle Build Scans – insights for your project's build](https://scans.gradle.com#gradle)",
39-
"* [Spring Boot Gradle Plugin Reference Guide](https://docs.spring.io/spring-boot/3.4.0/gradle-plugin)",
40-
"* [Create an OCI image](https://docs.spring.io/spring-boot/3.4.0/gradle-plugin/packaging-oci-image.html)");
39+
"* [Spring Boot Gradle Plugin Reference Guide](https://docs.spring.io/spring-boot/3.5.0/gradle-plugin)",
40+
"* [Create an OCI image](https://docs.spring.io/spring-boot/3.5.0/gradle-plugin/packaging-oci-image.html)");
4141
}
4242

4343
@Test

start-site/src/test/java/io/spring/start/site/extension/build/maven/MavenBuildSystemHelpDocumentCustomizerTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,8 +36,8 @@ class MavenBuildSystemHelpDocumentCustomizerTests extends AbstractExtensionTests
3636
void linksAddedToHelpDocumentForMavenBuild() {
3737
assertHelpDocument("maven-build").contains(
3838
"* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)",
39-
"* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/3.4.0/maven-plugin)",
40-
"* [Create an OCI image](https://docs.spring.io/spring-boot/3.4.0/maven-plugin/build-image.html)");
39+
"* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/3.5.0/maven-plugin)",
40+
"* [Create an OCI image](https://docs.spring.io/spring-boot/3.5.0/maven-plugin/build-image.html)");
4141
}
4242

4343
@Test

start-site/src/test/java/io/spring/start/site/extension/code/kotlin/KotlinCoroutinesCustomizerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void kotlinCoroutinesIsAdded() {
4040
.hasDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-reactor")
4141
.hasDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-test", null, "test");
4242
assertThat(helpDocument(request)).contains(
43-
"* [Coroutines section of the Spring Framework Documentation](https://docs.spring.io/spring-framework/reference/6.2.0/languages/kotlin/coroutines.html)");
43+
"* [Coroutines section of the Spring Framework Documentation](https://docs.spring.io/spring-framework/reference/6.2.7/languages/kotlin/coroutines.html)");
4444
}
4545

4646
@Test

start-site/src/test/java/io/spring/start/site/extension/dependency/dgs/DgsBuildCustomizerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@
2727

2828
class DgsBuildCustomizerTests extends AbstractExtensionTests {
2929

30-
private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.latest();
30+
private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.V3_4;
3131

3232
private Dependency dgsTest;
3333

start-site/src/test/java/io/spring/start/site/extension/dependency/graalvm/GraalVmHelpDocumentCustomizerTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -52,7 +52,7 @@ void mavenBuildAddLinkToMavenAotPlugin() {
5252
HelpDocument document = customize(description, new MavenBuild());
5353
assertThat(document.gettingStarted().additionalLinks().getItems()).singleElement().satisfies((link) -> {
5454
assertThat(link.getDescription()).isEqualTo("Configure AOT settings in Build Plugin");
55-
assertThat(link.getHref()).isEqualTo("https://docs.spring.io/spring-boot/3.4.0/how-to/aot.html");
55+
assertThat(link.getHref()).isEqualTo("https://docs.spring.io/spring-boot/3.5.0/how-to/aot.html");
5656
});
5757
}
5858

@@ -63,7 +63,7 @@ void gradleBuildAddLinkToGradleAotPlugin() {
6363
HelpDocument document = customize(description, new GradleBuild());
6464
assertThat(document.gettingStarted().additionalLinks().getItems()).singleElement().satisfies((link) -> {
6565
assertThat(link.getDescription()).isEqualTo("Configure AOT settings in Build Plugin");
66-
assertThat(link.getHref()).isEqualTo("https://docs.spring.io/spring-boot/3.4.0/how-to/aot.html");
66+
assertThat(link.getHref()).isEqualTo("https://docs.spring.io/spring-boot/3.5.0/how-to/aot.html");
6767
});
6868
}
6969

start-site/src/test/java/io/spring/start/site/extension/dependency/htmx/HtmxBuildCustomizerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,7 +31,7 @@
3131
*/
3232
class HtmxBuildCustomizerTests extends AbstractExtensionTests {
3333

34-
private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.latest();
34+
private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.V3_4;
3535

3636
private final Dependency htmx = Dependency.withId("htmx", "io.github.wimdeblauwe", "htmx-spring-boot");
3737

start-site/src/test/java/io/spring/start/site/extension/dependency/mybatis/MyBatisTestBuildCustomizerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
class MyBatisTestBuildCustomizerTests extends AbstractExtensionTests {
3333

34-
private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.latest();
34+
private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.V3_4;
3535

3636
@Test
3737
void mybatisIsAddedWithSecurity() {

0 commit comments

Comments
 (0)