Added support for Spring Boot 3.3.0

This commit is contained in:
Erik C. Thauvin 2024-05-23 17:05:11 -07:00
parent 76b50ae684
commit 5d7bc7d15c
Signed by: erik
GPG key ID: 776702A6A2DA330E
3 changed files with 11 additions and 9 deletions

View file

@ -49,7 +49,7 @@ Don't forget to include the _Spring Boot Loader_ dependency to your project:
```java ```java
scope(standalone) scope(standalone)
.include(dependency("org.springframeworkboot:spring-boot-loader:3.2.5")); .include(dependency("org.springframeworkboot:spring-boot-loader:3.3.0"));
``` ```
Please check the [BootJarOperation documentation](https://rife2.github.io/bld-spring-boot/rife/bld/extension/BootJarOperation.html#method-summary) Please check the [BootJarOperation documentation](https://rife2.github.io/bld-spring-boot/rife/bld/extension/BootJarOperation.html#method-summary)

View file

@ -27,15 +27,15 @@ public class DemoApplicationBuild extends WebProject {
repositories = List.of(MAVEN_CENTRAL); repositories = List.of(MAVEN_CENTRAL);
scope(compile) scope(compile)
.include(dependency("org.springframework.boot:spring-boot-starter:3.2.5")) .include(dependency("org.springframework.boot:spring-boot-starter:3.3.0"))
.include(dependency("org.springframework.boot:spring-boot-starter-actuator:3.2.5")) .include(dependency("org.springframework.boot:spring-boot-starter-actuator:3.3.0"))
.include(dependency("org.springframework.boot:spring-boot-starter-web:3.2.5")); .include(dependency("org.springframework.boot:spring-boot-starter-web:3.3.0"));
scope(test) scope(test)
.include(dependency("org.springframework.boot:spring-boot-starter-test:3.2.5")) .include(dependency("org.springframework.boot:spring-boot-starter-test:3.3.0"))
.include(dependency("org.junit.jupiter:junit-jupiter:5.10.2")) .include(dependency("org.junit.jupiter:junit-jupiter:5.10.2"))
.include(dependency("org.junit.platform:junit-platform-console-standalone:1.10.2")); .include(dependency("org.junit.platform:junit-platform-console-standalone:1.10.2"));
scope(standalone) scope(standalone)
.include(dependency("org.springframework.boot:spring-boot-loader:3.2.5")); .include(dependency("org.springframework.boot:spring-boot-loader:3.3.0"));
} }
public static void main(String[] args) { public static void main(String[] args) {

View file

@ -35,6 +35,7 @@ import static org.assertj.core.api.Assertions.assertThatCode;
class BootJarOperationTest { class BootJarOperationTest {
private static final String BLD = "bld-1.9.1.jar"; private static final String BLD = "bld-1.9.1.jar";
private static final String BOOT_VERSION = "3.3.0";
private static final String EXAMPLES_LIB_COMPILE = "examples/lib/compile/"; private static final String EXAMPLES_LIB_COMPILE = "examples/lib/compile/";
private static final String EXAMPLES_LIB_RUNTIME = "examples/lib/runtime/"; private static final String EXAMPLES_LIB_RUNTIME = "examples/lib/runtime/";
private static final String EXAMPLES_LIB_STANDALONE = "examples/lib/standalone/"; private static final String EXAMPLES_LIB_STANDALONE = "examples/lib/standalone/";
@ -120,6 +121,7 @@ class BootJarOperationTest {
org/springframework/boot/loader/nio/file/NestedFileSystem.class org/springframework/boot/loader/nio/file/NestedFileSystem.class
org/springframework/boot/loader/nio/file/NestedFileSystemProvider.class org/springframework/boot/loader/nio/file/NestedFileSystemProvider.class
org/springframework/boot/loader/nio/file/NestedPath.class org/springframework/boot/loader/nio/file/NestedPath.class
org/springframework/boot/loader/nio/file/UriPathEncoder.class
org/springframework/boot/loader/ref/ org/springframework/boot/loader/ref/
org/springframework/boot/loader/ref/Cleaner.class org/springframework/boot/loader/ref/Cleaner.class
org/springframework/boot/loader/ref/DefaultCleaner.class org/springframework/boot/loader/ref/DefaultCleaner.class
@ -153,9 +155,9 @@ class BootJarOperationTest {
"""; """;
private static final String MAIN_CLASS = "com.example.Foo"; private static final String MAIN_CLASS = "com.example.Foo";
private static final String PROVIDED_LIB = "LatencyUtils-2.0.3.jar"; private static final String PROVIDED_LIB = "LatencyUtils-2.0.3.jar";
private static final String SPRING_BOOT = "spring-boot-3.2.5.jar"; private static final String SPRING_BOOT = "spring-boot-" + BOOT_VERSION + ".jar";
private static final String SPRING_BOOT_ACTUATOR = "spring-boot-actuator-3.2.5.jar"; private static final String SPRING_BOOT_ACTUATOR = "spring-boot-actuator-" + BOOT_VERSION + ".jar";
private static final String SPRING_BOOT_LOADER = "spring-boot-loader-3.2.5.jar"; private static final String SPRING_BOOT_LOADER = "spring-boot-loader-" + BOOT_VERSION + ".jar";
private StringBuilder readJarEntries(File jar) throws IOException { private StringBuilder readJarEntries(File jar) throws IOException {
var jarEntries = new StringBuilder(); var jarEntries = new StringBuilder();