Add boot42-upgrade module: Spring Boot 4.2.0 GA vs 4.1.3 upgrade checklist

Re-runs the RC1 checklist on GA and adds SSL-bundle options on the LDAP client,
the migrator fail switch, OpenTelemetry convention spellings, migrated
RestClient/RestTestClient, compiler removal warnings for RestTemplate,
TestRestTemplate and Pulsar, and jar/BOM probes. Transcripts in output/.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b5G8Z7wYEQnr5w4DfG
This commit is contained in:
Claude
2026-11-20 19:23:39 +00:00
parent da700a564f
commit c8845581e6
54 changed files with 1254 additions and 1 deletions
@@ -0,0 +1,6 @@
# 01-default-value-placeholders (Spring Boot 4.1.3, JDK 25)
no demo.* properties set: zone = ${demo.region:eu}-primary plain = static-value
demo.region=ap: zone = ${demo.region:eu}-primary
int property, placeholder default: context FAILED to start
root cause: java.lang.NumberFormatException
For input string: "${demoport.number:8080}"
@@ -0,0 +1,4 @@
# 01-default-value-placeholders (Spring Boot 4.2.0, JDK 25)
no demo.* properties set: zone = eu-primary plain = static-value
demo.region=ap: zone = ap-primary
int property, placeholder default: number = 8080
@@ -0,0 +1,10 @@
# 02-kafka-admin-binding (Spring Boot 4.1.3, JDK 25)
properties supplied: 5
IGNORED spring.kafka.listener.admin.client-id
IGNORED spring.kafka.listener.admin.fail-fast
IGNORED spring.kafka.listener.await-async-results-on-stop
IGNORED spring.kafka.template.admin.client-id
IGNORED spring.kafka.template.admin.fail-fast
bound = 0 of 5
listener.isAwaitAsyncResultsOnStop() = no such method
template.getAdmin() = no such method
@@ -0,0 +1,14 @@
# 02-kafka-admin-binding (Spring Boot 4.2.0, JDK 25)
properties supplied: 5
bound spring.kafka.listener.admin.client-id
bound spring.kafka.listener.admin.fail-fast
bound spring.kafka.listener.await-async-results-on-stop
bound spring.kafka.template.admin.client-id
bound spring.kafka.template.admin.fail-fast
bound = 5 of 5
listener.isAwaitAsyncResultsOnStop() = true
template.getAdmin() = org.springframework.boot.kafka.autoconfigure.KafkaProperties$SimpleAdmin
template admin client-id = template-admin
template admin fail-fast = true
listener admin client-id = listener-admin
listener admin fail-fast = true
@@ -0,0 +1,3 @@
# 03-ldap-embedded-ssl-without-bundle (Spring Boot 4.1.3, JDK 25)
spring.ldap.embedded.ssl.enabled=true, no bundle: context STARTED
embedded server beans: 1
@@ -0,0 +1,4 @@
# 03-ldap-embedded-ssl-without-bundle (Spring Boot 4.2.0, JDK 25)
spring.ldap.embedded.ssl.enabled=true, no bundle: context FAILED to start
java.lang.IllegalStateException
SSL is enabled but no SSL bundle has been set. An SSL bundle providing the server's certificate and private key is required for LDAPS
@@ -0,0 +1 @@
# 04-properties-migrator-report (Spring Boot 4.1.3, JDK 25)
@@ -0,0 +1,15 @@
# 04-properties-migrator-report (Spring Boot 4.2.0, JDK 25)
The use of configuration keys that have been renamed was found in the environment:
Property source 'defaultProperties':
Key: server.tomcat.additional-tld-skip-patterns
Replacement: server.tomcat.servlet.additional-tld-skip-patterns
Key: server.tomcat.redirect-context-root
Replacement: server.tomcat.servlet.redirect-context-root
Key: server.tomcat.use-relative-redirects
Replacement: server.tomcat.servlet.use-relative-redirects
The use of configuration keys that are no longer supported was found in the environment:
Property source 'defaultProperties':
Key: management.metrics.observations.ignored-meters
Reason: Replacement key 'management.metrics.observations.include-active-long-task-timer' uses an incompatible target type
Key: spring.mvc.pathmatch.matching-strategy
Reason: Path matching is no longer configurable
@@ -0,0 +1,3 @@
# 05-resttemplate-compiler-warnings (Spring Boot 4.1.3, JDK 25.0.5.1)
$ javac -Xlint:deprecation -cp <module classpath> -d target/broken src/broken/UsesRestTemplate.java
exit: 0
@@ -0,0 +1,10 @@
# 05-resttemplate-compiler-warnings (Spring Boot 4.2.0, JDK 25.0.5.1)
$ javac -Xlint:deprecation -cp <module classpath> -d target/broken src/broken/UsesRestTemplate.java
src/broken/UsesRestTemplate.java:11: warning: [removal] RestTemplateBuilder in org.springframework.boot.restclient has been deprecated and marked for removal
public String fetch(RestTemplateBuilder builder) {
^
src/broken/UsesRestTemplate.java:12: warning: [removal] RestTemplate in org.springframework.web.client has been deprecated and marked for removal
RestTemplate rest = builder.build();
^
2 warnings
exit: 0
@@ -0,0 +1,3 @@
# 06-testresttemplate-compiler-warnings (Spring Boot 4.1.3, JDK 25.0.5.1)
$ javac -Xlint:deprecation -cp <module classpath> -d target/broken src/broken/UsesTestRestTemplate.java
exit: 0
@@ -0,0 +1,7 @@
# 06-testresttemplate-compiler-warnings (Spring Boot 4.2.0, JDK 25.0.5.1)
$ javac -Xlint:deprecation -cp <module classpath> -d target/broken src/broken/UsesTestRestTemplate.java
src/broken/UsesTestRestTemplate.java:6: warning: [removal] TestRestTemplate in org.springframework.boot.resttestclient has been deprecated and marked for removal
public String ping(TestRestTemplate rest) {
^
1 warning
exit: 0
@@ -0,0 +1,3 @@
# 07-pulsar-compiler-warnings (Spring Boot 4.1.3, JDK 25.0.5.1)
$ javac -Xlint:deprecation -cp <module classpath> -d target/broken src/broken/UsesPulsarProperties.java
exit: 0
@@ -0,0 +1,10 @@
# 07-pulsar-compiler-warnings (Spring Boot 4.2.0, JDK 25.0.5.1)
$ javac -Xlint:deprecation -cp <module classpath> -d target/broken src/broken/UsesPulsarProperties.java
src/broken/UsesPulsarProperties.java:7: warning: [removal] PulsarProperties in org.springframework.boot.pulsar.autoconfigure has been deprecated and marked for removal
PulsarProperties properties = new PulsarProperties();
^
src/broken/UsesPulsarProperties.java:7: warning: [removal] PulsarProperties in org.springframework.boot.pulsar.autoconfigure has been deprecated and marked for removal
PulsarProperties properties = new PulsarProperties();
^
2 warnings
exit: 0
@@ -0,0 +1,2 @@
# 08-ssl-bundle-options-ldap (Spring Boot 4.1.3, JDK 25)
spring.ldap.ssl.bundle does not exist in 4.1.3: nothing to compare
@@ -0,0 +1,6 @@
# 08-ssl-bundle-options-ldap (Spring Boot 4.2.0, JDK 25)
bundle without options: context STARTED, LdapContextSource beans: 1
bundle with options.ciphers: context FAILED to start
SSL options cannot be specified with LDAP
bundle with options.enabled-protocols: context FAILED to start
SSL options cannot be specified with LDAP
@@ -0,0 +1,5 @@
# 09-conventions-spellings (Spring Boot 4.1.3, JDK 25)
open-telemetry -> starts, server meter: [http.server.requests]
opentelemetry -> starts, server meter: [http.server.requests]
OPEN_TELEMETRY -> starts, server meter: [http.server.requests]
micrometer -> starts, server meter: [http.server.requests]
@@ -0,0 +1,5 @@
# 09-conventions-spellings (Spring Boot 4.2.0, JDK 25)
open-telemetry -> starts, server meter: [http.server.request.duration]
opentelemetry -> starts, server meter: [http.server.request.duration]
OPEN_TELEMETRY -> starts, server meter: [http.server.request.duration]
micrometer -> starts, server meter: [http.server.requests]
@@ -0,0 +1,22 @@
# 10-config-defaults (spring-configuration-metadata.json from the 4.1.3 and 4.2.0 jars)
key 4.1.3 4.2.0
server.tomcat.use-relative-redirects -> server.tomcat.servlet.use-relative-redirects
4.1.3: False 4.2.0: True
server.tomcat.redirect-context-root -> server.tomcat.servlet.redirect-context-root
4.1.3: True 4.2.0: True
spring.rabbitmq.username
4.1.3: 'guest' 4.2.0: 'guest'
spring.rabbitmq.password
4.1.3: 'guest' 4.2.0: 'guest'
spring.rabbitmq.username -> spring.amqp.rabbitmq.username
4.1.3: 'guest' 4.2.0: (none)
spring.rabbitmq.password -> spring.amqp.rabbitmq.password
4.1.3: 'guest' 4.2.0: (none)
spring.rabbitmq.template.exchange -> spring.amqp.rabbitmq.template.exchange
4.1.3: '' 4.2.0: (none)
spring.rabbitmq.template.routing-key -> spring.amqp.rabbitmq.template.routing-key
4.1.3: '' 4.2.0: (none)
management.observations.conventions
4.1.3: (absent) 4.2.0: 'micrometer'
management.opentelemetry.otlp.endpoint
4.1.3: (absent) 4.2.0: (none)
@@ -0,0 +1,8 @@
# 11-buildpack-defaults (javap -constants on BuildRequest in spring-boot-buildpack-platform)
[4.1.3]
DEFAULT_BUILDER_IMAGE_NAME = "paketobuildpacks/builder-noble-java-tiny";
DEFAULT_BUILDER_IMAGE_REF = "paketobuildpacks/builder-noble-java-tiny:latest";
[4.2.0]
DEFAULT_BUILDER_IMAGE_NAME = "paketobuildpacks/ubuntu-resolute-builder";
DEFAULT_BUILDER_IMAGE_REF = "paketobuildpacks/ubuntu-resolute-builder:latest";
DEFAULT_RUN_IMAGE_NAME = "paketobuildpacks/ubuntu-resolute-run-tiny";
+38
View File
@@ -0,0 +1,38 @@
# 12-bom-versions (spring-boot-dependencies POM properties)
property 4.1.3 4.2.0
spring-framework.version 7.0.11 7.1.0
spring-security.version 7.1.3 7.2.0
spring-data-bom.version 2026.0.3 2026.1.0
spring-batch.version 6.0.6 6.1.0
spring-kafka.version 4.1.3 4.2.0
spring-amqp.version 4.1.3 4.2.0
spring-integration.version 7.1.3 7.2.0
spring-graphql.version 2.0.7 2.1.0
spring-session.version 4.1.2 4.2.0
spring-ldap.version 4.1.3 4.2.0
hibernate.version 7.4.15.Final 7.4.15.Final
jackson-bom.version 3.1.8 3.1.8
jackson-2-bom.version 2.21.8 2.21.8
micrometer.version 1.17.3 1.18.0
micrometer-tracing.version 1.7.3 1.8.0
opentelemetry.version 1.62.0 1.68.0
netty.version 4.2.20.Final 4.2.20.Final
tomcat.version 11.0.27 11.0.27
jetty.version 12.1.15 12.1.15
flyway.version 12.4.0 12.11.0
junit-jupiter.version 6.0.3 6.1.3
mockito.version 5.23.0 5.24.0
assertj.version 3.27.7 3.27.7
lettuce.version 7.5.2.RELEASE 7.8.0.RELEASE
thymeleaf.version 3.1.7.RELEASE 3.1.7.RELEASE
logback.version 1.5.38 1.6.6
log4j2.version 2.25.5 2.26.1
snakeyaml.version 2.6 2.7
kotlin.version 2.3.21 2.4.21
h2.version 2.4.240 2.5.252
testcontainers.version 2.0.5 2.0.5
reactor-bom.version 2025.0.9 2026.0.0
janino.version 3.1.12 (not managed)
properties: 195 in 4.1.3, 195 in 4.2.0; changed 62, added 3, removed 3
removed: janino.version, rabbit-amqp-client.version, rabbit-stream-client.version
added: rabbitmq-amqp-client.version, rabbitmq-client.version, rabbitmq-stream-client.version
@@ -0,0 +1,3 @@
# 13-migrated-clients (Spring Boot 4.1.3, JDK 25)
RestClient.Builder GET /hello/rest-client -> hello rest-client
RestTestClient GET /hello/rest-test-client -> hello rest-test-client
@@ -0,0 +1,3 @@
# 13-migrated-clients (Spring Boot 4.2.0, JDK 25)
RestClient.Builder GET /hello/rest-client -> hello rest-client
RestTestClient GET /hello/rest-test-client -> hello rest-test-client
@@ -0,0 +1,3 @@
# 14-migrated-client-compiler (Spring Boot 4.1.3, JDK 25.0.5.1)
$ javac -Xlint:deprecation -cp <module classpath> -d target/broken src/main/java/com/ankurm/boot42up/PingClient.java
exit: 0
@@ -0,0 +1,3 @@
# 14-migrated-client-compiler (Spring Boot 4.2.0, JDK 25.0.5.1)
$ javac -Xlint:deprecation -cp <module classpath> -d target/broken src/main/java/com/ankurm/boot42up/PingClient.java
exit: 0
@@ -0,0 +1,9 @@
# 15-amqp-starters (published POMs: description and boot-level dependency)
[4.1.3]
spring-boot-starter-amqp "Starter for using Spring AMQP and Rabbit MQ" -> spring-boot-amqp
spring-boot-starter-rabbitmq (not published in 4.1.3)
spring-boot-starter-amqp-rabbitmq (not published in 4.1.3)
[4.2.0]
spring-boot-starter-amqp "Starter for generic AMQP 1.0 support" -> spring-boot-amqp
spring-boot-starter-rabbitmq "Starter for using RabbitMQ messaging and streaming broker" -> spring-boot-rabbitmq
spring-boot-starter-amqp-rabbitmq "Starter for using Spring AMQP with Rabbit MQ over AMQP 1.0 protocol" -> spring-boot-amqp-rabbitmq
@@ -0,0 +1,5 @@
# 16-migrator-fail-switch (spring-boot-properties-migrator 4.2.0)
spring.properties.migrator.fail default=never
value: NEVER
value: ON_ERROR
value: ON_WARNING
@@ -0,0 +1,4 @@
# 17-migrator-fail-switch (Spring Boot 4.1.3, JDK 25)
spring.properties.migrator.fail=never -> application STARTED
spring.properties.migrator.fail=on-error -> application STARTED
spring.properties.migrator.fail=on-warning -> application STARTED
@@ -0,0 +1,4 @@
# 17-migrator-fail-switch (Spring Boot 4.2.0, JDK 25)
spring.properties.migrator.fail=never -> application STARTED
spring.properties.migrator.fail=on-error -> application FAILED to start: IllegalStateException
spring.properties.migrator.fail=on-warning -> application FAILED to start: IllegalStateException