문제:
- ca.spring-library가 모든 spring leaf(30)의 testImplementation에
spring-boot-starter-webmvc-test를 넣어, MockMvc를 쓰지 않는 23 leaf가 Tomcat을
시험 classpath에 resolve하고 lock했다.
- container-images.properties 머리말은 「digest로 고정」이라는데 postgres-17·18이
tag만이었다. 머리말은 「쓰는 lane만 다시 돈다」고 했지만 파일 전체가 모든 Test
task의 입력이라 이미지 하나만 바꿔도 모든 lane이 다시 돈다. postgres-16-4는
아무도 읽지 않았다.
- libs.versions.toml에 아무도 읽지 않는 칸이 있었다(라이브러리 9, 버전 4,
루트에 적용하지 않는 플러그인 4).
- config/spotbugs/exclude.xml에 없는 클래스의 항목이 있었다(exclude-test.xml에
이미 있다).
- notification의 API surface가 상대 경로로 application-notification 소스를
가리켰고, ApiSurface 플러그인은 없는 추가 root를 말없이 건너뛰어 승인 update가
줄어든 표면을 기록할 수 있었다.
- verify-mongodb-platform.sh가 고르는 클래스가 없는 :app-bootstrap:test
--tests '*CleanArchitectureTest'를 불러 늘 실패했고, 이미지 기록이 카탈로그와
다른 tag였다.
고친 것:
- 규약은 spring-boot-starter-test만 준다. 시험이 실제로 쓰는 것을 leaf가 직접
선언한다. MockMvc를 쓰는 web·web-advanced·web-fileserver·web-notification·
app-bootstrap은 webmvc-test starter, graphql은 TestRestTemplate의
spring-boot-resttestclient, durable-operation은 WebApplicationContextRunner의
spring-web, 시험이 JSON을 읽는 objectstorage·persistence-jpa·persistence-mongo·
notification-platform은 jackson-databind, redis-runtime은 jackson-annotations
(compileOnly, 본 코드와 같은 이유)다. 모든 Java source set을 한 빌드에서 컴파일해
빠진 곳이 없음을 확인하고 lockfile을 다시 만들었다(Tomcat·webmvc 시험 자동설정이
빠짐). graphql·persistence-mongo AGENTS의 허용·시험 목록을 같이 고쳤다.
- postgres 17·18을 desktop runner에서 받은 digest로 고정했다(17.11, 18.6). 목록을
읽을 때 digest 없는 값을 GradleException으로 거절한다(ContainerImageCatalogTest).
머리말을 실제 캐시 동작으로 고쳤고 postgres-16-4를 지웠다. persistence-jpa
release registry의 PostgreSQL tag는 아무도 읽지 않아 지우고, 이미지는 카탈로그가
정한다고 적었다.
- 카탈로그의 미사용 칸을 지우고 머리말을 지금 쓰임에 맞췄다.
- 죽은 spotbugs 항목을 지웠다.
- notification은 project(':application-notification')로 root를 잡고, 없는 추가
root는 설정 단계에서 실패한다(ApiSurfaceConventionTest).
- mongo 스크립트는 :app-bootstrap:architectureTest를 부르고, 이미지 기록은
카탈로그 mongo-8 값을 읽는다.
- graphql build.gradle에 앞 커밋의 document-contract lane을 함께 둔다. 저장소 루트
(ca.repository.root)와 읽는 registry 파일은 그 lane만 받고, 시험은 그 속성으로만
루트를 읽는다(cwd에서 거슬러 찾지 않는다).
버린 대안: 이미지마다 쓰는 lane을 선언해 입력을 나누기 — lane 수십 개에 키
목록을 다시 적어야 하고 빠뜨리면 캐시가 거짓 통과한다.
검증: 아래 PR 본문(desktop resolveAndLockAll·build-logic test·모든 source set 컴파일·
leaf check).
BREAKING CHANGE: ca.spring-library가 시험 classpath에 spring-boot-starter-webmvc-test를
넣지 않는다. MockMvc·TestRestTemplate·Jackson을 그 starter로 받던 파생 leaf는 의존을
직접 선언해야 시험이 컴파일된다. 카탈로그의 digest 없는 이미지와 없는 API surface 추가
root는 설정 단계에서 실패한다. version catalog의 미사용 칸을 지웠다. 할 일은
docs/upgrade/2026-11-round9-build.md다.
Refs: RR9-04-06, RR9-04-11, RR9-04-12, RR9-04-13, RR9-04-14, RR9-04-15, RR9-04-16
151 lines
10 KiB
TOML
151 lines
10 KiB
TOML
# Version catalog — every dependency version this build pins itself.
|
|
#
|
|
# Versions managed by an imported BOM are NOT here: a BOM already owns them, and restating a managed
|
|
# version would create a second answer to the same question. The BOM's own coordinate is a different
|
|
# question and it is here — `awsSdk` and `grpc` below are the versions of the BOMs themselves, which
|
|
# this build does choose. What is here is the set a module used to spell out inline, once per usage.
|
|
#
|
|
# The reason is visibility, not reproducibility — `gradle.lockfile` already fixes what resolves.
|
|
# Before this file, coordinate strings were scattered across build files and nothing could show them
|
|
# side by side. An entry nothing reads is deleted rather than kept for later: the catalog claims to
|
|
# be what this build pins, and an unread line is a version nobody is looking after (2026-11-12).
|
|
#
|
|
# Tool and plugin versions live here too. They are not dependencies of any module, so they never
|
|
# appear in a gradle.lockfile and nothing but this file can show them side by side. build-logic reads
|
|
# the plugin versions (spotless, spotbugs, errorprone, Spring dependency management) for its own
|
|
# classpath and the tool versions (google-java-format, Checkstyle, SpotBugs, the errorprone checker)
|
|
# for the quality conventions; the errorprone *plugin* and the errorprone *checker* it runs are the
|
|
# pair this file exists to put next to each other.
|
|
#
|
|
# What is deliberately NOT here: the BOM property overrides in build-logic's JavaConventionsPlugin
|
|
# (ca.java-conventions) — `commons-lang3.version`, `httpcore5.version`, `httpclient5.version`. They
|
|
# are not versions this build chooses but overrides of ones the Spring Boot BOM already manages, each
|
|
# valid only next to the sentence that says what breaks without it (the SpotBugs worker's
|
|
# NoClassDefFoundError; httpcore5's unfixed advisories). Moving the numbers here would leave the
|
|
# reasons behind.
|
|
|
|
[versions]
|
|
approvaltests = "31.0.0"
|
|
assertj = "3.27.7"
|
|
archunit = "1.3.0"
|
|
# AWS SDK v2 BOM coordinate. Imported at MODULE scope by adapter:outbound:objectstorage
|
|
# and app-bootstrap through `ext.awsSdkVersion`, which reads this key.
|
|
awsSdk = "2.30.0"
|
|
# Checkstyle *tool* version (the `checkstyle` extension), not a plugin: Checkstyle is a Gradle
|
|
# built-in plugin with no coordinate of its own.
|
|
checkstyle = "13.5.0"
|
|
errorprone = "2.49.0"
|
|
# The Gradle plugin that runs the checker above. Two different artifacts, two different version
|
|
# lines, deliberately adjacent so a bump of one is visibly not a bump of the other.
|
|
errorpronePlugin = "5.1.0"
|
|
findsecbugs = "1.14.0"
|
|
# Spotless's google-java-format step. A formatter version is a repository-wide decision: a bump
|
|
# reformats every file.
|
|
googleJavaFormat = "1.35.0"
|
|
# Pinned (see `pinned-*` below). CVE-2026-102554, fixed in 33.7.2. Brought by gRPC (33.2.1), Error
|
|
# Prone (33.5.0) and the Checkstyle tool (33.6.0).
|
|
guava = "33.7.2-jre"
|
|
# io.grpc BOM. adapter:inbound:grpc reads it and imports the BOM at MODULE scope to keep the
|
|
# strict-locking blast radius off the shared platform. The gRPC platform library (grpc-library repo,
|
|
# Maven group dev.cakit.grpc) pins its own; no catalog entry here until a leaf adopts it.
|
|
grpc = "1.75.0"
|
|
jmh = "1.37"
|
|
jmhPlugin = "0.7.3"
|
|
jqwik = "1.9.1"
|
|
# Jackson 3 and the JSON-Schema validator once shared a number by coincidence, not by
|
|
# contract; separate keys so bumping one cannot move the other. Only build-logic resolves
|
|
# jackson3 as written: in the leaves the Spring Boot BOM's jackson-bom decides. Keep it at the
|
|
# BOM's number so the build and the application run the same Jackson.
|
|
jackson3 = "3.1.7"
|
|
jsonSchemaValidator = "3.0.2"
|
|
junitJupiter = "5.11.3"
|
|
logstashLogbackEncoder = "8.0"
|
|
# Pinned (see `pinned-*` below). CVE-2026-106451, fixed in 1.11.4. Brought by kafka-clients (1.10.1).
|
|
lz4Java = "1.11.4"
|
|
# The messaging library (messaging-library repo, Maven group dev.cakit.messaging), one version for
|
|
# every module of it: a release publishes all of them together. Raise it by the procedure in
|
|
# docs/work/reference/related-repos.md 3절 (lockfiles rewritten, the leaves' lanes, the CHANGELOG).
|
|
messagingLibrary = "1.0.0"
|
|
okhttp = "4.12.0"
|
|
# Pinned (see `pinned-*` below). CVE-2025-67030, fixed in 3.6.1 on the 3.x line. Brought by the
|
|
# Checkstyle tool's doxia (3.3.0).
|
|
plexusUtils = "3.6.1"
|
|
# The protobuf version adapter:inbound:grpc
|
|
# imports protobuf-bom at this major to match the gRPC BOM above; it is read through
|
|
# `ext.protobufVersion`. Keep it at the protobuf-java that grpc-protobuf of that BOM declares: the
|
|
# protobuf-bom import is what resolves, so a lower number here would run gRPC on an older runtime
|
|
# than it was built against.
|
|
protobufGrpc = "3.25.8"
|
|
resilience4j = "2.2.0"
|
|
# Pinned (see `pinned-*` below). CVE-2026-93451 and CVE-2026-108106, fixed in 1.1.10.9. Brought by
|
|
# kafka-clients (1.1.10.7).
|
|
snappyJava = "1.1.10.9"
|
|
# SpotBugs *tool* version (the `spotbugs` extension). The plugin that runs it is spotbugsPlugin.
|
|
spotbugs = "4.10.2"
|
|
spotbugsPlugin = "6.5.6"
|
|
spotless = "8.6.0"
|
|
springBoot = "4.0.9"
|
|
springCloudContext = "4.1.4"
|
|
# The version that actually resolves. Spring Boot 4.0.9's own plugin brings
|
|
# dependency-management 1.1.7, so the 1.1.6 that used to be written here was a floor nothing ever
|
|
# selected (`./gradlew buildEnvironment` reported `1.1.6 -> 1.1.7`). build-logic applies the plugin
|
|
# too and has no Boot plugin to upgrade it, so a catalog stating a version nobody resolves would
|
|
# have given the convention plugins a different one from the leaves.
|
|
springDependencyManagement = "1.1.7"
|
|
springDotenv = "4.0.0"
|
|
springdoc = "3.0.0"
|
|
toxiproxy = "2.1.7"
|
|
uuidCreator = "6.1.1"
|
|
|
|
[libraries]
|
|
approvaltests = { module = "com.approvaltests:approvaltests", version.ref = "approvaltests" }
|
|
assertj-core = { module = "org.assertj:assertj-core", version.ref = "assertj" }
|
|
archunit-junit5 = { module = "com.tngtech.archunit:archunit-junit5", version.ref = "archunit" }
|
|
jackson-databind-nullable = { module = "org.openapitools:jackson-databind-nullable", version = "0.2.6" }
|
|
jackson3-databind = { module = "tools.jackson.core:jackson-databind", version.ref = "jackson3" }
|
|
jqwik = { module = "net.jqwik:jqwik", version.ref = "jqwik" }
|
|
json-schema-validator = { module = "com.networknt:json-schema-validator", version.ref = "jsonSchemaValidator" }
|
|
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junitJupiter" }
|
|
logstash-logback-encoder = { module = "net.logstash.logback:logstash-logback-encoder", version.ref = "logstashLogbackEncoder" }
|
|
# The messaging library's modules the leaves use. Each leaf's registry row lists the ones it may
|
|
# reach in `allowed_libraries` (gradle/modules.json).
|
|
messaging-core-api = { module = "dev.cakit.messaging:messaging-core-api", version.ref = "messagingLibrary" }
|
|
messaging-reliability = { module = "dev.cakit.messaging:messaging-reliability", version.ref = "messagingLibrary" }
|
|
messaging-reliability-api = { module = "dev.cakit.messaging:messaging-reliability-api", version.ref = "messagingLibrary" }
|
|
messaging-reliability-jdbc-postgresql = { module = "dev.cakit.messaging:messaging-reliability-jdbc-postgresql", version.ref = "messagingLibrary" }
|
|
messaging-spring-boot-starter = { module = "dev.cakit.messaging:messaging-spring-boot-starter", version.ref = "messagingLibrary" }
|
|
messaging-spring-boot-starter-kafka = { module = "dev.cakit.messaging:messaging-spring-boot-starter-kafka", version.ref = "messagingLibrary" }
|
|
mockwebserver = { module = "com.squareup.okhttp3:mockwebserver", version.ref = "okhttp" }
|
|
okhttp-tls = { module = "com.squareup.okhttp3:okhttp-tls", version.ref = "okhttp" }
|
|
resilience4j-bulkhead = { module = "io.github.resilience4j:resilience4j-bulkhead", version.ref = "resilience4j" }
|
|
resilience4j-circuitbreaker = { module = "io.github.resilience4j:resilience4j-circuitbreaker", version.ref = "resilience4j" }
|
|
resilience4j-micrometer = { module = "io.github.resilience4j:resilience4j-micrometer", version.ref = "resilience4j" }
|
|
resilience4j-ratelimiter = { module = "io.github.resilience4j:resilience4j-ratelimiter", version.ref = "resilience4j" }
|
|
resilience4j-retry = { module = "io.github.resilience4j:resilience4j-retry", version.ref = "resilience4j" }
|
|
spring-cloud-context = { module = "org.springframework.cloud:spring-cloud-context", version.ref = "springCloudContext" }
|
|
spring-dotenv = { module = "me.paulschwarz:spring-dotenv", version.ref = "springDotenv" }
|
|
springdoc-openapi-starter-webmvc-api = { module = "org.springdoc:springdoc-openapi-starter-webmvc-api", version.ref = "springdoc" }
|
|
toxiproxy-java = { module = "eu.rekawek.toxiproxy:toxiproxy-java", version.ref = "toxiproxy" }
|
|
uuid-creator = { module = "com.github.f4b6a3:uuid-creator", version.ref = "uuidCreator" }
|
|
|
|
# Pinned: libraries no leaf declares, whose upstream still brings a version with a High or Critical
|
|
# advisory (the trivy gate, scripts/ci/trivy-scan.sh). Not for a leaf to depend on: build-logic's
|
|
# JavaConventionsPlugin pins every `pinned-*` entry, through Spring dependency management, in every
|
|
# configuration of every leaf — the Checkstyle and Error Prone classpaths included. The version's
|
|
# comment names the advisory and the upstream; delete the entry once every upstream named there
|
|
# brings a fixed version itself.
|
|
pinned-guava = { module = "com.google.guava:guava", version.ref = "guava" }
|
|
pinned-lz4-java = { module = "at.yawk.lz4:lz4-java", version.ref = "lz4Java" }
|
|
pinned-plexus-utils = { module = "org.codehaus.plexus:plexus-utils", version.ref = "plexusUtils" }
|
|
pinned-snappy-java = { module = "org.xerial.snappy:snappy-java", version.ref = "snappyJava" }
|
|
|
|
# Plugin coordinates for the root `plugins {}` block: only the plugins it applies. The quality
|
|
# plugins (spotless, spotbugs, errorprone) are applied by build-logic, which takes their versions
|
|
# from [versions] above for its own classpath.
|
|
#
|
|
# The convention plugins from the included build (`ca.*`) are NOT here and cannot be: an included
|
|
# build supplies the plugin itself, so there is no coordinate and no version to pin.
|
|
[plugins]
|
|
spring-boot = { id = "org.springframework.boot", version.ref = "springBoot" }
|
|
jmh = { id = "me.champeau.jmh", version.ref = "jmhPlugin" }
|