Companion repository for the ankurm.com article. Every transcript in docs/output/ was produced by running this project; scripts/run-all.sh regenerates all of them. Verified against Spring Boot 4.1.1 / Framework 7.0.9 / Security 7.1.1 / Micrometer 1.17.1 / kafka-clients 4.2.1 on Temurin JDK 25.0.4.1+1.
20 lines
974 B
Bash
Executable File
20 lines
974 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Exactly what this repository was built and run against.
|
|
set -uo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
OUT=docs/output/00-versions.txt
|
|
{
|
|
echo "\$ java -version"
|
|
java -version 2>&1 | grep -viE 'JAVA_TOOL_OPTIONS|Picked up'
|
|
echo
|
|
echo "\$ mvn -v | head -3"
|
|
mvn -v 2>&1 | grep -viE 'WARNING|sun\.misc|Picked up|Please consider' | head -3
|
|
echo
|
|
echo "\$ mvn dependency:list -- the resolved versions behind spring-boot-starter-parent 4.1.1"
|
|
mvn -B dependency:list 2>/dev/null \
|
|
| grep -oE '(org\.springframework[a-z.]*|io\.micrometer|org\.apache\.kafka|com\.h2database):[A-Za-z0-9.-]+:jar:[0-9][A-Za-z0-9.-]*' \
|
|
| awk -F':' '{printf " %-52s %s\n", $1":"$2, $4}' | sort -u \
|
|
| grep -E 'spring-boot-actuator |spring-boot-health |spring-boot |spring-core |spring-web |spring-security-core |spring-security-web |micrometer-core |micrometer-registry-prometheus |kafka-clients |h2 |spring-boot-restclient '
|
|
} > "$OUT" 2>&1
|
|
echo "wrote $OUT"
|