Bump Spring Boot to version 3.5.0
This commit is contained in:
parent
e6f3fdc984
commit
22a4c53d66
4 changed files with 29 additions and 20 deletions
|
@ -61,7 +61,7 @@ Don't forget to include the _Spring Boot Loader_ dependency to your project:
|
|||
|
||||
```java
|
||||
scope(standalone)
|
||||
.include(dependency("org.springframework.boot:spring-boot-loader:3.4.6"));
|
||||
.include(dependency("org.springframework.boot:spring-boot-loader:3.5.0"));
|
||||
```
|
||||
|
||||
Please check the [BootJarOperation documentation](https://rife2.github.io/bld-spring-boot/rife/bld/extension/BootJarOperation.html#method-summary)
|
||||
|
|
|
@ -26,7 +26,7 @@ public class DemoApplicationBuild extends WebProject {
|
|||
|
||||
repositories = List.of(MAVEN_CENTRAL);
|
||||
|
||||
var boot = version(3, 4, 6);
|
||||
var boot = version(3, 5, 0);
|
||||
scope(compile)
|
||||
.include(dependency("org.springframework.boot", "spring-boot-starter", boot))
|
||||
.include(dependency("org.springframework.boot", "spring-boot-starter-actuator", boot))
|
||||
|
|
|
@ -37,9 +37,9 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
import static org.assertj.core.api.Assertions.assertThatCode;
|
||||
|
||||
@SuppressWarnings("PMD.AvoidDuplicateLiterals")
|
||||
class BootOperationTest {
|
||||
class BootOperationTests {
|
||||
private static final String BLD = "bld-2.2.1.jar";
|
||||
private static final String BOOT_VERSION = "3.4.6";
|
||||
private static final String BOOT_VERSION = "3.5.0";
|
||||
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_STANDALONE = "examples/lib/standalone/";
|
||||
|
@ -192,6 +192,14 @@ class BootOperationTest {
|
|||
@Nested
|
||||
@DisplayName("Errors Tests")
|
||||
class ErrorsTests {
|
||||
@Test
|
||||
void invalidMainClass() {
|
||||
var bootWar = new BootWarOperation().mainClass(MAIN_CLASS);
|
||||
assertThatCode(bootWar::execute)
|
||||
.isInstanceOf(IllegalArgumentException.class)
|
||||
.hasMessageContaining("class required");
|
||||
}
|
||||
|
||||
@Test
|
||||
void launcherClass() throws IOException {
|
||||
var bootWar = new BootJarOperation().mainClass(MAIN_CLASS)
|
||||
|
@ -202,17 +210,20 @@ class BootOperationTest {
|
|||
|
||||
@Test
|
||||
void misingLauncherLibs() {
|
||||
assertThatCode(() -> new BootWarOperation().launcherLibs(new File("foo")))
|
||||
.as("foo")
|
||||
.isInstanceOf(IOException.class)
|
||||
.hasMessageContaining("not found");
|
||||
|
||||
assertThatCode(() -> new BootWarOperation().launcherLibs("bar"))
|
||||
.as("bar")
|
||||
.isInstanceOf(IOException.class)
|
||||
.hasMessageContaining("not found");
|
||||
}
|
||||
|
||||
@Test
|
||||
void misingLauncherLibsAsFile() {
|
||||
assertThatCode(() -> new BootWarOperation().launcherLibs(new File("foo")))
|
||||
.as("foo")
|
||||
.isInstanceOf(IOException.class)
|
||||
.hasMessageContaining("not found");
|
||||
}
|
||||
|
||||
@Test
|
||||
void missingLauncherClass() throws IOException {
|
||||
var bootWar = new BootWarOperation().mainClass(MAIN_CLASS)
|
||||
|
@ -223,15 +234,10 @@ class BootOperationTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
void missingOrInvalidMainClass() {
|
||||
void missingMainClass() {
|
||||
var bootWar = new BootWarOperation();
|
||||
assertThatCode(bootWar::execute).isInstanceOf(IllegalArgumentException.class)
|
||||
.hasMessageContaining("mainClass");
|
||||
|
||||
bootWar = bootWar.mainClass(MAIN_CLASS);
|
||||
assertThatCode(bootWar::execute)
|
||||
.isInstanceOf(IllegalArgumentException.class)
|
||||
.hasMessageContaining("class required");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -315,10 +321,6 @@ class BootOperationTest {
|
|||
op.launcherLibs().clear();
|
||||
op.launcherLibs(launcher.toPath());
|
||||
assertThat(op.launcherLibs()).as("Path...").containsExactly(launcher);
|
||||
|
||||
op.launcherLibs().clear();
|
||||
op.launcherLibsStrings(List.of(EXAMPLES_LIB_STANDALONE + SPRING_BOOT_LOADER));
|
||||
assertThat(op.launcherLibs()).as("List(String...)").containsExactly(launcher);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -334,6 +336,13 @@ class BootOperationTest {
|
|||
op.launcherLibs(EXAMPLES_LIB_STANDALONE + SPRING_BOOT_LOADER);
|
||||
assertThat(op.launcherLibs()).as("String...").containsExactly(launcher);
|
||||
}
|
||||
|
||||
@Test
|
||||
void launcherLibsAsStringList() throws IOException {
|
||||
op.launcherLibs().clear();
|
||||
op.launcherLibsStrings(List.of(EXAMPLES_LIB_STANDALONE + SPRING_BOOT_LOADER));
|
||||
assertThat(op.launcherLibs()).as("List(String...)").containsExactly(launcher);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
|
@ -30,7 +30,7 @@ import java.nio.file.Files;
|
|||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
class BootUtilsTest {
|
||||
class BootUtilsTests {
|
||||
@Nested
|
||||
@DisplayName("FileSize Tests")
|
||||
class FileSizeTests {
|
Loading…
Add table
Add a link
Reference in a new issue