옮겨 온 메시징 19개 모듈은 템플릿의 src/settings.gradle·build-logic· 카탈로그·registry에 기대고 있어 이 repo만으로는 빌드되지 않는다. repo 루트를 Gradle 루트로 하는 단독 빌드를 만든다. - build-logic/: grpc-library main 2e880c7의 줄인 사본(템플릿 22df3525에서 복사, 템플릿 2959eff0까지의 변경도 같은 내용)에서 gRPC BOM 규칙(ca.grpc-platform-module)만 뺐다. 배포 플러그인 ca.library-publishing과 서명 키 해석(SigningKeys)은 그대로다. 출처·뺀 것·고친 것은 build-logic/UPSTREAM.md. - settings.gradle·build.gradle·gradle.properties: group dev.cakit.messaging, 단계 태스크 ci·mainCheck·releaseCheck와 배포(release·releaseRehearsal·verifySigningKey)는 grpc-library와 같은 모양이다. 메시징만 다른 점: Buf가 없고, 성능 lane이 없고, mainCheck와 releaseCheck가 브로커 인증 증거 게이트 (verifyMessagingCertificationEvidence)를 부른다. 템플릿은 이 게이트를 따로 messaging-certification.yml로 돌렸다. 그 workflow는 지운다. - config/: registry 19행(source_path만 messaging/<leaf>로), 메시징 클래스만 남긴 SpotBugs 제외 목록, 이미지 셋(postgres-16, kafka, toxiproxy, 모두 digest 고정), checkstyle 사본. - gradle/libs.versions.toml: 메시징이 쓰는 항목만(avro, cloudevents, protobuf 4.33.2, toxiproxy, jmh)과 kafka-clients가 끌고 오는 취약 버전을 덮는 pinned-lz4-java·pinned-snappy-java. - 저장소 계약 테스트: MessagingPublicSurfaceContractTest(템플릿 app-bootstrap에서 이력째 옮김)와 새 MessagingSettingsOwnerContractTest (app.messaging 주인은 starter 하나)를 messaging-testkit의 repositoryContractTest lane에 둔다. check에 들어가 PR 단계에서 돈다. - messaging-kafka: 인증 manifest 경로를 새 배치로 고친다. 버린 대안: 계약 테스트를 build-logic 테스트로 두는 안. 빌드 플러그인 시험과 모듈 계약이 섞이고, 소스·build.gradle을 입력으로 선언하는 기존 lane 장치를 쓸 수 없다. 위험: 이 커밋 단독으로는 lockfile을 다시 쓰지 않았다(뒤 커밋에서 desktop에서 쓴다). 패키지는 아직 dev.caskeleton.messaging이다. 검증: desktop ./gradlew projects rc=0(19개 모듈 포함). Refs: design-docs repo-structure/05-library-repos.md 4·10.3·13.1절
88 lines
4.8 KiB
TOML
88 lines
4.8 KiB
TOML
# Version catalog — every dependency and tool version this build pins itself.
|
|
#
|
|
# Copied from the backend template's src/gradle/libs.versions.toml (see build-logic/UPSTREAM.md for
|
|
# the commit) and cut to the entries this library uses. Versions managed by an imported BOM (Spring
|
|
# Boot: kafka-clients, Spring JDBC, Micrometer, Jackson, Testcontainers) are not here.
|
|
# `gradle.lockfile` fixes what resolves; this file makes the chosen versions visible side by side.
|
|
#
|
|
# The `pinned-*` libraries: no module declares them, and their upstream still brings a version with
|
|
# a High or Critical advisory. build-logic's JavaConventionsPlugin pins every `pinned-*` entry
|
|
# through Spring dependency management in every configuration (the Checkstyle and Error Prone
|
|
# classpaths included). Delete an entry once every upstream named in its comment brings a fixed
|
|
# version itself.
|
|
|
|
[versions]
|
|
assertj = "3.27.7"
|
|
# messaging-schema-avro's codec.
|
|
avro = "1.12.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"
|
|
# messaging-cloudevents' binding.
|
|
cloudevents = "4.0.1"
|
|
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 Error Prone (33.5.0)
|
|
# and the Checkstyle tool (33.6.0).
|
|
guava = "33.7.2-jre"
|
|
# Only build-logic resolves jackson3 as written (it reads the module registry); in the modules the
|
|
# Spring Boot BOM's jackson-bom decides. Keep it at the BOM's number.
|
|
jackson3 = "3.1.7"
|
|
# JMH benchmarks in messaging-kafka and messaging-testkit (`./gradlew :messaging:<leaf>:jmh`); never
|
|
# part of a gate.
|
|
jmh = "1.37"
|
|
jmhPlugin = "0.7.3"
|
|
junitJupiter = "5.11.3"
|
|
junitPlatform = "1.11.3"
|
|
# Pinned (see `pinned-*` below). CVE-2026-106451, fixed in 1.11.4. Brought by kafka-clients (1.10.1).
|
|
lz4Java = "1.11.4"
|
|
# 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"
|
|
# messaging-schema-protobuf's codec.
|
|
protobuf = "4.33.2"
|
|
# 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"
|
|
# 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"
|
|
# messaging-kafka's certification lane puts Toxiproxy between the client and the broker.
|
|
toxiproxy = "2.1.7"
|
|
|
|
[libraries]
|
|
assertj-core = { module = "org.assertj:assertj-core", version.ref = "assertj" }
|
|
avro = { module = "org.apache.avro:avro", version.ref = "avro" }
|
|
cloudevents-api = { module = "io.cloudevents:cloudevents-api", version.ref = "cloudevents" }
|
|
cloudevents-core = { module = "io.cloudevents:cloudevents-core", version.ref = "cloudevents" }
|
|
errorprone-core = { module = "com.google.errorprone:error_prone_core", version.ref = "errorprone" }
|
|
findsecbugs-plugin = { module = "com.h3xstream.findsecbugs:findsecbugs-plugin", version.ref = "findsecbugs" }
|
|
jackson3-core = { module = "tools.jackson.core:jackson-core", version.ref = "jackson3" }
|
|
jackson3-databind = { module = "tools.jackson.core:jackson-databind", version.ref = "jackson3" }
|
|
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junitJupiter" }
|
|
junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher", version.ref = "junitPlatform" }
|
|
protobuf-java = { module = "com.google.protobuf:protobuf-java", version.ref = "protobuf" }
|
|
toxiproxy-java = { module = "eu.rekawek.toxiproxy:toxiproxy-java", version.ref = "toxiproxy" }
|
|
|
|
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" }
|
|
|
|
[plugins]
|
|
jmh = { id = "me.champeau.jmh", version.ref = "jmhPlugin" }
|