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:
@@ -0,0 +1,45 @@
|
||||
package com.ankurm.boot42up;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Collects lines and writes output/NN-name.txt (or NN-name-on-4.1.2.txt when run against the
|
||||
* 4.1 baseline). The test asserts the same values it writes, so every figure quoted in the
|
||||
* article is an assertion that fails the build when it stops being true.
|
||||
*/
|
||||
final class Transcript {
|
||||
|
||||
static final String LABEL = System.getProperty("boot.label", "4.2.0");
|
||||
|
||||
static boolean is42() {
|
||||
return LABEL.startsWith("4.2");
|
||||
}
|
||||
|
||||
private final List<String> lines = new ArrayList<>();
|
||||
private final Path file;
|
||||
|
||||
Transcript(String name) {
|
||||
String suffix = is42() ? "" : "-on-" + LABEL;
|
||||
this.file = Path.of("output", name + suffix + ".txt");
|
||||
line("# " + name + " (Spring Boot " + LABEL + ", JDK " + Runtime.version().feature() + ")");
|
||||
}
|
||||
|
||||
Transcript line(String s) {
|
||||
lines.add(s);
|
||||
return this;
|
||||
}
|
||||
|
||||
void write() {
|
||||
try {
|
||||
Files.createDirectories(file.getParent());
|
||||
Files.write(file, lines);
|
||||
}
|
||||
catch (IOException ex) {
|
||||
throw new IllegalStateException(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user