Bumped Spring Boot to version 3.3.4
This commit is contained in:
parent
a2ed825042
commit
d98a140f96
5 changed files with 42 additions and 39 deletions
|
@ -49,7 +49,7 @@ Don't forget to include the _Spring Boot Loader_ dependency to your project:
|
|||
|
||||
```java
|
||||
scope(standalone)
|
||||
.include(dependency("org.springframeworkboot:spring-boot-loader:3.3.3"));
|
||||
.include(dependency("org.springframeworkboot:spring-boot-loader:3.3.4"));
|
||||
```
|
||||
|
||||
Please check the [BootJarOperation documentation](https://rife2.github.io/bld-spring-boot/rife/bld/extension/BootJarOperation.html#method-summary)
|
||||
|
|
3
examples/.vscode/settings.json
vendored
3
examples/.vscode/settings.json
vendored
|
@ -11,5 +11,6 @@
|
|||
"java.project.referencedLibraries": [
|
||||
"${HOME}/.bld/dist/bld-2.1.0.jar",
|
||||
"lib/**/*.jar"
|
||||
]
|
||||
],
|
||||
"java.compile.nullAnalysis.mode": "automatic"
|
||||
}
|
||||
|
|
|
@ -27,15 +27,15 @@ public class DemoApplicationBuild extends WebProject {
|
|||
repositories = List.of(MAVEN_CENTRAL);
|
||||
|
||||
scope(compile)
|
||||
.include(dependency("org.springframework.boot:spring-boot-starter:3.3.3"))
|
||||
.include(dependency("org.springframework.boot:spring-boot-starter-actuator:3.3.3"))
|
||||
.include(dependency("org.springframework.boot:spring-boot-starter-web:3.3.3"));
|
||||
.include(dependency("org.springframework.boot:spring-boot-starter:3.3.4"))
|
||||
.include(dependency("org.springframework.boot:spring-boot-starter-actuator:3.3.4"))
|
||||
.include(dependency("org.springframework.boot:spring-boot-starter-web:3.3.4"));
|
||||
scope(test)
|
||||
.include(dependency("org.springframework.boot:spring-boot-starter-test:3.3.3"))
|
||||
.include(dependency("org.springframework.boot:spring-boot-starter-test:3.3.4"))
|
||||
.include(dependency("org.junit.jupiter:junit-jupiter:5.11.0"))
|
||||
.include(dependency("org.junit.platform:junit-platform-console-standalone:1.11.0"));
|
||||
scope(standalone)
|
||||
.include(dependency("org.springframework.boot:spring-boot-loader:3.3.3"));
|
||||
.include(dependency("org.springframework.boot:spring-boot-loader:3.3.4"));
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
|
|
@ -33,7 +33,7 @@ public class SpringBootBuild extends Project {
|
|||
public SpringBootBuild() {
|
||||
pkg = "rife.bld.extension";
|
||||
name = "bld-spring-boot";
|
||||
version = version(0, 9, 8);
|
||||
version = version(0, 9, 9, "SNAPSHOT");
|
||||
|
||||
javaRelease = 17;
|
||||
|
||||
|
@ -57,28 +57,26 @@ public class SpringBootBuild extends Project {
|
|||
|
||||
publishOperation()
|
||||
.repository(version.isSnapshot() ? repository("rife2-snapshot") : repository("rife2"))
|
||||
.repository(repository("github"))
|
||||
.info()
|
||||
.groupId("com.uwyn.rife2")
|
||||
.artifactId("bld-spring-boot")
|
||||
.description("bld Extension for Spring Boot")
|
||||
.url("https://github.com/rife2/bld-spring-boot")
|
||||
.developer(
|
||||
new PublishDeveloper()
|
||||
.id("ethauvin")
|
||||
.name("Erik C. Thauvin")
|
||||
.email("erik@thauvin.net")
|
||||
.url("https://erik.thauvin.net/")
|
||||
.developer(new PublishDeveloper()
|
||||
.id("ethauvin")
|
||||
.name("Erik C. Thauvin")
|
||||
.email("erik@thauvin.net")
|
||||
.url("https://erik.thauvin.net/")
|
||||
)
|
||||
.license(
|
||||
new PublishLicense()
|
||||
.name("The Apache License, Version 2.0")
|
||||
.url("https://www.apache.org/licenses/LICENSE-2.0.txt")
|
||||
.license(new PublishLicense()
|
||||
.name("The Apache License, Version 2.0")
|
||||
.url("https://www.apache.org/licenses/LICENSE-2.0.txt")
|
||||
)
|
||||
.scm(
|
||||
new PublishScm()
|
||||
.connection("scm:git:https://github.com/rife2/bld-spring-boot.git")
|
||||
.developerConnection("scm:git:git@github.com:rife2/bld-spring-boot.git")
|
||||
.url("https://github.com/rife2/bld-spring-boot")
|
||||
.scm(new PublishScm()
|
||||
.connection("scm:git:https://github.com/rife2/bld-spring-boot.git")
|
||||
.developerConnection("scm:git:git@github.com:rife2/bld-spring-boot.git")
|
||||
.url("https://github.com/rife2/bld-spring-boot")
|
||||
)
|
||||
.signKey(property("sign.key"))
|
||||
.signPassphrase(property("sign.passphrase"));
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
package rife.bld.extension;
|
||||
|
||||
import org.assertj.core.api.AutoCloseableSoftAssertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import rife.bld.Project;
|
||||
import rife.bld.dependencies.VersionNumber;
|
||||
|
@ -35,7 +36,7 @@ import static org.assertj.core.api.Assertions.assertThatCode;
|
|||
|
||||
class BootJarOperationTest {
|
||||
private static final String BLD = "bld-2.1.0.jar";
|
||||
private static final String BOOT_VERSION = "3.3.3";
|
||||
private static final String BOOT_VERSION = "3.3.4";
|
||||
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/";
|
||||
|
@ -345,21 +346,24 @@ class BootJarOperationTest {
|
|||
var project = new CustomProject(tmp_dir);
|
||||
var bootJar = new BootJarOperation().fromProject(project).sourceDirectories(SRC_MAIN_JAVA);
|
||||
|
||||
assertThat(bootJar.mainClass()).as("mainClass").isEqualTo(MAIN_CLASS);
|
||||
assertThat(bootJar.sourceDirectories()).as("sourceDirectories.size").hasSize(3)
|
||||
.containsExactly(project.buildMainDirectory(), project.srcMainResourcesDirectory(),
|
||||
new File(SRC_MAIN_JAVA));
|
||||
assertThat(bootJar.manifestAttributes()).as("manifestAttributes.size").hasSize(3);
|
||||
assertThat(bootJar.manifestAttributes().get("Manifest-Version")).as("Manifest-Version").isEqualTo("1.0");
|
||||
assertThat(bootJar.manifestAttributes().get("Main-Class")).as("Main-Class").endsWith("JarLauncher");
|
||||
assertThat(bootJar.manifestAttributes().get("Start-Class")).as("Start-Class").isEqualTo(MAIN_CLASS);
|
||||
assertThat(bootJar.manifestAttribute("Manifest-Test", "tsst")
|
||||
.manifestAttributes().get("Manifest-Test")).as("Manifest-Test").isEqualTo("tsst");
|
||||
assertThat(bootJar.destinationDirectory()).as("destinationDirectory").isDirectory();
|
||||
assertThat(bootJar.destinationDirectory()).isEqualTo(project.buildDistDirectory());
|
||||
assertThat(bootJar.infLibs()).as("infoLibs").isEmpty();
|
||||
assertThat(bootJar.launcherLibs()).as("launcherJars").isEmpty();
|
||||
assertThat(bootJar.destinationFileName()).isEqualTo("test_project-0.0.1-boot.jar");
|
||||
try (var softly = new AutoCloseableSoftAssertions()) {
|
||||
softly.assertThat(bootJar.mainClass()).as("mainClass").isEqualTo(MAIN_CLASS);
|
||||
softly.assertThat(bootJar.sourceDirectories()).as("sourceDirectories.size").hasSize(3)
|
||||
.containsExactly(project.buildMainDirectory(), project.srcMainResourcesDirectory(),
|
||||
new File(SRC_MAIN_JAVA));
|
||||
softly.assertThat(bootJar.manifestAttributes()).as("manifestAttributes.size").hasSize(3);
|
||||
softly.assertThat(bootJar.manifestAttributes().get("Manifest-Version")).as("Manifest-Version")
|
||||
.isEqualTo("1.0");
|
||||
softly.assertThat(bootJar.manifestAttributes().get("Main-Class")).as("Main-Class").endsWith("JarLauncher");
|
||||
softly.assertThat(bootJar.manifestAttributes().get("Start-Class")).as("Start-Class").isEqualTo(MAIN_CLASS);
|
||||
softly.assertThat(bootJar.manifestAttribute("Manifest-Test", "tsst")
|
||||
.manifestAttributes().get("Manifest-Test")).as("Manifest-Test").isEqualTo("tsst");
|
||||
softly.assertThat(bootJar.destinationDirectory()).as("destinationDirectory").isDirectory();
|
||||
softly.assertThat(bootJar.destinationDirectory()).isEqualTo(project.buildDistDirectory());
|
||||
softly.assertThat(bootJar.infLibs()).as("infoLibs").isEmpty();
|
||||
softly.assertThat(bootJar.launcherLibs()).as("launcherJars").isEmpty();
|
||||
softly.assertThat(bootJar.destinationFileName()).isEqualTo("test_project-0.0.1-boot.jar");
|
||||
}
|
||||
|
||||
FileUtils.deleteDirectory(tmp_dir);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue