From 5178421d559ded4f984f0758a7c11ae03d21bfb4 Mon Sep 17 00:00:00 2001 From: Pascal Zimmermann Date: Mon, 30 Nov 2026 18:05:42 +0100 Subject: [PATCH] build: Replace the Spring Boot BOM with individual BOMs The library modules only need Spring Boot's dependency management for a handful of libraries, and it made our own version properties pointless because Boot decided the versions anyway. Import the BOMs for the libraries we actually use instead (Netty, Reactor, JUnit, Mockito, SLF4J, Spring Framework) and pin the rest (Logback, byte-buddy, AssertJ, SnakeYAML). All versions are the ones Spring Boot 3.2.1 resolved before, so nothing changes except commons-codec, which now follows commons-compress (1.16.0 to 1.19.0). Netty and byte-buddy need to be managed explicitly, otherwise they would drop to older transitive versions. Jackson and Kotlin already had their own BOMs and keep them. Kotlin stays on kotlin.version (2.4.21), which Wire's runtime needs, and not on the 1.9.x that Spring Boot 3.2 would pick. The library modules no longer use spring-boot-starter-test and spring-boot-starter-logging. They now depend on junit-jupiter, logback-classic and jul-to-slf4j directly. cloudfoundry-util uses SLF4J in main code, so it now declares slf4j-api instead of getting it from an optional logging starter. Spring Boot stays for integration-test, test-log-cache and test-service-broker. Only the starters are pinned, so these modules use the same library versions as the client itself. The spring-boot-maven-plugin had no version, so Maven picked the latest release; it is now pinned too. --- cloudfoundry-client-reactor/pom.xml | 8 +-- cloudfoundry-client/pom.xml | 4 +- cloudfoundry-operations/pom.xml | 8 +-- cloudfoundry-util/pom.xml | 14 +++-- pom.xml | 97 +++++++++++++++++++++++++++-- test-log-cache/pom.xml | 1 + test-service-broker/pom.xml | 1 + 7 files changed, 112 insertions(+), 21 deletions(-) diff --git a/cloudfoundry-client-reactor/pom.xml b/cloudfoundry-client-reactor/pom.xml index c93a953246a..87d3a425cae 100644 --- a/cloudfoundry-client-reactor/pom.xml +++ b/cloudfoundry-client-reactor/pom.xml @@ -85,8 +85,8 @@ 3.0.0 - org.springframework.boot - spring-boot-starter-test + org.junit.jupiter + junit-jupiter test @@ -145,8 +145,8 @@ - org.springframework.boot - spring-boot-starter-logging + org.slf4j + jul-to-slf4j test diff --git a/cloudfoundry-client/pom.xml b/cloudfoundry-client/pom.xml index 7034a5cec25..24f1cd3cf39 100644 --- a/cloudfoundry-client/pom.xml +++ b/cloudfoundry-client/pom.xml @@ -48,8 +48,8 @@ wire-runtime-jvm - org.springframework.boot - spring-boot-starter-test + org.junit.jupiter + junit-jupiter test diff --git a/cloudfoundry-operations/pom.xml b/cloudfoundry-operations/pom.xml index 1bc8c7cb1b1..6babfca66f3 100644 --- a/cloudfoundry-operations/pom.xml +++ b/cloudfoundry-operations/pom.xml @@ -48,8 +48,8 @@ test - org.springframework.boot - spring-boot-starter-test + org.junit.jupiter + junit-jupiter test @@ -94,8 +94,8 @@ slf4j-api - org.springframework.boot - spring-boot-starter-logging + ch.qos.logback + logback-classic test diff --git a/cloudfoundry-util/pom.xml b/cloudfoundry-util/pom.xml index 0e5f8ae76d7..7241bebb3c1 100644 --- a/cloudfoundry-util/pom.xml +++ b/cloudfoundry-util/pom.xml @@ -49,8 +49,8 @@ test - org.springframework.boot - spring-boot-starter-test + org.junit.jupiter + junit-jupiter test @@ -87,9 +87,13 @@ spring-core - org.springframework.boot - spring-boot-starter-logging - true + org.slf4j + slf4j-api + + + ch.qos.logback + logback-classic + test diff --git a/pom.xml b/pom.xml index a913704093c..1177635e49a 100644 --- a/pom.xml +++ b/pom.xml @@ -58,8 +58,10 @@ 17 UTF-8 - 3.2.1 + 3.2.1 + 3.24.2 + 1.14.10 1.28.0 3.20.0 2.0 @@ -67,7 +69,15 @@ 2.23.0 0.10.2 0.13.0 + 5.10.1 2.4.21 + 1.4.14 + 5.7.0 + 4.1.104.Final + 2023.0.1 + 2.0.9 + 2.2 + 6.1.2 7.2.2 3.0.2 3.12.0 @@ -76,7 +86,6 @@ - com.fasterxml.jackson jackson-bom @@ -84,7 +93,21 @@ pom import - + + io.netty + netty-bom + ${netty.version} + pom + import + + + io.projectreactor + reactor-bom + ${reactor-bom.version} + pom + import + + org.jetbrains.kotlin kotlin-bom @@ -93,13 +116,75 @@ import - org.springframework.boot - spring-boot-dependencies - ${dependencies.version} + org.junit + junit-bom + ${junit-jupiter.version} + pom + import + + + org.mockito + mockito-bom + ${mockito.version} + pom + import + + + org.slf4j + slf4j-bom + ${slf4j.version} + pom + import + + + org.springframework + spring-framework-bom + ${spring-framework.version} pom import + + ch.qos.logback + logback-classic + ${logback.version} + + + net.bytebuddy + byte-buddy + ${byte-buddy.version} + + + net.bytebuddy + byte-buddy-agent + ${byte-buddy.version} + + + org.assertj + assertj-core + ${assertj.version} + + + org.yaml + snakeyaml + ${snakeyaml.version} + + + + org.springframework.boot + spring-boot-devtools + ${spring-boot.version} + + + org.springframework.boot + spring-boot-starter-test + ${spring-boot.version} + + + org.springframework.boot + spring-boot-starter-web + ${spring-boot.version} + com.github.zafarkhaja java-semver diff --git a/test-log-cache/pom.xml b/test-log-cache/pom.xml index 65cc77ed824..bdc9f0d2a12 100644 --- a/test-log-cache/pom.xml +++ b/test-log-cache/pom.xml @@ -75,6 +75,7 @@ org.springframework.boot spring-boot-maven-plugin + ${spring-boot.version} test-log-cache ${project.parent.basedir}/integration-test/src/test/resources diff --git a/test-service-broker/pom.xml b/test-service-broker/pom.xml index 2326a92d2ce..cf9279f0dd6 100644 --- a/test-service-broker/pom.xml +++ b/test-service-broker/pom.xml @@ -81,6 +81,7 @@ org.springframework.boot spring-boot-maven-plugin + ${spring-boot.version} test-service-broker ${project.parent.basedir}/integration-test/src/test/resources