refactor: 부가 기능을 capability 모듈로 포장하고 기본 조립을 web-only로 전환
설계: docs/superpowers/specs/2026-09-25-capability-module-packaging-design.md
계획/진행 기록: docs/superpowers/plans/2026-09-25-capability-module-packaging.md
- Wave 0: 규칙 고정(AGENTS.md capability 완료 기준·테스트 규칙) + 차단 결함 7건
(compose overlay 검사, redis-sdk CI job, 적용된 V9/V13 원복 + V16, @EnableScheduling,
messaging bridge 순서, prod 에러 상세 validator, sample loggers read-only)
- Wave 1: 데이터·보안 Critical 10건 (durable operation 25P02, operation 유스케이스 이동,
outbox 재인코딩, Kafka TLS/SASL, 알림 트랜잭션, SNS 서명, tus checksum, GraphQL fragment,
Redis lane, gRPC FAILED_TERMINAL)
- Wave 2: 리팩터링 잔재·실험용 자리 삭제, outbox v1 fencing(V17), 멱등성 V2 정본화
- Wave 3: 라이브러리형 코드 정리(동작하지 않는 설정·인터페이스·gate 제거, web-advanced 분리)
- Wave 4: capability 11개를 "있으면 켜짐" 모듈로 포장, 끄는 장치 제거, 기본 조립 web-only,
qualificationBootJar 분리
- Wave 5: 빌드 로직 축소(17.2k -> 10.8k줄), sample 테스트 컨벤션 적용
삭제한 코드는 docs/capability-status.md "제거된 코드" 표에 복구 커밋(208077fd)과 함께 기록.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
208077fddf
commit
6d27356e2b
+36
-23
@@ -32,10 +32,10 @@ Package root: `dev.caskeleton.bootstrap`.
|
||||
- Settings classes that implement business logic.
|
||||
- Implementing an `application-core` or `domain-core` port. A class that implements one is an
|
||||
outbound adapter and belongs in an `adapter/outbound/*` leaf, however its dependencies are
|
||||
configured — `CompositionRootBoundaryArchitectureTest` enforces this and holds the one documented
|
||||
exception.
|
||||
configured — `CompositionRootBoundaryArchitectureTest` enforces this, with no exceptions.
|
||||
- Raising a startup failure with `throw new IllegalStateException(...)`. Use `StartupFailures`
|
||||
(`envValidation` / `profileMismatch` / `requiredAdapterDisabled` / `migrationFailed`), so the
|
||||
(`adapter:outbound:support`, package `support.startup`: `envValidation` / `profileMismatch` /
|
||||
`requiredAdapterDisabled` / `migrationFailed`), so the
|
||||
failure carries its sysexits exit code and structured log fields —
|
||||
`StartupFailureContractArchitectureTest` enforces this.
|
||||
- Answering "is this production?" locally. `dev.caskeleton.shared.runtime.RuntimeEnvironment` owns
|
||||
@@ -52,19 +52,31 @@ between a `settings/` package and their feature packages with no stated rule; an
|
||||
decomposition problem was solved two different ways in the same leaf — Notification as nine focused
|
||||
configurations, Redis as one 376-line class.
|
||||
|
||||
- **A capability's assembly lives in `autoconfigure/<capability>/`.** Everything a deployment can
|
||||
switch on is a capability: `fileserver`, `httpclient`, `jpa`, `redis`, `notification`, `mongo`,
|
||||
`outbox`, `tracing`, `idempotency`, `lock`, `messaging`.
|
||||
- **A capability's assembly lives in the capability's own module**, registered by that module's
|
||||
`AutoConfiguration.imports`, with its settings in the module's `config/module-defaults/*.yml`.
|
||||
JPA (startup guards, Flyway strategy, lock decorator, readiness and full-off handling in
|
||||
`JpaActivationEnvironmentPostProcessor`) is `adapter:outbound:persistence-jpa`; Redis (readiness) is
|
||||
`adapter:outbound:cache-redis`; notification is `composition:notification-platform`. Every
|
||||
capability is a commented `runtimeOnly` line in `build.gradle`; the default composition is web,
|
||||
observability, the cores, support and identifier. This leaf keeps no list of capabilities: no
|
||||
switch registry, no cross-capability dependency validator, no activation endpoint. Component scan
|
||||
covers `dev.caskeleton.bootstrap` only; web (`WebAdapterAutoConfiguration`) and support
|
||||
(`OutboundSupportConfig`) arrive through their own `AutoConfiguration.imports`. What stays in `autoconfigure/<name>/` is application
|
||||
composition over application-core ports that names no module type: `outbox` (the relay use case
|
||||
and its scheduler, on only when the store and publisher ports exist), `idempotency` (the one
|
||||
executor over whichever store is selected), `tracing`, `common`.
|
||||
- **`<Capability>Settings` lives beside its capability**, not in `settings/`. The `settings/` package
|
||||
holds only settings that belong to no capability — `BootstrapSettings`, `LoggingSettings`,
|
||||
`PrivacySettings`, `RuntimeSafetySettings`.
|
||||
- **`runtime/` holds guards that run whatever is switched on.** Subject matter does not decide
|
||||
ownership: `JpaSchemaSafetyValidator` reads JPA properties but runs when JPA is off, which is the
|
||||
whole point of it, so it is a runtime guard and not part of the JPA capability. Moving guards like
|
||||
it into `autoconfigure/jpa/` made `FiveAdapterOffInventoryTest` fail — correctly, because that test
|
||||
asserts a switched-off capability owns no beans, and the package is how it classifies them.
|
||||
- **`runtime/startup/` holds the startup failure vocabulary** — phases, error codes, exceptions, the
|
||||
`StartupFailures` factory, `StartupValidationContext`, and `StartupOrder`.
|
||||
- **`runtime/` holds guards about the application itself** — secrets, numeric bounds, error-detail
|
||||
exposure, multi-instance coordination, the runtime-profile check (`RuntimeEnvironmentProfileValidator`).
|
||||
A guard about a capability's settings (the JPA OSIV/DDL/pool/TLS/vendor guards, the Mongo
|
||||
connection-source rule, the GraphQL deployment-mode rule) ships with that capability's module, so
|
||||
it exists exactly when the capability does.
|
||||
- **The startup failure vocabulary lives in `adapter:outbound:support`** (`support.startup`: phases,
|
||||
error codes, exceptions, `StartupFailures`, `StartupValidationContext`, `StartupOrder`,
|
||||
`ReadinessGroup`, `RuntimeWarnings`), so capability modules fail the same way without depending on
|
||||
this leaf. `runtime/startup/` keeps only `StartupFailureExceptionReporter`.
|
||||
|
||||
## Decomposition threshold
|
||||
|
||||
@@ -74,19 +86,20 @@ different answers for the same question.
|
||||
- One `@Configuration` holds one assembly concern. Split when it passes roughly **eight `@Bean`
|
||||
methods**, or as soon as it assembles two unrelated port families — whichever comes first.
|
||||
- One `@ConfigurationProperties` class owns one capability namespace.
|
||||
- A capability that needs more than one configuration gets a root class holding the master switch,
|
||||
`@EnableConfigurationProperties`, and an `@Import` of the per-concern classes. Scan nothing:
|
||||
`@Import` from a gated root is what keeps the master switch load-bearing rather than advisory.
|
||||
`autoconfigure/redis/RedisCapabilityConfig` is the bootstrap-owned example. Optional adapter
|
||||
- A capability that needs more than one configuration gets a root class holding its `enabled`
|
||||
condition, `@EnableConfigurationProperties`, and an `@Import` of the per-concern classes. Scan
|
||||
nothing: `@Import` from a gated root is what keeps `enabled=false` load-bearing rather than advisory.
|
||||
`cache-redis`'s `capability/RedisCapabilityConfig` is the reference example. Optional adapter
|
||||
capabilities that own reusable Spring composition publish their own root instead. Notification
|
||||
uses `adapter:outbound:notification`'s `NotificationPlatformAutoConfiguration`; JPA uses the
|
||||
package-private `PersistenceJpaAutoConfiguration` plus `PersistenceJpaRuntimeConfig` from
|
||||
`adapter:outbound:persistence-jpa`. `autoconfigure/jpa/` therefore contains only application
|
||||
startup/deployment policy layered over that leaf runtime — migration sequencing, resolved
|
||||
datasource validation, OSIV/DDL safety, and the management view.
|
||||
uses `adapter:outbound:notification`'s `NotificationPlatformAutoConfiguration` plus
|
||||
`composition:notification-platform`'s `NotificationApplicationCompositionAutoConfiguration`; JPA uses the
|
||||
package-private `PersistenceJpaAutoConfiguration`, `PersistenceJpaRuntimeConfig` and
|
||||
`startup.JpaStartupAutoConfiguration` from `adapter:outbound:persistence-jpa`, which is not in the
|
||||
default composition (`// runtimeOnly project(':adapter:outbound:persistence-jpa')` in
|
||||
`build.gradle`).
|
||||
Mongo follows the same rule: the persistence-mongo leaf owns MongoRootAutoConfiguration and its internal health bridge; bootstrap owns no Mongo-specific production health configuration.
|
||||
- Shared helpers of a split capability get their own type named for what they are, not a `*Util`
|
||||
bucket — `autoconfigure/redis/RedisKeys` is the reference.
|
||||
bucket — `cache-redis`'s `capability/RedisKeys` is the reference.
|
||||
|
||||
## Test
|
||||
|
||||
|
||||
+109
-215
@@ -4,19 +4,33 @@
|
||||
|
||||
이 모듈은 비즈니스 로직을 담지 않는다. Spring Boot 기동, 런타임 설정 바인딩, 기본 runtime
|
||||
모듈 간 최종 와이어링, 그리고 composition classpath를 대상으로 한 중앙 아키텍처 테스트만 둔다.
|
||||
19개 leaf 전체의 프로젝트 edge와 두 composition root의 실제 runtime membership은 JSON registry를
|
||||
읽는 Gradle gate가 별도로 검사한다. 허용/금지 의존, 책임 범위, 테스트 명령 같은 **모듈 규칙**의
|
||||
모든 leaf의 프로젝트 edge는 JSON registry를 읽는 Gradle 방향 게이트가 별도로 검사한다. 허용/금지 의존, 책임 범위, 테스트 명령 같은 **모듈 규칙**의
|
||||
SSOT 는 [CLAUDE.md](CLAUDE.md) 다.
|
||||
|
||||
기본 composition의 SSOT는 `build.gradle`의 실제 project dependency graph다. architecture registry는
|
||||
같은 runtime membership 목록을 다시 저장하지 않는다. `verifyRuntimeModuleRegistry`가 resolved
|
||||
`runtimeClasspath`에 registry 밖 project가 침투하지 않았는지만 검증한다.
|
||||
기본 composition의 SSOT는 `build.gradle`의 실제 project dependency graph다. registry는 runtime
|
||||
membership 목록을 두지 않는다. `allowed_dependencies` 밖의 project는 방향 게이트가 막는다.
|
||||
|
||||
`conditionalTransportBuildContractTest`는 GraphQL/gRPC/WebSocket 세 leaf를 test-only classpath에서 함께 resolve하는
|
||||
qualification composition이다. 현재 GraphQL은 app-bootstrap의 실제 dependency이고 master switch로
|
||||
활성화되며, gRPC/WebSocket은 production dependency가 아니다. optional leaf를 실제 app에 채택하려면
|
||||
`app-bootstrap/build.gradle`의 dependency, architecture의 `allowed_dependencies`, typed settings/보안
|
||||
경계/검증을 같은 변경에서 갱신한다.
|
||||
qualification composition이다. 세 leaf 모두 기본 조립에는 없다.
|
||||
|
||||
### 기능 추가 = 한 줄 + env
|
||||
|
||||
기본 조립(`bootJar`)은 web, 관측, `domain-core`·`application-core`·`shared-contract`, support,
|
||||
identifier뿐이다. 나머지 capability(JPA, Redis, Kafka, Mongo, GraphQL, HTTP client, object storage,
|
||||
WebSocket, gRPC, 파일 서버, 알림)는 `build.gradle`에 주석 처리된 `runtimeOnly project(...)` 한 줄씩으로
|
||||
있다. 주석을 풀면 그 모듈이 자기 `AutoConfiguration.imports`와 설정 기본값으로 켜지고, 줄을 지우면 함께
|
||||
사라진다. 있는 모듈은 자기 `enabled` 키(기본 `true`)를 `false`로 줄 때만 꺼진다. 합성 루트는 capability
|
||||
목록을 따로 들고 있지 않다(스위치 목록, scan 제외 정규식, 의존 검사기 없음). component scan은
|
||||
`dev.caskeleton.bootstrap`만 보고, web(`WebAdapterAutoConfiguration`)과 support(`OutboundSupportConfig`)도
|
||||
자기 auto-configuration으로 들어온다.
|
||||
|
||||
- 줄마다 필요한 env와 끄는 키: [src/README.md](../README.md)의 "기능 추가 = 한 줄 + env" 표.
|
||||
- 줄을 바꾼 뒤: `./gradlew :app-bootstrap:resolveAndLockAll --write-locks`로 strict lock을 갱신한다.
|
||||
- `./gradlew :app-bootstrap:qualificationBootJar`는 main runtime에 모든 capability를 더한 jar를 만든다.
|
||||
compose 레인과 CI용이고, 배포 artifact는 `bootJar`다.
|
||||
- `build.gradle`의 `capabilityProjects` 목록이 capability 전체를 한 번 적는다. 전체 저장소 ArchUnit
|
||||
import(`architectureTest`)와 qualification jar가 이 목록을 읽고, 운영 runtimeClasspath에는 고른 줄만
|
||||
들어간다. 새 capability leaf는 이 목록과 주석 한 줄, 두 곳에 추가한다.
|
||||
|
||||
이 문서는 코드 주석에서 덜어낸 **설계 결정의 근거**를 모아둔 참조용 기록이다 — 코드를 읽다
|
||||
"왜 이렇게 했나"가 궁금할 때 본다. 본문은 한국어로 쓰고, 클래스·Spring API·메트릭 이름처럼
|
||||
@@ -29,8 +43,7 @@ qualification composition이다. 현재 GraphQL은 app-bootstrap의 실제 depen
|
||||
- [runtime — 시크릿 소스 선택과 런타임 안전 가드](#runtime--시크릿-소스-선택과-런타임-안전-가드)
|
||||
- [concurrency — 도메인 컨텍스트 전파](#concurrency--도메인-컨텍스트-전파-전략-조립)
|
||||
- [async — 비동기 executor 컨텍스트 전파와 포화 처리](#async--비동기-executor-컨텍스트-전파와-포화-처리)
|
||||
- [idempotency — 멱등성 런타임 조립과 TTL 상한](#idempotency--멱등성-런타임-조립과-ttl-상한)
|
||||
- [lock — 분산 락 메트릭 데코레이터](#lock--분산-락-메트릭-데코레이터-배선)
|
||||
- [idempotency — 멱등성 provider 선택과 executor 조립](#idempotency--멱등성-provider-선택과-executor-조립)
|
||||
- [outbox — 트랜잭셔널 아웃박스 릴레이](#outbox--트랜잭셔널-아웃박스-릴레이-와이어링)
|
||||
- [logging — 로그 시크릿 마스킹·샘플링·가명화](#logging--로그-시크릿-마스킹샘플링가명화)
|
||||
- [metrics — 메트릭 계약 MeterFilter](#metrics--메트릭-계약-meterfilter-설치)
|
||||
@@ -55,97 +68,15 @@ Redis session mode는 반대로 `jwtDecoder`를 거부하고 `redisVersionedSess
|
||||
Spring Session/Redis 구현 타입을 직접 의존하지 않으며, composition 누락과 이중 활성화를 context
|
||||
refresh 완료 전에 실패시킨다.
|
||||
|
||||
### FlywayProdSafetyValidator
|
||||
- **`prod` 프로파일에서 Flyway 안전장치가 꺼지지 못하도록 런타임에서 강제한다.** Flyway 옵션은
|
||||
`application.yml`에 안전값으로 고정돼 있지만(`baseline-on-migrate=false`, `out-of-order=false`,
|
||||
`clean-disabled=true`), 환경별 override 가 프로덕션에서 이 값을 조용히 되돌릴 수 있다. 이 검증기는
|
||||
그런 override 를 시작 시점에 잡아 `PROFILE_MISMATCH`(exit 71)로 부팅을 막는다.
|
||||
- **금지하는 옵션은 각각 "복구 불가능한 위험" 때문이다.** `baseline-on-migrate=true`는 누락된
|
||||
마이그레이션을 감지하는 안전망을 없애고, `out-of-order=true`는 개발자 간 마이그레이션 적용 순서
|
||||
일관성을 깨며, `clean-disabled=false`는 스키마 전체를 드롭하는 파괴적 `clean` 명령을 다시
|
||||
활성화한다.
|
||||
- **프로파일 비교는 대소문자를 무시한다.** `SPRING_PROFILES_ACTIVE=PROD`처럼 대문자 오타가 나도
|
||||
가드가 우회되지 않게 하기 위함이다.
|
||||
- **Flyway repair 는 가드 대상이 아니다.** repair 는 property 가 아니라 Flyway 명령이고 스켈레톤은
|
||||
repair 호출 경로 자체를 배선하지 않으므로, "prod 에서 repair 금지"는 런타임 트리거가 없는
|
||||
문서화된 정책으로 남는다. 부분 스키마 복구는 in-prod Flyway repair 가 아니라
|
||||
runbook(`runbook://migration/manual-recovery`)을 통한 수동 복구로 가도록 실패 메시지에 명시한다.
|
||||
(프로젝트가 repair 경로를 추가한다면 동일하게 prod 게이트 + non-prod 감사 로그를 걸어야 한다.)
|
||||
|
||||
### RequiredEnvironmentValidator
|
||||
- **datasource 연결 환경변수를 마이그레이션 실행 전에 검증해 부팅을 빨리 실패시킨다.** Flyway
|
||||
forward-only 마이그레이션은 context refresh 동안 애플리케이션 datasource 에 대해 실행된다. 연결
|
||||
환경변수가 빠져 있으면 마이그레이션은 시작 단계 구분자 없이 불투명한 driver/connection 에러로
|
||||
한참 뒤에야 실패한다. 이 검증기는 그것을 명시적인 env 검증 실패(`STARTUP_VALIDATION_FAILED`,
|
||||
exit 78)로 바꿔, 누락된 운영자용 env 키를 전부 이름으로 짚어준다.
|
||||
- **검증 범위를 datasource 3종(url/username/driver)으로 의도적으로 좁혔다.** 이것들이 이 브랜치가
|
||||
소유하는 마이그레이션 전제조건이기 때문이다. app-name(`BootstrapSettings`), issuer-uri(security
|
||||
settings) 등 다른 필수값은 각 모듈의 가드가 책임지므로 여기서 중복 검증하지 않는다.
|
||||
- **값이 없거나(blank) 공백이면 모두 "누락"으로 본다.** spring-dotenv 에서 미설정 placeholder
|
||||
`${...}`가 빈 문자열로 해석되기 때문에, null 뿐 아니라 blank 도 누락으로 처리해야 빈틈이 없다.
|
||||
- **메시지는 env 키 이름순으로 정렬해 출력한다.** Map 순회 순서와 무관하게 결정적이고 안정적인 실패
|
||||
메시지를 보장하기 위함이다.
|
||||
|
||||
### MigrationStartupConfig
|
||||
- **시작 마이그레이션 가드와 Flyway 마이그레이션 전략을 한곳에 모아 소유권을 명확히 한다.** prod
|
||||
토글 / 멀티 인스턴스 가드는 env-driven `RuntimeSafetyConfig`가 소유하고, 이 config 는 마이그레이션
|
||||
관련 가드만 배선한다.
|
||||
- **`migrationStartupRunner` 빈 이름은 반드시 유지해야 한다.** 멀티 인스턴스 모드
|
||||
(`APP_MULTI_INSTANCE_ENABLED=true`)에서 `StartupSafetyValidator`가 이 정확한 이름의 빈 존재를
|
||||
단언하기 때문이다. 동시에 이 빈은 `FlywayMigrationStrategy`로서 Spring Boot Flyway
|
||||
오토컨피규레이션이 `migrate()`를 위임하는 전략이 된다.
|
||||
|
||||
### MigrationStartupRunner
|
||||
- **`FlywayMigrationStrategy`로 등록해 context refresh 중에 마이그레이션을 직접 실행한다(오토컨피그
|
||||
기본값을 그대로 두지 않는다).** refresh 안에서 실행한다는 것은 마이그레이션이 완료되거나 부팅을
|
||||
실패시키는 일이 애플리케이션이 readiness 를 보고하기 *전에* 일어난다는 뜻이다. 따라서 절반만
|
||||
마이그레이션된 스키마가 트래픽을 받는 일이 구조적으로 없다(actuator readiness probe 의 형태
|
||||
자체는 health-lifecycle 브랜치가 소유하고, 여기서는 "마이그레이션 → ready" 순서만 책임진다).
|
||||
- **`FlywayException`을 `MigrationFailedException`(exit 70)으로 번역한다.** 일반적이고 구분 안 되는
|
||||
스택트레이스 대신 구조화된 `MIGRATION_FAILED` 로그와 표준 exit 코드를 남기기 위함이다.
|
||||
- **멀티 인스턴스에서는 in-app 마이그레이션 + Flyway 자체 schema-history 락에 의존하는 것이 기본
|
||||
전략이다.** 여러 레플리카의 동시 `migrate()`를 Flyway 의 락이 직렬화한다. 대안인 "in-app
|
||||
마이그레이션을 끄고 플랫폼 one-shot Job 으로 돌리기"는 "migration=Job"을 강제하는 공개 표준이
|
||||
없는 배포 선택이라 스켈레톤 기본값이 아니다. Job 으로 돌리는 프로젝트는 이 빈의 `migrate()`를
|
||||
no-op 으로 만들면 된다.
|
||||
관계형 기동 가드(`FlywayProdSafetyValidator`, `RequiredEnvironmentValidator`, 마이그레이션 전략
|
||||
`MigrationStartupRunner`)는 `adapter:outbound:persistence-jpa`로 옮겼다. 설계 근거는 그 모듈
|
||||
README의 "startup" 절에 있다.
|
||||
|
||||
### 시작 실패 타입(StartupErrorCode / StartupPhase / StartupFailures / *Exception)
|
||||
- **`StartupErrorCode` — 네 가지 시작 실패 원인을 (레지스트리 error code, 표준 프로세스 exit 코드,
|
||||
`StartupPhase`)로 묶는다.** exit 78(env 누락/오류)과 70(마이그레이션 실패)은 sysexits 표준
|
||||
(`EX_CONFIG`, `EX_SOFTWARE`)과 정렬돼 외부적으로 방어 가능하다. 반면 exit 71(프로파일 불일치)과
|
||||
72(필수 어댑터 비활성)는 ca-tmpl 내부 규약이다 — sysexits 의 `EX_OSERR`/`EX_OSFILE`이 이 의미와
|
||||
맞지 않아, 외부 표준이 아니라 내부 룩업 테이블 값으로 정했다. exit 코드는 carrying 예외가
|
||||
`ExitCodeGenerator`를 구현하기 때문에만 JVM 종료 상태가 된다.
|
||||
- **`StartupPhase` — 실패 원인을 운영자가 로그에서 구분할 수 있게 하는 `startup.phase` 필드다.**
|
||||
시작 실패는 요청이 아직 없으므로 HTTP 에러 응답에 절대 실리지 않는다. 따라서 구조화 로그의
|
||||
`startup.phase`가 `kubectl logs`/`describe`에서 네 가지 원인을 가려내는 유일한 계약이다. wire
|
||||
이름은 dash-case(`env-validation | migration | adapter-enablement | profile-check`)이며, MDC 키가
|
||||
아니라 Logstash structured argument 로 방출되므로 snake_case MDC 키 레지스트리 규칙은 적용되지
|
||||
않는다.
|
||||
- **`StartupFailures` — 시작 실패를 던지는 단일 출처로, 예외 생성 *전에* 구조화 로그를 먼저
|
||||
방출한다.** "throw 직전 각 validator 가 직접 logger 를 호출"하는 패턴을 중앙화해, 어떤 시작 가드도
|
||||
원인/구분자 없는 실패를 던지지 못하게 한다. 로그는 `startup.phase` / `error.code` /
|
||||
`error.category` 세 필드를 Logstash structured argument 로 싣고, cause 가 있으면
|
||||
`error.root_cause.class` / `error.root_cause.message` 요약 필드만 추가한다. 원본 cause 는 반환되는
|
||||
`StartupFailureException`에 보존하지만 SLF4J throwable 인자로 넘기지 않는다. 따라서 canonical
|
||||
startup-failure 로그는 운영자가 분류할 수 있는 요약만 남기고 프레임워크/드라이버 stacktrace 를
|
||||
출력하지 않는다.
|
||||
- **`StartupFailureException` — 네 실패 원인의 베이스 타입이며 `ExitCodeGenerator`로 exit 코드를 JVM
|
||||
종료 상태로 만든다.** context refresh 가 실패하면 `SpringApplication`의 `SpringBootExceptionHandler`
|
||||
(부팅 스레드의 uncaught-exception handler 로 설치됨)가 실패 예외에서 `getExitCode()`를 읽어
|
||||
`System.exit(code)`를 호출한다 — `main()` 수정이 필요 없다. `IllegalStateException`을 상속하는
|
||||
이유는 과거 `StartupSafetyValidator`가 `IllegalStateException`을 던졌기 때문으로, 타입드 예외로
|
||||
업그레이드한 뒤에도 소스/동작 호환을 유지하기 위함이다.
|
||||
- **`StartupFailureExceptionReporter` / `StartupFailureSpringBootLogFilter` — Spring Boot 의 중복
|
||||
startup stacktrace 를 억제한다.** reporter 는 failure cause chain 에 `StartupFailureException`이
|
||||
있을 때만 `true`를 반환해 Boot 의 generic `Application run failed` 출력을 "이미 보고됨"으로
|
||||
처리한다. 이후 Boot 가 반쯤 초기화된 context 를 닫다가 `Unable to close ApplicationContext`를 다시
|
||||
남길 수 있으므로, canonical startup-failure 로그가 이미 찍힌 프로세스에서는 해당
|
||||
`org.springframework.boot.SpringApplication` 중복 메시지만 logback turbo filter 가 차단한다. 일반
|
||||
startup failure 가 아닌 예외와 다른 logger/message 는 기존 Spring Boot 로그 경로를 유지한다.
|
||||
- **`RequiredAdapterDisabledException`은 런타임-라이프사이클의 `ADAPTER_DISABLED`와 의도적으로
|
||||
구분된다.** 이쪽은 *시작* 검증(필수 어댑터/조정 빈이 꺼져 있음)이고, 후자는 비활성 옵션 어댑터에
|
||||
대한 *런타임* 호출이다.
|
||||
- 실패 분류와 구조화 로그 계약은 `adapter:outbound:support`의 `support.startup` 패키지로 옮겼다
|
||||
(capability 모듈이 합성 루트에 의존하지 않고 같은 exit 코드로 실패하게 하려고). 설계 근거는 그
|
||||
모듈 README에 있다. 합성 루트에는 `StartupFailureExceptionReporter`(Spring Boot 보고 억제)와
|
||||
`StartupFailureSpringBootLogFilter`만 남는다.
|
||||
|
||||
---
|
||||
|
||||
@@ -219,45 +150,11 @@ refresh 완료 전에 실패시킨다.
|
||||
발동시켜야 하므로 `equalsIgnoreCase`로 비교한다(`Environment#matchesProfiles`는 대소문자를 구분해
|
||||
"PROD"를 통과시킨다).
|
||||
|
||||
### HikariPoolConstraintValidator
|
||||
- **HikariCP 노브 사이의 상호 제약을 부팅 실패로 바꾼다.** Hikari/Tomcat 은 잘못된 값을 결국
|
||||
거부하지만 pool/connector 초기화 시점에 난해한 메시지로만 거부한다. 이 검증기는 계약을 일찍·명확
|
||||
하게 만든다: resolved Spring property 를 읽고, 위반을 모두 모아 운영자가 실제로 설정한 `APP_*`
|
||||
환경 키를 메시지에 담아 `IllegalStateException`을 던진다. 속성이 *없으면* 건너뛰고(placeholder/
|
||||
프레임워크 기본값이 소유), *있을 때만* 검사한다.
|
||||
- **강제하는 제약과 그 숫자의 근거.** `connection-timeout >= 250ms`(너무 짧으면 정상 연결도 타임
|
||||
아웃). `validation-timeout < connection-timeout`(둘 다 있을 때; validation-timeout 기본 5000ms 가
|
||||
흔한 connection-timeout 5s/5000ms 와 같아지는 충돌을 해소). `keepalive-time < max-lifetime`(둘 다
|
||||
있을 때; keepalive 가 lifetime 보다 길면 의미 없음). `leak-detection-threshold`는 0(비활성)이
|
||||
아니라면 `>= 2000ms`(너무 작으면 정상 사용을 누수로 오탐).
|
||||
- **Spring Boot와 같은 Duration 문법을 검증한다.** `env-keys.yaml`의 `connection-timeout`
|
||||
기본값은 `5s`인데 `src/.env`는 `30000`(ms)을 준다. resolved 값을 `String`으로 읽은 뒤
|
||||
`DurationStyle`로 plain milliseconds, simple duration(`5s`)과 ISO-8601(`PT5S`)을 같은
|
||||
milliseconds 계약으로 변환한다. present-but-invalid 값은 부재로 조용히 취급하지 않고 property
|
||||
이름을 포함한 startup validation failure로 거절한다.
|
||||
- **env 키가 아직 없는 노브는 "env key pending" 문구를 쓴다.** `connection-timeout` /
|
||||
`max-lifetime`만 `env-keys.yaml`에 등록돼 있고, greenfield 노브(validation-timeout, keepalive-time,
|
||||
leak-detection-threshold)는 env 키가 없다. 없는 키 이름을 지어내는 대신 pending 문구를 메시지에 넣는다.
|
||||
|
||||
### OpenInViewSafetyValidator
|
||||
- **OSIV(Open Session In View) OFF 를 hard stop 으로 강제한다.** OSIV 가 켜져 있으면 Hibernate
|
||||
세션이 view 렌더링까지 열려 있어, presentation 레이어에서 lazy 연관을 건드리면 거기서 조용히 DB
|
||||
쿼리가 나간다 — 이것이 정확히 금지된 레이어 경계 위반이다. Spring Boot 는
|
||||
`spring.jpa.open-in-view`가 암묵 기본값일 때 WARN 만 찍을 뿐 명시적으로 `true`로 설정한 배포는
|
||||
막지 못한다. WARN 은 놓치기 쉬우므로, resolved 값이 `true`면 운영자가 실제 설정한
|
||||
`APP_DATASOURCE_OPEN_IN_VIEW` 키를 메시지에 담아 부팅을 실패시킨다.
|
||||
- **읽기만 하고 re-bind 하지 않으며, 부재 값은 Spring 기본에 맡긴다.** `SmartInitializingSingleton`
|
||||
으로 한 번만 검사하고, 값이 *없으면* Spring Boot 기본(이 스켈레톤은 `application.yml`에서 OSIV off
|
||||
가 기본)에 맡기며 *있는 `true`*만 거부한다.
|
||||
|
||||
### JpaSchemaSafetyValidator
|
||||
- **Flyway를 production physical schema의 유일한 writer로 유지한다.** `prod` profile에서는
|
||||
`spring.jpa.hibernate.ddl-auto`가 `none` 또는 `validate`일 때만 허용한다. `update`, `create`,
|
||||
`create-drop` 또는 그 밖의 값이면 `APP_DATASOURCE_DDL_AUTO`를 이름으로 포함한
|
||||
`PROFILE_MISMATCH`로 부팅을 중단한다.
|
||||
- **local 개발 편의와 production 권위를 분리한다.** non-prod profile의 `update`/`create`는 이
|
||||
validator가 막지 않는다. prod profile 비교와 mode 비교는 대소문자를 무시해 `PROD`/`UPDATE`
|
||||
같은 변형도 guard를 우회하지 못한다.
|
||||
관계형 설정 가드(`HikariPoolConstraintValidator`, `OpenInViewSafetyValidator`,
|
||||
`JpaSchemaSafetyValidator`, `PostgreSqlTransportSecurityValidator`,
|
||||
`PersistenceVendorProdSafetyValidator`)는 `adapter:outbound:persistence-jpa`로 옮겼다. 풀 크기
|
||||
하한(`APP_DATASOURCE_POOL_MAX_SIZE >= 1`, `APP_DATASOURCE_POOL_MIN_IDLE >= 0`)도 이제 그쪽
|
||||
`HikariPoolConstraintValidator`가 검사한다.
|
||||
|
||||
### RuntimeNumericBoundsValidator
|
||||
- **고위험 숫자 노브(pool/thread 사이징)만 일부러 좁게 검증한다.** pool/connector 사이징 키는
|
||||
@@ -277,8 +174,10 @@ refresh 완료 전에 실패시킨다.
|
||||
*존재 여부*(multi-instance 검사에 필요)를 검사할 수 없고, `ApplicationReadyEvent` 리스너는 트래픽
|
||||
직전에야 발동해 잘못된 부팅을 거부하기엔 너무 늦다. 그래서 이 중간 타이밍을 택했고, 위반 시
|
||||
throw 하여 context 가 시작을 거부한다.
|
||||
- **prod 안전 토글은 잘못 켜져 있으면 PROFILE_MISMATCH(exit 71)로 죽인다.** prod 프로파일에서 내부
|
||||
상세 노출/요청 본문 캡처 토글이 켜져 있으면 구조화된 startup-failure 로그와 함께 부팅을 중단한다.
|
||||
- **prod 에러 상세 노출은 `ErrorDetailExposureSafetyValidator`가 막는다(이 클래스가 아니다).** prod에서
|
||||
`spring.web.error.include-stacktrace`·`include-message`·`include-binding-errors`가 `never`가 아니거나
|
||||
`include-exception=true`면 PROFILE_MISMATCH(exit 71)로 부팅을 중단한다. env override로 들어온 값도
|
||||
같다. 요청 본문 캡처는 `RequestLoggingFilter`가 body를 읽지 않는 계약으로 막는다.
|
||||
- **multi-instance 가 켜지면 실제 cross-instance lock provider가 조립되어 있어야 한다.**
|
||||
`APP_MULTI_INSTANCE_ENABLED=true`일 때 `distributedLockProvider`가 없거나
|
||||
`DistributedLockPort` 타입이 아니면 REQUIRED_ADAPTER_DISABLED(exit 72)로 실패시킨다. cache refresh
|
||||
@@ -386,68 +285,48 @@ refresh 완료 전에 실패시킨다.
|
||||
|
||||
---
|
||||
|
||||
## idempotency — 멱등성 런타임 조립과 TTL 상한
|
||||
## idempotency — 멱등성 provider 선택과 executor 조립
|
||||
|
||||
### IdempotencyConfig
|
||||
- **공유 `Clock` 빈과 `IdempotencyExecutor`를 composition root 에서 조립하고, `@EnableScheduling`으로
|
||||
만료 레코드 reaper 의 스케줄 purge 를 켠다.** `Clock`을 빈으로 한 번만 정의해 executor·persistence
|
||||
store 어댑터·reaper·rate-limit 인터셉터가 같은 시계를 쓰게 만들어 테스트에서 시간 고정이 쉽고
|
||||
분기마다 시간 해석이 어긋나지 않는다. executor 를 여기서 만드는 이유는 TTL 같은 설정을
|
||||
`application-core`가 직접 읽으면 안 되기 때문이다. `@Scheduled` purge 는 `@EnableScheduling` 없이는
|
||||
동작하지 않으므로 이 설정 클래스에서 명시적으로 활성화한다.
|
||||
### IdempotencyProviderSelectionConfig
|
||||
- **`IdempotencyExecutor`를 여기서 한 번만 만든다.** provider 모듈은 `IdempotencyStorePort`만
|
||||
내놓는다 — `redis`는 `cache-redis`의 `RedisIdempotencyConfig`, `postgresql`은 `persistence-jpa`의
|
||||
`PostgreSqlIdempotencyStoreConfig`. lease·replay TTL·retention·codec id·policy revision 은 어느
|
||||
store 든 같은 정책이라 `IdempotencySettings` 하나에서 읽는다. executor 를 application-core 밖에서
|
||||
만드는 이유는 이 설정을 `application-core`가 직접 읽으면 안 되기 때문이다.
|
||||
- **store 가 정확히 하나가 아니면 기동을 거부한다.** 0개는 provider 모듈이 runtime classpath 에
|
||||
없거나 스위치가 꺼진 경우, 2개는 다른 무언가가 store 를 등록한 경우다. 둘 다 빈 누락 오류나 엉뚱한
|
||||
store 로 요청을 처리하는 대신 개수를 담은 startup 실패로 드러난다.
|
||||
- `provider=disabled`(기본)면 executor 빈 자체가 없다. `jdbc` 값과 V1 조립(`IdempotencyConfig`,
|
||||
`config/idempotency.yml`)은 삭제됐다.
|
||||
- `postgresql` provider 는 PostgreSQL data source 가 아니면 기동을 거부한다. `bootRunH2` 에서는
|
||||
`disabled` 나 `redis` 를 쓴다.
|
||||
|
||||
### IdempotencySettings
|
||||
- **TTL 기본값은 24h 이고 상한은 72h 이며, 이 상한 검사는 컴팩트 생성자에서 fail-fast 로 던진다.**
|
||||
`Duration`의 상한은 JSR-303(`@Valid`) 애너테이션으로 표현할 수 없는 교차 필드 불변식이라 생성자에서
|
||||
직접 검증한다. 검증을 느슨하게 두고 넘어가면 과도하게 긴 TTL 이 저장소를 조용히 부풀리고 멱등성 키
|
||||
추측 공격의 유효 시간 창을 넓히기 때문에, 부팅 시점에 즉시 실패시키는 쪽을 택했다.
|
||||
- **`MAX_TTL`(72h) / 기본 TTL(24h)을 바꿀 때는 보안 베이스라인의 JWT 키 회전 겹침(overlap) 윈도와
|
||||
반드시 함께 검토해야 한다.** 멱등성 레코드의 수명이 키 회전 겹침 윈도(현재 24h)보다 길면, 가명화
|
||||
(pseudonym) 기준이 회전된 principal 에 대해 레코드가 재생(replay)될 수 있다. 이 불변식을 강제하는
|
||||
CI 게이트는 security-operational-baseline 쪽에 위임돼 있다.
|
||||
- **`reaperInterval`은 전용 환경변수가 없고 기본 10분이다.** reaper 실행 주기는 비밀이나 배포별 값이
|
||||
아니라 순수 운영 튜닝 값이라 env key 를 따로 두지 않고, 비어 있거나 0/음수면 10분으로 채운다.
|
||||
- `ca-skeleton.capabilities.idempotency` 에 바인딩되는 유일한 설정 record 다(값은
|
||||
`config/capabilities.yml`).
|
||||
|
||||
---
|
||||
| 키 | env | 기본값 | 상한 |
|
||||
| --- | --- | --- | --- |
|
||||
| `provider` | `APP_IDEMPOTENCY_PROVIDER` | `disabled` | `disabled` \| `redis` \| `postgresql` |
|
||||
| `processing-lease` | `APP_IDEMPOTENCY_PROCESSING_LEASE` | 30s | 1h |
|
||||
| `replay-ttl` | `APP_IDEMPOTENCY_TTL` | 24h | 72h |
|
||||
| `failure-retention` | `APP_IDEMPOTENCY_FAILURE_RETENTION` | 24h | 30d |
|
||||
| `response-codec-id` | — | `json-v2` | 1–64자 |
|
||||
| `policy-revision` | — | 2 | 양수 |
|
||||
| `reaper-interval` | — | 10m | 양수 |
|
||||
|
||||
## lock — 분산 락 메트릭 데코레이터 배선
|
||||
|
||||
### DistributedLockConfig
|
||||
- **`distributedLockProvider` 빈은 `ca-skeleton.runtime.multi-instance-enabled=true`일 때만
|
||||
`@ConditionalOnProperty`로 등록되고 `@Primary`로 우선 적용된다.** 다중 인스턴스 환경에서만
|
||||
`adapter-persistence`의 원시 `jdbcDistributedLock`(JdbcLockRegistry, Flyway 가 프로비저닝한
|
||||
`INT_LOCK` 기반) 어댑터를 `MeteredDistributedLockPort`로 감싸 `lock.acquisition` 카운터를 기록한다.
|
||||
- **단일 인스턴스에서는 이 조건부 빈이 아예 없으므로 `adapter-persistence`가 등록한 `@Primary
|
||||
inProcessDistributedLock`(in-process `DefaultLockRegistry`)이 그대로 선택된다.** 이 경로는 의도적
|
||||
으로 계측하지 않는다 — `lock.acquisition` 카운터는 인스턴스 간 분산 조율을 관측할 때만 의미가
|
||||
있고, JVM 안의 단순 뮤텍스에는 무의미하기 때문이다.
|
||||
- **빈 이름 `"distributedLockProvider"`는 `StartupSafetyValidator`가 이름과
|
||||
`DistributedLockPort` 타입을 함께 검증하는 계약이다.** `APP_MULTI_INSTANCE_ENABLED=true`는 이
|
||||
cross-instance lock provider를 선택한다. cache refresh / rate-limit / outbox 같은 다른 capability의
|
||||
분산 보장은 각 capability가 켜졌을 때 자기 계약으로 검증하며, 이 스위치가 존재하지 않는 sibling
|
||||
capability까지 암묵적으로 켜지는 것으로 해석하지 않는다.
|
||||
|
||||
### MeteredDistributedLockPort
|
||||
- **`DistributedLockPort`를 감싸는 얇은 Micrometer 데코레이터다.** `tryAcquire` 호출마다
|
||||
`lock.acquisition` 카운터를 `outcome` 태그와 함께 1 증가시킨다. 태그 값은 세 가지: `acquired`(락
|
||||
획득 성공, 위임 핸들 반환), `timeout`(`LockAcquisitionTimeoutException` 발생), `error`(그 외 모든
|
||||
`RuntimeException` 발생). 메트릭 이름과 태그 값은 `docs/registries/metrics.yaml`의 `lock.acquisition`
|
||||
행과 일치해야 한다.
|
||||
- **리스 만료(lease-expiry) CME 흡수.** 보유자가 `close()`를 호출하기 전에 리스(저장소 TTL)가
|
||||
만료되면 그 락 행은 이미 다른 인스턴스가 회수해 갔을 수 있고, 그 시점에 내부 `JdbcLock.unlock()`은
|
||||
`ConcurrentModificationException`(CME)을 던진다. 이 예외를 호출자의 `finally { lock.close(); }`
|
||||
블록 밖으로 그대로 전파하면 보호 구간(critical section)에서 발생한 본래 예외를 가려버린다
|
||||
(masking). 그래서 CME 만 잡아 WARN 로그를 남기고 태그 없는 `lock.lease.expired` 카운터를 1
|
||||
증가시킨 뒤 `close()`는 정상 복귀시킨다. 이렇게 해야 신호(로그+메트릭)는 남기면서도 호출자의 정상
|
||||
흐름과 예외 전파를 방해하지 않는다. 오직 `ConcurrentModificationException`만 흡수하며, DB 장애 같은
|
||||
다른 예외(예: `DataAccessResourceFailureException`)는 리스 만료 신호가 아니므로 손대지 않고 그대로
|
||||
전파한다.
|
||||
- **MeterRegistry 부재 시 no-op.** 레지스트리를 `ObjectProvider.getIfAvailable()`로 해석하므로
|
||||
클래스패스에 `MeterRegistry` 빈이 없으면(Actuator 미탑재) 모든 메트릭 연산이 조용히 no-op 이
|
||||
된다. `BackgroundJobMetrics` 선례와 동일한 패턴이다.
|
||||
- **메트릭 실패가 락 경로를 절대 깨뜨리지 않음.** 카운터 등록·증가는 모두 try/catch 로 감싸 예외를
|
||||
로깅 후 삼킨다(log-and-swallow). Micrometer 쪽 실패가 락 획득·보유·실패 보고를 막는 일은 없어야
|
||||
하기 때문이다.
|
||||
Redis store 튜닝값 `key-version`, `command-timeout`(`APP_IDEMPOTENCY_REDIS_COMMAND_TIMEOUT`)도
|
||||
같은 prefix 아래 있지만 lifecycle 정책이 아니라서 이 record 에 두지 않고 `cache-redis`가 읽는다.
|
||||
- **상한 검사는 컴팩트 생성자에서 fail-fast 로 던진다.** `Duration`의 상한은 JSR-303(`@Valid`)
|
||||
애너테이션으로 표현할 수 없어 생성자에서 직접 검증한다. 검증을 느슨하게 두면 과도하게 긴 TTL 이
|
||||
저장소를 조용히 부풀리고 멱등성 키 추측 공격의 유효 시간 창을 넓히기 때문에, 부팅 시점에 즉시
|
||||
실패시키는 쪽을 택했다.
|
||||
- **replay TTL 상한(72h) / 기본값(24h)을 바꿀 때는 보안 베이스라인의 JWT 키 회전 겹침(overlap)
|
||||
윈도와 반드시 함께 검토해야 한다.** 멱등성 레코드의 수명이 키 회전 겹침 윈도(현재 24h)보다 길면,
|
||||
가명화(pseudonym) 기준이 회전된 principal 에 대해 레코드가 재생(replay)될 수 있다. 이 불변식을
|
||||
강제하는 CI 게이트는 security-operational-baseline 쪽에 위임돼 있다.
|
||||
- **`reaper-interval`은 전용 환경변수가 없다.** reaper 실행 주기는 비밀이나 배포별 값이 아니라 순수
|
||||
운영 튜닝 값이다. reaper 는 provider 가 `postgresql` 일 때만 돈다.
|
||||
|
||||
---
|
||||
|
||||
@@ -470,6 +349,18 @@ refresh 완료 전에 실패시킨다.
|
||||
- **`outboxRelayScheduler` 빈은 `ca-skeleton.outbox.relay-enabled`로 게이팅한다(기본 true,
|
||||
`matchIfMissing=true`).** 릴레이를 끄고 싶을 때 빈 자체가 만들어지지 않게 하기 위함. 키가 없으면
|
||||
켜진 것으로 본다.
|
||||
- **store와 publisher가 있을 때만 켜진다.** 설정 전체는 `OutboxStorePort` 빈(persistence-jpa를 고르고
|
||||
outbox를 켰을 때만 존재)을, 스케줄러는 추가로 `OutboxMessagePublishPort` 빈(messaging bridge가
|
||||
제공)을 조건으로 건다. 두 auto-configuration 뒤에 오도록 `afterName`으로 순서를 명시한다. 발행할
|
||||
곳이 없으면 스케줄러가 없으므로 PENDING 행이 그대로 남는다 — 예전에는
|
||||
`DisabledMessagingSentinelAutoConfiguration`의 대역 publisher가 모든 claim을 실패시켜 DEAD로
|
||||
소진했고, 그걸 막으려고 `OutboxRelayBrokerRequirementValidator`가 있었다. 둘 다 삭제했다.
|
||||
messaging bridge의 `MessagingConfig`도 outbox 대역 publisher를 만들지 않는다. bridge가 있고
|
||||
켜져 있는데 broker가 비었고 canonical transport도 없으면 기동을 거부한다.
|
||||
- **왜 persistence-jpa가 아니라 여기인가.** 릴레이는 use case를 조립해 타이머로 구동하는 합성
|
||||
코드다. driven adapter인 persistence-jpa가 use case를 만들거나 호출하면
|
||||
`PERSISTENCE_DOES_NOT_DEPEND_ON_APPLICATION_SERVICES` 규칙 위반이다. 모듈 타입은 하나도 이름으로
|
||||
부르지 않고 포트만 쓰므로, persistence-jpa 한 줄을 지우면 릴레이도 함께 꺼진다.
|
||||
- **`outboxLeaderElection` 토큰 빈은 outbox capability 안에서 조건 없이 등록한다.** SKIP LOCKED 는
|
||||
멀티 인스턴스 전역 스위치와 무관하게 outbox relay 자체의 리더십/claim 메커니즘이라, outbox가 켜진
|
||||
상태에서 별도 하위 토글로 끌 수 있게 만들지 않는다. 이 토큰은 outbox 조립의 자기 설명용 marker이지
|
||||
@@ -505,9 +396,9 @@ refresh 완료 전에 실패시킨다.
|
||||
(FAILED/DEAD 전이)는 relay가 persisted transition 성공 뒤 typed reporter로 canonical ERROR를
|
||||
요청하고 결과에 반영하므로 이 catch 블록까지 오지 않는다 — 여기서 삼키는 것은 어디까지나
|
||||
"예상치 못한" 예외다.
|
||||
- **`@EnableScheduling`을 직접 켜지 않고 fixed-delay 를 쓴다.** 스케줄링은 이미 `IdempotencyConfig`를
|
||||
통해 활성화돼 있어 중복으로 켤 필요가 없고, fixed-delay 는 릴레이 실행 시간과 무관하게 사이클이
|
||||
겹치지 않도록(non-overlapping) 보장한다.
|
||||
- **스케줄링은 `OutboxConfig`가 직접 켜고(`@EnableScheduling`) fixed-delay 를 쓴다.** 예전에는 JDBC
|
||||
idempotency 설정만 스케줄링을 켰기 때문에 다른 provider 를 고르면 릴레이가 조립만 되고 돌지
|
||||
않았다. fixed-delay 는 릴레이 실행 시간과 무관하게 사이클이 겹치지 않도록(non-overlapping) 보장한다.
|
||||
|
||||
### OutboxSettings
|
||||
- **여섯 개 설정값 모두 코드 리터럴 기본값을 쓰고 env placeholder 를 두지 않는다.** 신규 env key 를
|
||||
@@ -515,7 +406,8 @@ refresh 완료 전에 실패시킨다.
|
||||
`PT5M`, `PT10M`, `P7D`)을 채운다.
|
||||
- **`reaper-interval`과 `published-retention`은 `adapter-persistence`의 `OutboxReaper`도 property
|
||||
문자열로 읽는다.** 두 모듈이 같은 키를 공유하지만, 이 properties record 가 여섯 값 전체를 문서화
|
||||
하는 단일 지점(single place) 역할을 한다.
|
||||
하는 단일 지점(single place) 역할을 한다. 기본값 yml(`ca-skeleton.outbox.*`)은 store를 가진
|
||||
persistence-jpa 모듈이 `config/module-defaults/persistence-jpa.yml`로 가져온다.
|
||||
|
||||
---
|
||||
|
||||
@@ -785,8 +677,9 @@ refresh 완료 전에 실패시킨다.
|
||||
- **시작 시 `StartupSafetyValidator`가 강제하는 운영 안전 설정이다.** 현재 구현된 runtime
|
||||
contract는 `APP_MULTI_INSTANCE_ENABLED`이며, 활성화 시 cross-instance `DistributedLockPort`가
|
||||
실제로 조립됐는지 검증한다.
|
||||
- 내부 error detail 노출과 request/response body logging은 shipped 구현이 없으므로 예약 토글도
|
||||
두지 않는다. body 로그 안전성은 `RequestLoggingFilter`가 body를 읽지 않는 계약으로 검증한다.
|
||||
- 내부 error detail 노출은 이 설정의 토글이 아니다. prod에서 `spring.web.error.include-*`가 켜지면
|
||||
`ErrorDetailExposureSafetyValidator`가 기동을 막는다. body 로그 안전성은 `RequestLoggingFilter`가
|
||||
body를 읽지 않는 계약으로 검증한다.
|
||||
- **`multiInstanceEnabled`가 `true`면 shipped cross-instance `DistributedLockPort`가 실제로
|
||||
조립됐는지 단언하고, 없거나 이름만 맞춘 잘못된 타입이면 시작을 실패시킨다.** 이 스위치는 JPA-backed
|
||||
distributed lock 선택자다. cache refresh coordination은 optional efficiency이고, rate-limit/outbox는
|
||||
@@ -803,16 +696,19 @@ app-bootstrap 은 합성 루트라 "왜 이 의존성이, 왜 이 scope 로" 결
|
||||
필요하면 여기서 **명시적으로** 다시 선언한다.
|
||||
|
||||
### 런타임(production) 의존성
|
||||
- **`flyway-core`를 직접 의존하는 이유.** PostgreSQL vendor 모듈이 `flyway-database-postgresql`와
|
||||
마이그레이션 스크립트를 소유하지만, 합성 루트는 Flyway API 자체가 필요하다. `MigrationStartupConfig`의
|
||||
`migrationStartupRunner`(FlywayMigrationStrategy)가 `migrate()`를 직접 구동하고 `FlywayException`을
|
||||
exit-70 `MigrationFailedException`으로 번역하기 때문이다.
|
||||
- **capability는 main 의존이 아니다.** 알림(`composition:notification-platform`)을 포함한 모든
|
||||
capability가 주석 처리된 `runtimeOnly` 한 줄이다(위 "기능 추가 = 한 줄 + env").
|
||||
- **persistence-jpa는 main 의존이 아니다.** 기본 조립은 관계형 저장소를 싣지 않는다
|
||||
(`// runtimeOnly project(':adapter:outbound:persistence-jpa')` 한 줄을 풀면 켜진다). Flyway
|
||||
마이그레이션 전략과 관계형 기동 가드는 그 모듈이 가져온다. 테스트는 JPA rule pack과 계약 테스트
|
||||
때문에 모듈을 `testImplementation`으로 보지만, `systemTest`는 `bootJar`와 같은 런타임 그래프
|
||||
(main runtime + 테스트 프레임워크)로 돌도록 test 의존을 물려받지 않는다.
|
||||
- **`spring-boot-starter-security`를 compile classpath 에 두는 이유.** adapter-web 이 security 를
|
||||
`implementation`(not `api`)으로 선언해서 Spring Security 타입이 app-bootstrap 컴파일 경로로 새지
|
||||
않는다. 그런데 `ManagementSecurityConfig`가 `HttpSecurity`/`SecurityFilterChain`/`EndpointRequest`를
|
||||
쓴다. cross-cutting 보안 와이어링은 합성 루트가 소유한다는 원칙(AGENTS.md)에 따라 여기서 직접
|
||||
의존한다.
|
||||
- **`micrometer-core`** — `OutboxMetrics` 카운터/게이지용. `ObjectProvider<MeterRegistry>`라 registry
|
||||
- **`micrometer-core`** — `OutboxMetrics`·`BackgroundJobMetrics` 카운터/게이지용. `ObjectProvider<MeterRegistry>`라 registry
|
||||
가 없으면 no-op 이다(registry 는 Actuator 가 제공).
|
||||
- **tracing(`micrometer-tracing-bridge-otel` + `opentelemetry-exporter-otlp`)** — OTel/Micrometer
|
||||
tracer 런타임. exporter 는 `OTEL_EXPORTER_OTLP_ENDPOINT`가 비면 켜진 채로 대기만 하고 export 는
|
||||
@@ -850,12 +746,10 @@ app-bootstrap 은 합성 루트라 "왜 이 의존성이, 왜 이 scope 로" 결
|
||||
|
||||
`config/messaging/`은 first polling-producer tuple의 machine-readable 계획 truth만 보관한다.
|
||||
현재 card 11개는 모두 `maturity: not-implemented`, `evidenceFingerprint: ""`이고 consumer,
|
||||
CDC, EOS, schema-registry 확장 row는 없다. Task 6의 `verifyMessagingJsonSchemaV1`과
|
||||
`verifyMessagingContracts`는 exact qualification test와 test/build 전용 Draft 2020-12 manifest
|
||||
validator를 실행한다. combined task는 JSON-only task/validator에 명시적으로 의존하므로 CLI 순서와
|
||||
무관하게 shared `contracts-schema/manifest.json`의 최종 소유자가 된다. 나머지 `verifyMessaging*`
|
||||
root task는 후속 owner test와 payload-free evidence validator가 구현되기 전까지 공통 fail-closed
|
||||
guard에서 반드시 non-zero로 종료한다. 파일 존재, SKIP, 오래된 evidence, 다른 source digest 또는
|
||||
CDC, EOS, schema-registry 확장 row는 없다. `verifyMessagingContracts`는 application-core·
|
||||
shared-contract의 exact qualification test를 실행하고 `contracts-schema/manifest.json`을 쓴 뒤 그
|
||||
바이트를 Draft 2020-12 common schema로 검증한다(`verifyMessagingJsonSchemaV1`은 R1 encoder와 함께
|
||||
2026-09-25에 삭제). 나머지 `verifyMessaging*` 이름은 등록되지 않은 계획이다. 파일 존재, SKIP, 오래된 evidence, 다른 source digest 또는
|
||||
다른 profile hash를 PASS로 취급하지 않는다. 이 scaffold는 broker client, scheduler, thread,
|
||||
network 또는 다른 런타임 resource를 생성하지 않는다.
|
||||
|
||||
|
||||
+168
-150
@@ -5,13 +5,8 @@ plugins {
|
||||
id 'ca.config-contract'
|
||||
id 'ca.auxiliary-source-set'
|
||||
id 'ca.bootrun-dotenv'
|
||||
id 'ca.strict-qualification'
|
||||
id 'ca.dependency-policy'
|
||||
}
|
||||
|
||||
def contractRegistriesDirectory = rootProject.projectDir.parentFile.toPath()
|
||||
.resolve('docs/registries').toFile()
|
||||
|
||||
// Application entry point. Wires the default runtime module set and runs Spring Boot.
|
||||
// Optional leaves require an explicit registry allowance plus a composition-root dependency.
|
||||
// The infrastructure lane. Testcontainers-backed tests boot a real PostgreSQL, so they belong to a
|
||||
@@ -30,10 +25,11 @@ auxiliarySourceSets {
|
||||
inherits 'implementation', 'compileOnly', 'runtimeOnly', 'annotationProcessor'
|
||||
runtimeFrom 'test'
|
||||
}
|
||||
// No `runtimeFrom 'test'` and no inherited test dependencies: the full-boot lane runs on the
|
||||
// composition bootJar packages (see the configurations block below).
|
||||
sourceSet('systemTest') {
|
||||
compilesAgainst 'main', 'test'
|
||||
inherits 'implementation', 'compileOnly', 'runtimeOnly', 'annotationProcessor'
|
||||
runtimeFrom 'test'
|
||||
inherits 'annotationProcessor'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,6 +40,7 @@ strictTestLanes {
|
||||
sourceSet = 'integrationTest'
|
||||
requires 'dev.caskeleton.bootstrap.integration.fileserver.FileserverCompositionIntegrationTest'
|
||||
requires 'dev.caskeleton.bootstrap.integration.objectstorage.ObjectStorageCompositionIntegrationTest'
|
||||
requires 'dev.caskeleton.bootstrap.integration.idempotency.PostgreSqlIdempotencyProviderIntegrationTest'
|
||||
}
|
||||
lane('architectureTest') {
|
||||
architecture()
|
||||
@@ -52,7 +49,6 @@ strictTestLanes {
|
||||
maxHeapSize = '2g'
|
||||
jvmArgs '-Duser.timezone=UTC'
|
||||
shouldRunAfter 'test'
|
||||
inputDirectory contractRegistriesDirectory
|
||||
}
|
||||
lane('systemTest') {
|
||||
system()
|
||||
@@ -62,15 +58,45 @@ strictTestLanes {
|
||||
jvmArgs '-Duser.timezone=UTC'
|
||||
shouldRunAfter 'test'
|
||||
}
|
||||
lane('conditionalTransportBuildContractTest') {
|
||||
description = 'Proves the explicit test-only GraphQL/gRPC/WebSocket opt-in classpath.'
|
||||
sourceSet = 'conditionalTransportBuildContractTest'
|
||||
requires 'dev.caskeleton.bootstrap.transport.ConditionalTransportBuildContractTest'
|
||||
rejectSkipped = true
|
||||
jvmArgs '-Duser.timezone=UTC'
|
||||
shouldRunAfter 'test'
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named('check') {
|
||||
dependsOn tasks.named('systemTestLaneCheck')
|
||||
}
|
||||
|
||||
// architectureTest and systemTest compile against test fixtures but intentionally mirror
|
||||
// the ordinary test runtime rather than their compile classpath. `runtimeFrom 'test'` above keeps
|
||||
// testCompileOnly analysis dependencies out of these behavioral lanes.
|
||||
// architectureTest runs on the `test` runtime (runtimeFrom above) plus its own configuration, so
|
||||
// the capability leaves declared `architectureTestRuntimeOnly` reach the whole-repository ArchUnit
|
||||
// import without reaching the default composition that `test` and `systemTest` boot.
|
||||
sourceSets.architectureTest.runtimeClasspath += configurations.architectureTestRuntimeClasspath
|
||||
|
||||
// The full-boot lane boots the composition bootJar packages. It compiles against everything the
|
||||
// test lane sees, but it runs on the main runtime graph plus the test frameworks — not on the test
|
||||
// lane's extra modules (persistence-jpa, the slice-test starters).
|
||||
// A module on the classpath is on, and the shipped artifact contains none of those, so running the
|
||||
// full boot on the test classpath would open a pool the artifact cannot open.
|
||||
configurations {
|
||||
systemTestCompileOnly.extendsFrom testImplementation, testCompileOnly
|
||||
systemTestImplementation.extendsFrom implementation
|
||||
systemTestRuntimeOnly.extendsFrom runtimeOnly
|
||||
}
|
||||
dependencies {
|
||||
systemTestImplementation 'org.junit.jupiter:junit-jupiter'
|
||||
systemTestImplementation 'org.assertj:assertj-core'
|
||||
systemTestImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
systemTestRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
||||
}
|
||||
|
||||
// architectureTest compiles against test fixtures but intentionally mirrors the ordinary test
|
||||
// runtime rather than its compile classpath. `runtimeFrom 'test'` above keeps testCompileOnly
|
||||
// analysis dependencies out of that lane.
|
||||
|
||||
sourceSets {
|
||||
conditionalTransportBuildContractTest {
|
||||
@@ -81,95 +107,75 @@ sourceSets {
|
||||
}
|
||||
}
|
||||
|
||||
// Every capability a service can select — the commented runtimeOnly lines below — listed once.
|
||||
// Two consumers read it: the whole-repository ArchUnit import (spec §7: the architecture suite sees
|
||||
// every module, the shipped runtime only the selected ones) and the qualification artifact the
|
||||
// Compose lanes boot (qualificationBootJar, below). Neither reaches `bootJar`, `test` or
|
||||
// `systemTest`, because a capability on a classpath is switched on there by its mere presence.
|
||||
// A new capability leaf is added here and as a commented line below; nowhere else.
|
||||
def capabilityProjects = [
|
||||
':adapter:outbound:persistence-jpa',
|
||||
':adapter:outbound:cache-redis',
|
||||
':adapter:outbound:messaging-kafka',
|
||||
':adapter:outbound:persistence-mongo',
|
||||
':adapter:inbound:graphql',
|
||||
':adapter:outbound:httpclient',
|
||||
':adapter:outbound:objectstorage',
|
||||
':adapter:inbound:websocket',
|
||||
':adapter:inbound:grpc',
|
||||
':composition:fileserver-platform',
|
||||
':composition:notification-platform',
|
||||
]
|
||||
|
||||
dependencies {
|
||||
implementation project(':domain-core')
|
||||
implementation project(':application-core')
|
||||
implementation project(':application-notification')
|
||||
implementation project(':adapter:outbound:persistence-jpa')
|
||||
// Test sources name the JPA capability types (the JPA rule pack, the persistence failure
|
||||
// contract). Test scope only: systemTest runs on the main runtime graph, so the full-boot lane
|
||||
// still boots the composition this build ships.
|
||||
testImplementation project(':adapter:outbound:persistence-jpa')
|
||||
integrationTestImplementation project(':adapter:outbound:persistence-jpa')
|
||||
|
||||
// The JPA rule pack, for the production architecture suite. Test scope only: the rules are
|
||||
// ArchUnit assertions, and the composition root is the one place that can see every runtime
|
||||
// leaf at once — which is what makes it the right consumer and the wrong shipper.
|
||||
// Fileserver is not selected by the minimal composition (see the dependencyPolicy block at the
|
||||
// end of this file). These lanes select it, because they are what proves the capability still
|
||||
// assembles and still stays off — a contract that cannot be verified from an artifact that does
|
||||
// not contain it. Object storage already works exactly this way.
|
||||
testImplementation project(':composition:fileserver-platform')
|
||||
// The leaf as well as the composition: a handful of bootstrap tests name the adapter's own
|
||||
// types — the off-state gating inventory and the entity-scan registration among them — and a
|
||||
// composition that re-exported them would be an `api` edge this module does not want.
|
||||
testImplementation project(':adapter:outbound:fileserver')
|
||||
testImplementation project(':application-fileserver')
|
||||
// 이 서비스가 쓰는 부가 기능 — 필요한 줄의 주석을 푼다.
|
||||
// 각 모듈은 있으면 켜지고(자기 AutoConfiguration.imports와 설정 기본값을 가진다), 줄을 지우면
|
||||
// 기능·설정·의존성이 함께 빠진다. 켠 뒤 필요한 env 키는 각 모듈 README에 있다.
|
||||
// 줄을 바꾼 뒤 strict lock을 갱신한다: ./gradlew :app-bootstrap:resolveAndLockAll --write-locks
|
||||
// runtimeOnly project(':adapter:outbound:persistence-jpa') // JPA·Flyway·outbox·lock
|
||||
// runtimeOnly project(':adapter:outbound:cache-redis') // Redis (캐시·rate limit·idempotency)
|
||||
// runtimeOnly project(':adapter:outbound:messaging-kafka') // Kafka 발행
|
||||
// runtimeOnly project(':adapter:outbound:persistence-mongo') // Mongo
|
||||
// runtimeOnly project(':adapter:inbound:graphql') // GraphQL
|
||||
// runtimeOnly project(':adapter:outbound:httpclient') // 외부 HTTP 호출
|
||||
// runtimeOnly project(':adapter:outbound:objectstorage') // 객체 저장소 (S3/로컬)
|
||||
// runtimeOnly project(':adapter:inbound:websocket') // WebSocket (STOMP push)
|
||||
// runtimeOnly project(':adapter:inbound:grpc') // gRPC 서버
|
||||
// runtimeOnly project(':composition:fileserver-platform') // 파일 서버
|
||||
// runtimeOnly project(':composition:notification-platform') // 알림 (persistence-jpa 줄도 함께 푼다)
|
||||
|
||||
capabilityProjects.each { architectureTestRuntimeOnly project(it) }
|
||||
|
||||
// The capability integration lane selects Fileserver and object storage together, as a service
|
||||
// would, and turns off whichever one a test is not about.
|
||||
integrationTestImplementation project(':composition:fileserver-platform')
|
||||
integrationTestImplementation project(':adapter:inbound:web-fileserver')
|
||||
|
||||
testImplementation(testFixtures(project(':adapter:outbound:persistence-jpa')))
|
||||
testImplementation(testFixtures(project(':adapter:inbound:web')))
|
||||
// The three capabilities above are runtimeOnly for main, and these tests name their types —
|
||||
// the import filters, the deployment-mode enum, the settings records. Declared here rather than
|
||||
// widened back to `implementation`, so the composition root's own sources still cannot reach
|
||||
// them. The Mongo exclusions are repeated because MongoShippedCompositionContractTest asserts
|
||||
// the shape of the classpath it runs on, not only the shape of the shipped one.
|
||||
testImplementation(project(':adapter:outbound:persistence-mongo')) {
|
||||
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-data-mongodb-reactive'
|
||||
exclude group: 'org.mongodb', module: 'mongodb-driver-reactivestreams'
|
||||
}
|
||||
testImplementation project(':adapter:outbound:httpclient')
|
||||
testImplementation project(':adapter:inbound:graphql')
|
||||
// Shipped so an operator can enable it with one environment variable. An adapter that is
|
||||
// absent is not the same contract as one that is off: absence cannot be reversed at deploy time,
|
||||
// and it hides every gating defect, because code that is not there holds no beans whatever its
|
||||
// conditions say.
|
||||
//
|
||||
// runtimeOnly, not implementation: no source under src/main names a type from this leaf, so the
|
||||
// composition root has no compile-time business with it, and saying so in the build makes that
|
||||
// a rule the compiler keeps rather than a habit. It also states which capabilities a fork can
|
||||
// drop from its artifact by deleting one line — the step the composition-ownership work has to
|
||||
// reach for the capabilities bootstrap still imports.
|
||||
runtimeOnly(project(':adapter:outbound:persistence-mongo')) {
|
||||
// Reactive Mongo is not in the shipped Stable scope: there is no reactive port, no resource
|
||||
// budget for a second client, and no qualification. Leaving the starter on the runtime
|
||||
// classpath would let Boot's reactive auto-configuration build a second client and pool from
|
||||
// the same URI the moment the master switch went on — a duplicate connection nobody asked
|
||||
// for and nothing tests. Removed here rather than in the leaf, which still needs it to
|
||||
// compile the reactive code paths it keeps for a future promotion.
|
||||
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-data-mongodb-reactive'
|
||||
exclude group: 'org.mongodb', module: 'mongodb-driver-reactivestreams'
|
||||
}
|
||||
// The idempotency composition tests drive the executor over the port owner's shared fake store.
|
||||
testImplementation(testFixtures(project(':application-core')))
|
||||
// The opt-in web library is in no shipped composition. Runtime-only for the tests so the
|
||||
// whole-repository ArchUnit import (architectureTest runs on the test runtime classpath) still
|
||||
// reads its classes; no test source may name one of its types. It cannot reach a shipped
|
||||
// composition: no module in modules.json may depend on it, so the direction gate refuses the edge.
|
||||
testRuntimeOnly project(':adapter:inbound:web-advanced')
|
||||
implementation project(':adapter:outbound:support')
|
||||
implementation project(':adapter:outbound:messaging')
|
||||
// The messaging platform facade, so all five adapters are in one artifact and "off" is a switch
|
||||
// rather than an omission (ShippedRuntimeFacadePresenceTest). It resolves seventeen further
|
||||
// leaves onto the runtime classpath, which is intended and is why the qualification state is
|
||||
// recorded rather than implied: MessagingLiveRoundTripQualificationTest qualifies the Kafka
|
||||
// publish path against a real broker, and the Rabbit transport, the JDBC inbox and outbox
|
||||
// adapters and the admin plane ship inactive and unqualified behind the same master switch.
|
||||
// MessagingMembershipQualificationTest holds that distinction so it cannot be forgotten.
|
||||
implementation project(':messaging:messaging-spring-boot-starter')
|
||||
implementation project(':adapter:outbound:cache-redis')
|
||||
implementation project(':adapter:outbound:redis-runtime')
|
||||
implementation project(':adapter:outbound:notification')
|
||||
// runtimeOnly for the same reason as persistence-mongo: no main source names an HTTP client type.
|
||||
runtimeOnly project(':adapter:outbound:httpclient')
|
||||
implementation project(':adapter:outbound:identifier')
|
||||
// Shipped so an operator can enable the transport with one environment variable. The platform
|
||||
// configuration carried no master condition at all, so this edge is only safe now that
|
||||
// GraphQlRootAutoConfiguration owns the switch and the import filter holds Spring GraphQL's own
|
||||
// auto-configurations back — without both, adding the jar would publish /graphql.
|
||||
// runtimeOnly: the switch and the import filter are the leaf's, and no main source names either.
|
||||
runtimeOnly project(':adapter:inbound:graphql')
|
||||
implementation project(':adapter:inbound:web')
|
||||
implementation project(':shared-contract')
|
||||
implementation 'org.springframework.boot:spring-boot-starter'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
||||
implementation libs.spring.dotenv
|
||||
// Boot 4 Flyway API/autoconfiguration: the composition root drives startup migration
|
||||
// (MigrationStartupConfig). See README.
|
||||
implementation 'org.springframework.boot:spring-boot-flyway'
|
||||
// Flyway API: MigrationStartupRunner directly invokes Flyway. Kept explicit for readability.
|
||||
implementation 'org.flywaydb:flyway-core'
|
||||
|
||||
// Micrometer core for OutboxMetrics meters (no-op without a MeterRegistry). See README.
|
||||
// Micrometer core for the bootstrap meters (no-op without a MeterRegistry). See README.
|
||||
implementation 'io.micrometer:micrometer-core'
|
||||
|
||||
// OTel/Micrometer tracer runtime (exporter stays off until an OTLP endpoint is set). See README.
|
||||
@@ -178,15 +184,11 @@ dependencies {
|
||||
|
||||
// Actuator + Prometheus registry (health/info/prometheus/loggers endpoints).
|
||||
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
||||
// The composition root wires the OAuth2 credential provider for the HTTP Client Platform,
|
||||
// so it must see OAuth2AuthorizedClientManager. The adapter keeps the dependency internal.
|
||||
implementation 'org.springframework.security:spring-security-oauth2-client'
|
||||
implementation 'io.micrometer:micrometer-registry-prometheus'
|
||||
// Security types for ManagementSecurityConfig (not reachable via adapter-web's implementation dep). See README.
|
||||
implementation 'org.springframework.boot:spring-boot-starter-security'
|
||||
|
||||
// test-only: ArchUnit needs actuator types to verify the health-shape guardrail. See README.
|
||||
testImplementation project(':adapter:outbound:messaging-kafka')
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-actuator'
|
||||
// test-only: @WithMockUser for the actuator security authorization tests. See README.
|
||||
testImplementation 'org.springframework.security:spring-security-test'
|
||||
@@ -213,8 +215,12 @@ dependencies {
|
||||
testImplementation 'org.springframework.boot:spring-boot-data-jpa-test'
|
||||
// test-only: PG JDBC driver (the vendor module's runtimeOnly does not leak here). See README.
|
||||
testRuntimeOnly 'org.postgresql:postgresql'
|
||||
// test-only: JPA/Hikari for the outbox tests' minimal context (not leaked from rdbms). See README.
|
||||
// test-only: Boot's relational auto-configuration types, which a few context tests exclude by name.
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||
testImplementation 'org.springframework.boot:spring-boot-flyway'
|
||||
// The integration lane drives Flyway itself and names Boot's Flyway auto-configuration.
|
||||
integrationTestImplementation 'org.springframework.boot:spring-boot-flyway'
|
||||
integrationTestImplementation 'org.flywaydb:flyway-core'
|
||||
testImplementation 'com.zaxxer:HikariCP'
|
||||
|
||||
testImplementation libs.archunit.junit5
|
||||
@@ -267,9 +273,24 @@ dependencies {
|
||||
conditionalTransportBuildContractTestRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
||||
}
|
||||
|
||||
def repositoryRootForContractTests = rootProject.projectDir.parentFile.absolutePath
|
||||
// The contract tests here read the repository itself — docs/registries and docs/runbooks, the
|
||||
// module registry and the rest of src/config, build scripts, Dockerfiles, Compose files, workflows,
|
||||
// src/.env.example, the root guidance documents. Every one of those is an input, or Gradle calls
|
||||
// the lane up to date after exactly the edit the test exists to catch.
|
||||
def repositoryRootForContractTests = rootProject.projectDir.parentFile
|
||||
def repositoryContractInputs = files(
|
||||
fileTree(repositoryRootForContractTests) {
|
||||
include 'docs/**', '.github/**', 'infra/**', 'scripts/**', '*.md', '*.yml', '*.example'
|
||||
},
|
||||
fileTree(rootProject.projectDir) {
|
||||
include 'config/**', '**/*.gradle', 'gradle/*.toml', 'Dockerfile*', '.env*', '**/*.md'
|
||||
exclude '**/build/**', '**/.gradle/**'
|
||||
})
|
||||
tasks.withType(Test).configureEach {
|
||||
systemProperty 'ca.repository.root', repositoryRootForContractTests
|
||||
systemProperty 'ca.repository.root', repositoryRootForContractTests.absolutePath
|
||||
inputs.files(repositoryContractInputs)
|
||||
.withPathSensitivity(PathSensitivity.RELATIVE)
|
||||
.withPropertyName('repositoryContractInputs')
|
||||
}
|
||||
|
||||
// Fast developer test lane. Whole-repository ArchUnit graphs and full composition-root boot
|
||||
@@ -279,26 +300,12 @@ tasks.named('test', Test) {
|
||||
// Two forks are the measured sweet spot after moving whole-repository ArchUnit and full boot
|
||||
// composition tests out of the fast lane. More forks duplicate Spring contexts for little gain.
|
||||
maxParallelForks = 2
|
||||
inputs.dir(contractRegistriesDirectory)
|
||||
.withPathSensitivity(PathSensitivity.RELATIVE)
|
||||
// Pin UTC for the TEST JVM so timestamp tests are host-locale-independent (production UTC is
|
||||
// owned elsewhere).
|
||||
jvmArgs '-Duser.timezone=UTC'
|
||||
}
|
||||
|
||||
|
||||
def conditionalTransportCompositionQualification = extensions.getByName('strictQualification').register(
|
||||
'conditionalTransportBuildContractTest',
|
||||
sourceSets.conditionalTransportBuildContractTest,
|
||||
[
|
||||
'dev.caskeleton.bootstrap.transport.ConditionalTransportBuildContractTest'
|
||||
],
|
||||
'Proves the explicit test-only GraphQL/gRPC/WebSocket opt-in classpath.'
|
||||
)
|
||||
conditionalTransportCompositionQualification.configure {
|
||||
shouldRunAfter tasks.named('test')
|
||||
}
|
||||
|
||||
bootJar {
|
||||
mainClass = 'dev.caskeleton.bootstrap.CaSkeletonApplication'
|
||||
}
|
||||
@@ -310,6 +317,49 @@ tasks.register('stageDockerJar', Sync) {
|
||||
rename { 'application.jar' }
|
||||
}
|
||||
|
||||
// A runtime classpath of this composition plus extra leaves, resolved the way Boot resolves
|
||||
// runtimeClasspath. Used by the H2 convenience below and by the qualification artifact.
|
||||
def compositionRuntimeClasspath = { String name ->
|
||||
configurations.create(name) {
|
||||
canBeConsumed = false
|
||||
canBeResolved = true
|
||||
extendsFrom configurations.implementation, configurations.runtimeOnly
|
||||
attributes {
|
||||
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage, Usage.JAVA_RUNTIME))
|
||||
attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category, Category.LIBRARY))
|
||||
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements, LibraryElements.JAR))
|
||||
attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling, Bundling.EXTERNAL))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The qualification artifact: this composition with every capability on the classpath. It is what
|
||||
// the Compose lanes (config/runtime/compose-profile-contracts.json) boot, because a lane that turns
|
||||
// JPA or Kafka on needs the module in the image, and `bootJar` — the default composition a service
|
||||
// ships — carries none of them. It is never released: `release.yml` builds `stageDockerJar`.
|
||||
// Each capability is on while present, so a lane switches off what it is not about.
|
||||
def qualificationClasspath = compositionRuntimeClasspath('qualificationRuntimeClasspath')
|
||||
dependencies {
|
||||
capabilityProjects.each { qualificationRuntimeClasspath project(it) }
|
||||
}
|
||||
def qualificationBootJar = tasks.register('qualificationBootJar', org.springframework.boot.gradle.tasks.bundling.BootJar) {
|
||||
group = 'build'
|
||||
description = 'Assembles the Compose qualification jar: the default composition plus every capability.'
|
||||
mainClass = 'dev.caskeleton.bootstrap.CaSkeletonApplication'
|
||||
classpath = sourceSets.main.output + qualificationClasspath
|
||||
resolvedArtifacts(qualificationClasspath.incoming.artifacts.resolvedArtifacts)
|
||||
targetJavaVersion = java.targetCompatibility
|
||||
archiveClassifier = 'qualification'
|
||||
}
|
||||
// Same staging path as stageDockerJar, so src/Dockerfile's extract step is one path; its
|
||||
// COMPOSITION build argument picks which of the two tasks writes it.
|
||||
tasks.register('stageQualificationDockerJar', Sync) {
|
||||
dependsOn qualificationBootJar
|
||||
from(qualificationBootJar.flatMap { it.archiveFile })
|
||||
into(layout.buildDirectory.dir('docker'))
|
||||
rename { 'application.jar' }
|
||||
}
|
||||
|
||||
// `ca.bootrun-dotenv` owns root working-directory and .env injection for bootRun.
|
||||
// Boot 4 initializes profiles/logging before spring-dotenv can reliably contribute these values.
|
||||
|
||||
@@ -325,14 +375,24 @@ tasks.register('stageDockerJar', Sync) {
|
||||
// separate, named task rather than a property: choosing a datastore whose schema comes from
|
||||
// somewhere else should look like a choice in the command somebody typed. It is not part of `check`,
|
||||
// `build`, or any release lane.
|
||||
//
|
||||
// H2 needs relational persistence, which this composition does not ship, so the task adds the
|
||||
// module to its own classpath. The artifact is unchanged; choosing H2 is still a choice in the
|
||||
// command somebody typed.
|
||||
def h2RunClasspath = compositionRuntimeClasspath('bootRunH2Classpath')
|
||||
dependencies {
|
||||
bootRunH2Classpath project(':adapter:outbound:persistence-jpa')
|
||||
}
|
||||
tasks.register('bootRunH2', org.springframework.boot.gradle.tasks.run.BootRun) {
|
||||
group = 'application'
|
||||
description = 'Runs the application on an in-memory H2, for development without a container. ' +
|
||||
'Not a release lane: H2 has no migration tree and Hibernate owns its schema.'
|
||||
classpath = sourceSets.main.runtimeClasspath
|
||||
classpath = sourceSets.main.output + h2RunClasspath
|
||||
mainClass = 'dev.caskeleton.bootstrap.CaSkeletonApplication'
|
||||
workingDir = rootProject.projectDir
|
||||
environment 'SPRING_PROFILES_ACTIVE', 'local'
|
||||
// A .env copied before the module became opt-in may still say false.
|
||||
environment 'APP_PERSISTENCE_JPA_ENABLED', 'true'
|
||||
environment 'APP_PERSISTENCE_VENDOR', 'h2'
|
||||
environment 'APP_DATASOURCE_URL',
|
||||
'jdbc:h2:mem:ca_skeleton;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE;DB_CLOSE_DELAY=-1'
|
||||
@@ -343,48 +403,6 @@ tasks.register('bootRunH2', org.springframework.boot.gradle.tasks.run.BootRun) {
|
||||
// and DB_CLOSE_DELAY=-1 above is what keeps the in-memory schema alive when the pool goes idle.
|
||||
environment 'APP_FLYWAY_ENABLED', 'false'
|
||||
environment 'APP_DATASOURCE_DDL_AUTO', 'create-drop'
|
||||
}
|
||||
|
||||
// Runtime project membership is derived directly by verifyRuntimeModuleRegistry from the
|
||||
// resolved runtimeClasspath. No generated snapshot is maintained here.
|
||||
|
||||
// The environment configuration contract. Owned here because the question it answers — what must a
|
||||
// deployment of this application be given — is the composition root's, and reached through
|
||||
// `configContractCheck` rather than through every leaf's `check`.
|
||||
|
||||
// The Build Composition contract.
|
||||
//
|
||||
// Three questions the repository kept answering with one answer:
|
||||
//
|
||||
// Does this repository support Fileserver? -> the capability catalog, modules.json
|
||||
// Does this build ship Fileserver? -> here
|
||||
// Is the shipped Fileserver switched on? -> app.fileserver-platform.enabled
|
||||
//
|
||||
// Only the second one is a dependency question, and until now nothing asked it. Lowering a
|
||||
// capability to `runtimeOnly` answered a different question — it left the compile classpath and
|
||||
// stayed in the jar — so "we do not ship it" and "we ship it switched off" were the same build.
|
||||
// They are not the same artifact, and they are not the same risk: code that is absent holds no
|
||||
// beans, opens no ports and carries no CVE, whatever its conditions say.
|
||||
//
|
||||
// Declared as an absence on `runtimeClasspath` rather than as a test, because `runtimeClasspath` is
|
||||
// what `bootJar` packages. `ca.dependency-policy` already resolves a named configuration and fails
|
||||
// on a forbidden coordinate, so this needs no verifier of its own — which is the point: a build
|
||||
// composition rule that required new build tooling would be trading one coupling for another.
|
||||
//
|
||||
// A fork that wants the capability adds the project dependency back and deletes the matching line
|
||||
// here, the same two-line act that object storage already documents in docs/capability-status.md.
|
||||
dependencyPolicy {
|
||||
absent 'dev.caskeleton:fileserver',
|
||||
'Fileserver is an optional capability. The minimal composition does not ship it; a deployment that wants it selects :composition:fileserver-platform.'
|
||||
absent 'dev.caskeleton:application-fileserver',
|
||||
'Fileserver use cases ship with the capability that drives them, not with every application.'
|
||||
// The capability is four modules, so the contract names four. Listing only the ones that were
|
||||
// easy to remove would have left the rule true and the artifact unchanged: `application-fileserver`
|
||||
// stayed on the classpath through `adapter:inbound:web`, `adapter:outbound:persistence-jpa` and
|
||||
// `adapter:outbound:identifier` long after the composition root stopped naming Fileserver, because
|
||||
// the capability's code was inside those three leaves rather than merely wired by bootstrap.
|
||||
absent 'dev.caskeleton:web-fileserver',
|
||||
'The Fileserver HTTP surface ships with the capability, not with every application that has an HTTP API.'
|
||||
absent 'dev.caskeleton:persistence-fileserver',
|
||||
'The Fileserver schema and stores ship with the capability, not with every application that has a database.'
|
||||
// The PostgreSQL idempotency store refuses H2, and a .env copied from .env.example may select it.
|
||||
environment 'APP_IDEMPOTENCY_PROVIDER', 'disabled'
|
||||
}
|
||||
|
||||
+333
-335
@@ -1,250 +1,248 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
aopalliance:aopalliance:1.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
at.yawk.lz4:lz4-java:1.10.1=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
aopalliance:aopalliance:1.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
at.yawk.lz4:lz4-java:1.10.1=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
biz.aQute.bnd:biz.aQute.bnd.annotation:7.1.0=architectureTestCompileClasspath,compileClasspath,integrationTestCompileClasspath,systemTestCompileClasspath,testCompileClasspath
|
||||
ch.qos.logback:logback-classic:1.5.38=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
ch.qos.logback:logback-core:1.5.38=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.approvaltests:approvaltests-util:31.0.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.approvaltests:approvaltests:31.0.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.ethlo.time:itu:1.14.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.21=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.fasterxml.jackson.core:jackson-core:2.21.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.fasterxml.jackson.core:jackson-databind:2.21.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.21.5=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.5=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.fasterxml.jackson:jackson-bom:2.21.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.fasterxml:classmate:1.7.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
ch.qos.logback:logback-classic:1.5.38=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
ch.qos.logback:logback-core:1.5.38=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.approvaltests:approvaltests-util:31.0.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.approvaltests:approvaltests:31.0.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.ethlo.time:itu:1.14.0=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.21=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.fasterxml.jackson.core:jackson-core:2.21.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.fasterxml.jackson.core:jackson-databind:2.21.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.21.5=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.5=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.fasterxml.jackson:jackson-bom:2.21.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.fasterxml:classmate:1.7.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.github.ben-manes.caffeine:caffeine:3.2.4=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.github.docker-java:docker-java-api:3.7.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.github.docker-java:docker-java-transport-zerodep:3.7.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.github.docker-java:docker-java-transport:3.7.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.github.docker-java:docker-java-api:3.7.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.github.docker-java:docker-java-transport-zerodep:3.7.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.github.docker-java:docker-java-transport:3.7.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.github.kevinstern:software-and-algorithms:1.0=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.github.luben:zstd-jni:1.5.6-10=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.github.luben:zstd-jni:1.5.6-10=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.github.spotbugs:spotbugs-annotations:4.10.2=spotbugs
|
||||
com.github.spotbugs:spotbugs:4.10.2=spotbugs
|
||||
com.github.stephenc.jcip:jcip-annotations:1.0-1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,spotbugs,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.google.android:annotations:4.1.1.4=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
com.google.api.grpc:proto-google-common-protos:2.41.0=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
com.github.stephenc.jcip:jcip-annotations:1.0-1=architectureTestRuntimeClasspath,qualificationRuntimeClasspath,spotbugs
|
||||
com.google.android:annotations:4.1.1.4=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.google.api.grpc:proto-google-common-protos:2.41.0=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.google.auto.service:auto-service-annotations:1.0.1=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.google.auto.value:auto-value-annotations:1.9=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.google.auto:auto-common:1.2.2=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.google.code.findbugs:jsr305:3.0.2=checkstyle,conditionalTransportBuildContractTestRuntimeClasspath,spotbugs
|
||||
com.google.code.gson:gson:2.13.2=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,spotbugs,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.google.code.findbugs:jsr305:3.0.2=architectureTestRuntimeClasspath,checkstyle,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath,spotbugs
|
||||
com.google.code.gson:gson:2.13.2=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,spotbugs,testRuntimeClasspath
|
||||
com.google.errorprone:error_prone_annotation:2.49.0=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.google.errorprone:error_prone_annotations:2.38.0=architectureTestCompileClasspath,compileClasspath,integrationTestCompileClasspath,systemTestCompileClasspath,testCompileClasspath
|
||||
com.google.errorprone:error_prone_annotations:2.41.0=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,spotbugs,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.google.errorprone:error_prone_annotations:2.41.0=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,spotbugs,testRuntimeClasspath
|
||||
com.google.errorprone:error_prone_annotations:2.47.0=checkstyle
|
||||
com.google.errorprone:error_prone_annotations:2.49.0=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.google.errorprone:error_prone_check_api:2.49.0=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.google.errorprone:error_prone_core:2.49.0=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.google.googlejavaformat:google-java-format:1.35.0=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.google.guava:failureaccess:1.0.2=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
com.google.guava:failureaccess:1.0.2=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.google.guava:failureaccess:1.0.3=annotationProcessor,architectureTestAnnotationProcessor,checkstyle,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.google.guava:guava:33.2.1-jre=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
com.google.guava:guava:33.2.1-jre=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.google.guava:guava:33.5.0-jre=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.google.guava:guava:33.6.0-jre=checkstyle
|
||||
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=annotationProcessor,architectureTestAnnotationProcessor,checkstyle,conditionalTransportBuildContractTestAnnotationProcessor,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.google.j2objc:j2objc-annotations:2.8=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=annotationProcessor,architectureTestAnnotationProcessor,architectureTestRuntimeClasspath,checkstyle,conditionalTransportBuildContractTestAnnotationProcessor,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestAnnotationProcessor,qualificationRuntimeClasspath,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.google.j2objc:j2objc-annotations:2.8=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.google.j2objc:j2objc-annotations:3.1=annotationProcessor,architectureTestAnnotationProcessor,checkstyle,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.google.protobuf:protobuf-java-util:3.25.5=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
com.google.protobuf:protobuf-java:3.25.5=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
com.google.protobuf:protobuf-java-util:3.25.5=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.google.protobuf:protobuf-java:3.25.5=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.google.protobuf:protobuf-java:4.33.2=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
com.graphql-java:graphql-java:25.0=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.graphql-java:java-dataloader:6.0.0=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.h2database:h2:2.4.240=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.graphql-java:graphql-java:25.0=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.graphql-java:java-dataloader:6.0.0=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.h2database:h2:2.4.240=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
com.h3xstream.findsecbugs:findsecbugs-plugin:1.14.0=spotbugsPlugins
|
||||
com.jayway.jsonpath:json-path:2.10.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.networknt:json-schema-validator:3.0.2=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.nimbusds:content-type:2.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.nimbusds:lang-tag:1.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.nimbusds:nimbus-jose-jwt:10.4=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.nimbusds:oauth2-oidc-sdk:11.26.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.networknt:json-schema-validator:3.0.2=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.nimbusds:content-type:2.3=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.nimbusds:lang-tag:1.7=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.nimbusds:nimbus-jose-jwt:10.4=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.nimbusds:oauth2-oidc-sdk:11.26.1=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
com.puppycrawl.tools:checkstyle:13.5.0=checkstyle
|
||||
com.squareup.okhttp3:okhttp-jvm:5.2.1=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.squareup.okhttp3:okhttp:5.2.1=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.squareup.okio:okio-jvm:3.16.1=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.squareup.okio:okio:3.16.1=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.sun.istack:istack-commons-runtime:4.1.2=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.tngtech.archunit:archunit-junit5-api:1.3.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.tngtech.archunit:archunit-junit5-engine-api:1.3.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.tngtech.archunit:archunit-junit5-engine:1.3.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.tngtech.archunit:archunit-junit5:1.3.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.tngtech.archunit:archunit:1.3.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.squareup.okhttp3:okhttp-jvm:5.2.1=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.squareup.okhttp3:okhttp:5.2.1=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.squareup.okio:okio-jvm:3.16.1=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.squareup.okio:okio:3.16.1=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.sun.istack:istack-commons-runtime:4.1.2=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
com.tngtech.archunit:archunit-junit5-api:1.3.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.tngtech.archunit:archunit-junit5-engine-api:1.3.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.tngtech.archunit:archunit-junit5-engine:1.3.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,testRuntimeClasspath
|
||||
com.tngtech.archunit:archunit-junit5:1.3.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.tngtech.archunit:archunit:1.3.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.vaadin.external.google:android-json:0.0.20131108.vaadin1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.zaxxer:HikariCP:7.0.2=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
com.zaxxer:HikariCP:7.0.2=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
commons-beanutils:commons-beanutils:1.11.0=checkstyle
|
||||
commons-codec:commons-codec:1.19.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
commons-codec:commons-codec:1.19.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
commons-collections:commons-collections:3.2.2=checkstyle
|
||||
commons-io:commons-io:2.20.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
commons-io:commons-io:2.20.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
commons-io:commons-io:2.21.0=spotbugs
|
||||
commons-logging:commons-logging:1.3.6=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
eu.rekawek.toxiproxy:toxiproxy-java:2.1.11=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
commons-logging:commons-logging:1.3.6=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
eu.rekawek.toxiproxy:toxiproxy-java:2.1.11=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,testRuntimeClasspath
|
||||
info.picocli:picocli:4.7.7=checkstyle
|
||||
io.cloudevents:cloudevents-api:4.0.1=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.cloudevents:cloudevents-core:4.0.1=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.github.cdimascio:dotenv-java:3.0.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.github.cdimascio:dotenv-java:3.0.0=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.github.eisop:dataflow-errorprone:3.41.0-eisop1=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
io.github.java-diff-utils:java-diff-utils:4.12=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
io.github.resilience4j:resilience4j-bulkhead:2.2.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.github.resilience4j:resilience4j-circuitbreaker:2.2.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.github.resilience4j:resilience4j-core:2.2.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.github.resilience4j:resilience4j-micrometer:2.2.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.github.resilience4j:resilience4j-ratelimiter:2.2.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.github.resilience4j:resilience4j-retry:2.2.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.github.resilience4j:resilience4j-timelimiter:2.2.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.grpc:grpc-api:1.68.1=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
io.grpc:grpc-context:1.68.1=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
io.grpc:grpc-core:1.68.1=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
io.grpc:grpc-netty-shaded:1.68.1=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
io.grpc:grpc-protobuf-lite:1.68.1=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
io.grpc:grpc-protobuf:1.68.1=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
io.grpc:grpc-services:1.68.1=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
io.grpc:grpc-stub:1.68.1=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
io.grpc:grpc-util:1.68.1=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
io.lettuce:lettuce-core:6.8.2.RELEASE=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.micrometer:context-propagation:1.2.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.micrometer:micrometer-commons:1.16.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.micrometer:micrometer-core:1.16.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.micrometer:micrometer-jakarta9:1.16.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.micrometer:micrometer-observation:1.16.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.micrometer:micrometer-registry-prometheus:1.16.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.micrometer:micrometer-tracing-bridge-otel:1.6.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.micrometer:micrometer-tracing:1.6.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.netty:netty-buffer:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-codec-base:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-codec-classes-quic:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-codec-compression:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-codec-dns:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-codec-http2:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-codec-http3:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-codec-http:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-codec-marshalling:4.2.17.Final=integrationTestRuntimeClasspath
|
||||
io.netty:netty-codec-native-quic:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-codec-protobuf:4.2.17.Final=integrationTestRuntimeClasspath
|
||||
io.netty:netty-codec-socks:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-codec:4.2.17.Final=integrationTestRuntimeClasspath
|
||||
io.netty:netty-common:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-handler-proxy:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-handler:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-resolver-dns-classes-macos:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-resolver-dns-native-macos:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-resolver-dns:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-resolver:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-transport-classes-epoll:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-transport-native-epoll:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-transport-native-unix-common:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.netty:netty-transport:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.opentelemetry.semconv:opentelemetry-semconv:1.37.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-api:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-common:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-context:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-exporter-common:1.55.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-exporter-otlp-common:1.55.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-exporter-otlp:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-exporter-sender-okhttp:1.55.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-extension-trace-propagators:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-sdk-common:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi:1.55.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-sdk-logs:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-sdk-metrics:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-sdk-trace:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-sdk:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.perfmark:perfmark-api:0.27.0=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
io.projectreactor.netty:reactor-netty-core:1.3.7=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.projectreactor.netty:reactor-netty-http:1.3.7=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.projectreactor:reactor-core:3.8.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.prometheus:prometheus-metrics-config:1.4.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.prometheus:prometheus-metrics-core:1.4.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.prometheus:prometheus-metrics-exposition-formats:1.4.3=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.prometheus:prometheus-metrics-exposition-textformats:1.4.3=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.prometheus:prometheus-metrics-model:1.4.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.prometheus:prometheus-metrics-tracer-common:1.4.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.smallrye:jandex:3.3.2=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.swagger.core.v3:swagger-annotations-jakarta:2.2.38=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.swagger.core.v3:swagger-core-jakarta:2.2.38=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.swagger.core.v3:swagger-models-jakarta:2.2.38=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
jakarta.activation:jakarta.activation-api:2.1.4=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
jakarta.annotation:jakarta.annotation-api:3.0.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
jakarta.inject:jakarta.inject-api:2.0.1=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
jakarta.mail:jakarta.mail-api:2.1.5=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
jakarta.persistence:jakarta.persistence-api:3.2.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
jakarta.servlet:jakarta.servlet-api:6.1.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
jakarta.transaction:jakarta.transaction-api:2.0.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
jakarta.validation:jakarta.validation-api:3.1.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.github.resilience4j:resilience4j-bulkhead:2.2.0=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.github.resilience4j:resilience4j-circuitbreaker:2.2.0=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.github.resilience4j:resilience4j-core:2.2.0=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.github.resilience4j:resilience4j-micrometer:2.2.0=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.github.resilience4j:resilience4j-ratelimiter:2.2.0=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.github.resilience4j:resilience4j-retry:2.2.0=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.github.resilience4j:resilience4j-timelimiter:2.2.0=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.grpc:grpc-api:1.68.1=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.grpc:grpc-context:1.68.1=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.grpc:grpc-core:1.68.1=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.grpc:grpc-netty-shaded:1.68.1=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.grpc:grpc-protobuf-lite:1.68.1=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.grpc:grpc-protobuf:1.68.1=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.grpc:grpc-services:1.68.1=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.grpc:grpc-stub:1.68.1=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.grpc:grpc-util:1.68.1=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.lettuce:lettuce-core:6.8.2.RELEASE=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.micrometer:context-propagation:1.2.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.micrometer:micrometer-commons:1.16.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.micrometer:micrometer-core:1.16.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.micrometer:micrometer-jakarta9:1.16.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.micrometer:micrometer-observation:1.16.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.micrometer:micrometer-registry-prometheus:1.16.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.micrometer:micrometer-tracing-bridge-otel:1.6.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.micrometer:micrometer-tracing:1.6.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.netty:netty-buffer:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-codec-base:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-codec-classes-quic:4.2.17.Final=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-codec-compression:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-codec-dns:4.2.17.Final=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-codec-http2:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-codec-http3:4.2.17.Final=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-codec-http:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-codec-marshalling:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-codec-native-quic:4.2.17.Final=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-codec-protobuf:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-codec-socks:4.2.17.Final=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-codec:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-common:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-handler-proxy:4.2.17.Final=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-handler:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-resolver-dns-classes-macos:4.2.17.Final=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-resolver-dns-native-macos:4.2.17.Final=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-resolver-dns:4.2.17.Final=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-resolver:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-transport-classes-epoll:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-transport-native-epoll:4.2.17.Final=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-transport-native-unix-common:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.netty:netty-transport:4.2.17.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.opentelemetry.semconv:opentelemetry-semconv:1.37.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-api:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-common:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-context:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-exporter-common:1.55.0=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-exporter-otlp-common:1.55.0=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-exporter-otlp:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-exporter-sender-okhttp:1.55.0=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-extension-trace-propagators:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-sdk-common:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi:1.55.0=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-sdk-logs:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-sdk-metrics:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-sdk-trace:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.opentelemetry:opentelemetry-sdk:1.55.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.perfmark:perfmark-api:0.27.0=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.projectreactor.netty:reactor-netty-core:1.3.7=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.projectreactor.netty:reactor-netty-http:1.3.7=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
io.projectreactor:reactor-core:3.8.7=architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
io.prometheus:prometheus-metrics-config:1.4.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.prometheus:prometheus-metrics-core:1.4.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.prometheus:prometheus-metrics-exposition-formats:1.4.3=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.prometheus:prometheus-metrics-exposition-textformats:1.4.3=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.prometheus:prometheus-metrics-model:1.4.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.prometheus:prometheus-metrics-tracer-common:1.4.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
io.smallrye:jandex:3.3.2=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.swagger.core.v3:swagger-annotations-jakarta:2.2.38=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.swagger.core.v3:swagger-core-jakarta:2.2.38=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
io.swagger.core.v3:swagger-models-jakarta:2.2.38=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
jakarta.activation:jakarta.activation-api:2.1.4=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
jakarta.annotation:jakarta.annotation-api:3.0.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
jakarta.inject:jakarta.inject-api:2.0.1=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
jakarta.mail:jakarta.mail-api:2.1.5=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
jakarta.persistence:jakarta.persistence-api:3.2.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
jakarta.servlet:jakarta.servlet-api:6.1.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,testRuntimeClasspath
|
||||
jakarta.transaction:jakarta.transaction-api:2.0.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
jakarta.validation:jakarta.validation-api:3.1.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
jakarta.websocket:jakarta.websocket-api:2.2.0=architectureTestCompileClasspath,integrationTestCompileClasspath,systemTestCompileClasspath,testCompileClasspath
|
||||
jakarta.ws.rs:jakarta.ws.rs-api:4.0.0=architectureTestCompileClasspath,integrationTestCompileClasspath,systemTestCompileClasspath,testCompileClasspath
|
||||
jakarta.xml.bind:jakarta.xml.bind-api:4.0.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
jakarta.xml.bind:jakarta.xml.bind-api:4.0.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
javax.inject:javax.inject:1=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
jaxen:jaxen:2.0.6=spotbugs
|
||||
me.paulschwarz:spring-dotenv:4.0.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
me.paulschwarz:spring-dotenv:4.0.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
net.bytebuddy:byte-buddy-agent:1.17.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
net.bytebuddy:byte-buddy:1.17.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestCompileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
net.java.dev.jna:jna:5.18.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
net.logstash.logback:logstash-logback-encoder:8.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
net.minidev:accessors-smart:2.6.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
net.minidev:json-smart:2.6.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
net.bytebuddy:byte-buddy:1.17.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestCompileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
net.java.dev.jna:jna:5.18.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
net.logstash.logback:logstash-logback-encoder:8.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
net.minidev:accessors-smart:2.6.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
net.minidev:json-smart:2.6.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
net.sf.saxon:Saxon-HE:12.9=checkstyle,spotbugs
|
||||
ognl:ognl:3.3.4=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.antlr:antlr4-runtime:4.13.2=architectureTestCompileClasspath,architectureTestRuntimeClasspath,checkstyle,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
ognl:ognl:3.3.4=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.antlr:antlr4-runtime:4.13.2=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,checkstyle,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.bcel:bcel:6.12.0=spotbugs
|
||||
org.apache.commons:commons-compress:1.28.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.commons:commons-lang3:3.20.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,checkstyle,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,spotbugs,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.commons:commons-compress:1.28.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.commons:commons-lang3:3.20.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,checkstyle,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,spotbugs,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.commons:commons-text:1.15.0=spotbugs
|
||||
org.apache.commons:commons-text:1.3=checkstyle
|
||||
org.apache.groovy:groovy-bom:5.0.8=architectureTestCompileClasspath,integrationTestCompileClasspath,systemTestCompileClasspath,testCompileClasspath
|
||||
org.apache.groovy:groovy:5.0.8=architectureTestCompileClasspath,integrationTestCompileClasspath,systemTestCompileClasspath,testCompileClasspath
|
||||
org.apache.httpcomponents.client5:httpclient5:5.5.2=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.apache.httpcomponents.core5:httpcore5-h2:5.3.6=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.apache.httpcomponents.core5:httpcore5:5.3.6=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.apache.httpcomponents:httpclient:4.5.13=checkstyle,integrationTestRuntimeClasspath
|
||||
org.apache.httpcomponents:httpcore:4.4.16=checkstyle,integrationTestRuntimeClasspath
|
||||
org.apache.kafka:kafka-clients:4.1.2=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.apache.logging.log4j:log4j-api:2.25.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,spotbugs,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.httpcomponents.client5:httpclient5:5.5.2=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.apache.httpcomponents.core5:httpcore5-h2:5.3.6=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.apache.httpcomponents.core5:httpcore5:5.3.6=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.apache.httpcomponents:httpclient:4.5.13=architectureTestRuntimeClasspath,checkstyle,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.apache.httpcomponents:httpcore:4.4.16=architectureTestRuntimeClasspath,checkstyle,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.apache.kafka:kafka-clients:4.1.2=architectureTestCompileClasspath,architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.apache.logging.log4j:log4j-api:2.25.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,spotbugs,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.logging.log4j:log4j-core:2.25.5=spotbugs
|
||||
org.apache.logging.log4j:log4j-to-slf4j:2.25.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.logging.log4j:log4j-to-slf4j:2.25.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.maven.doxia:doxia-core:1.12.0=checkstyle
|
||||
org.apache.maven.doxia:doxia-logging-api:1.12.0=checkstyle
|
||||
org.apache.maven.doxia:doxia-module-xdoc:1.12.0=checkstyle
|
||||
org.apache.maven.doxia:doxia-sink-api:1.12.0=checkstyle
|
||||
org.apache.tomcat.embed:tomcat-embed-core:11.0.24=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.tomcat.embed:tomcat-embed-el:11.0.24=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.tomcat.embed:tomcat-embed-websocket:11.0.24=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.tomcat.embed:tomcat-embed-core:11.0.24=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.tomcat.embed:tomcat-embed-el:11.0.24=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.tomcat.embed:tomcat-embed-websocket:11.0.24=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.apache.xbean:xbean-reflect:3.7=checkstyle
|
||||
org.apiguardian:apiguardian-api:1.1.2=architectureTestCompileClasspath,conditionalTransportBuildContractTestCompileClasspath,integrationTestCompileClasspath,systemTestCompileClasspath,testCompileClasspath
|
||||
org.aspectj:aspectjweaver:1.9.25.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.aspectj:aspectjweaver:1.9.25.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.assertj:assertj-core:3.27.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestCompileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.attoparser:attoparser:2.0.7.RELEASE=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.attoparser:attoparser:2.0.7.RELEASE=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.awaitility:awaitility:4.3.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.checkerframework:checker-qual:3.42.0=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
org.checkerframework:checker-qual:3.55.1=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.codehaus.mojo:animal-sniffer-annotations:1.24=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
org.checkerframework:checker-qual:3.55.1=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
org.codehaus.mojo:animal-sniffer-annotations:1.24=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.codehaus.plexus:plexus-classworlds:2.6.0=checkstyle
|
||||
org.codehaus.plexus:plexus-component-annotations:2.1.0=checkstyle
|
||||
org.codehaus.plexus:plexus-container-default:2.1.0=checkstyle
|
||||
org.codehaus.plexus:plexus-utils:3.3.0=checkstyle
|
||||
org.dom4j:dom4j:2.2.0=spotbugs
|
||||
org.eclipse.angus:angus-activation:2.0.3=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.eclipse.angus:angus-mail:2.0.5=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.flywaydb:flyway-core:11.14.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.flywaydb:flyway-database-postgresql:11.14.1=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.glassfish.jaxb:jaxb-core:4.0.9=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.glassfish.jaxb:jaxb-runtime:4.0.9=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.glassfish.jaxb:txw2:4.0.9=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.eclipse.angus:angus-activation:2.0.3=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
org.eclipse.angus:angus-mail:2.0.5=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.flywaydb:flyway-core:11.14.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.flywaydb:flyway-database-postgresql:11.14.1=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
org.glassfish.jaxb:jaxb-core:4.0.9=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
org.glassfish.jaxb:jaxb-runtime:4.0.9=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
org.glassfish.jaxb:txw2:4.0.9=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
org.hamcrest:hamcrest:3.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.hdrhistogram:HdrHistogram:2.2.2=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.hibernate.models:hibernate-models:1.0.1=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.hibernate.orm:hibernate-core:7.2.24.Final=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.hibernate.orm:hibernate-envers:7.2.24.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.hibernate.validator:hibernate-validator:9.0.1.Final=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.hdrhistogram:HdrHistogram:2.2.2=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.hibernate.models:hibernate-models:1.0.1=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
org.hibernate.orm:hibernate-core:7.2.24.Final=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.hibernate.orm:hibernate-envers:7.2.24.Final=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.hibernate.validator:hibernate-validator:9.0.1.Final=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.javassist:javassist:3.28.0-GA=checkstyle
|
||||
org.javassist:javassist:3.29.0-GA=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.jboss.logging:jboss-logging:3.6.3.Final=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.jetbrains.kotlin:kotlin-stdlib:2.2.21=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.jetbrains:annotations:13.0=productionRuntimeClasspath,runtimeClasspath
|
||||
org.jetbrains:annotations:17.0.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.jspecify:jspecify:1.0.1=annotationProcessor,architectureTestAnnotationProcessor,architectureTestCompileClasspath,architectureTestRuntimeClasspath,checkstyle,compileClasspath,conditionalTransportBuildContractTestAnnotationProcessor,conditionalTransportBuildContractTestCompileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestAnnotationProcessor,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestAnnotationProcessor,systemTestCompileClasspath,systemTestRuntimeClasspath,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath
|
||||
org.javassist:javassist:3.29.0-GA=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.jboss.logging:jboss-logging:3.6.3.Final=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.jetbrains.kotlin:kotlin-stdlib:2.2.21=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.jetbrains:annotations:13.0=bootRunH2Classpath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath
|
||||
org.jetbrains:annotations:17.0.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.jspecify:jspecify:1.0.1=annotationProcessor,architectureTestAnnotationProcessor,architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,checkstyle,compileClasspath,conditionalTransportBuildContractTestAnnotationProcessor,conditionalTransportBuildContractTestCompileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestAnnotationProcessor,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestAnnotationProcessor,systemTestCompileClasspath,systemTestRuntimeClasspath,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath
|
||||
org.junit.jupiter:junit-jupiter-api:6.0.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestCompileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.junit.jupiter:junit-jupiter-engine:6.0.3=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.junit.jupiter:junit-jupiter-params:6.0.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestCompileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
@@ -252,18 +250,18 @@ org.junit.jupiter:junit-jupiter:6.0.3=architectureTestCompileClasspath,architect
|
||||
org.junit.platform:junit-platform-commons:6.0.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestCompileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.junit.platform:junit-platform-engine:6.0.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.junit.platform:junit-platform-launcher:6.0.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.junit.platform:junit-platform-testkit:6.0.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.junit.platform:junit-platform-testkit:6.0.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.junit:junit-bom:6.0.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestCompileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.junit:junit-bom:6.1.0=spotbugs
|
||||
org.latencyutils:LatencyUtils:2.0.3=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.latencyutils:LatencyUtils:2.0.3=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.mockito:mockito-core:5.20.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,mockitoAgent,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.mockito:mockito-junit-jupiter:5.20.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.mongodb:bson-record-codec:5.6.5=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.mongodb:bson:5.6.5=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.mongodb:mongodb-driver-core:5.6.5=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.mongodb:mongodb-driver-sync:5.6.5=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.mongodb:bson-record-codec:5.6.5=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.mongodb:bson:5.6.5=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.mongodb:mongodb-driver-core:5.6.5=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.mongodb:mongodb-driver-sync:5.6.5=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.objenesis:objenesis:3.3=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.openapitools:jackson-databind-nullable:0.2.6=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.openapitools:jackson-databind-nullable:0.2.6=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.opentest4j:opentest4j:1.3.0=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestCompileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.osgi:org.osgi.annotation.bundle:2.0.0=architectureTestCompileClasspath,compileClasspath,integrationTestCompileClasspath,systemTestCompileClasspath,testCompileClasspath
|
||||
org.osgi:org.osgi.annotation.versioning:1.1.2=architectureTestCompileClasspath,compileClasspath,integrationTestCompileClasspath,systemTestCompileClasspath,testCompileClasspath
|
||||
@@ -274,160 +272,160 @@ org.ow2.asm:asm-commons:9.10.1=spotbugs
|
||||
org.ow2.asm:asm-tree:9.10.1=spotbugs
|
||||
org.ow2.asm:asm-util:9.10.1=spotbugs
|
||||
org.ow2.asm:asm:9.10.1=spotbugs
|
||||
org.ow2.asm:asm:9.7.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.ow2.asm:asm:9.7.1=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.pcollections:pcollections:4.0.1=annotationProcessor,architectureTestAnnotationProcessor,conditionalTransportBuildContractTestAnnotationProcessor,integrationTestAnnotationProcessor,systemTestAnnotationProcessor,testAnnotationProcessor
|
||||
org.postgresql:postgresql:42.7.13=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.reactivestreams:reactive-streams:1.0.4=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.postgresql:postgresql:42.7.13=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
org.reactivestreams:reactive-streams:1.0.4=architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
org.reflections:reflections:0.10.2=checkstyle
|
||||
org.rnorth.duct-tape:duct-tape:1.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.rnorth.duct-tape:duct-tape:1.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.skyscreamer:jsonassert:1.5.3=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.slf4j:jul-to-slf4j:2.0.18=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.slf4j:slf4j-api:2.0.18=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,spotbugs,spotbugsSlf4j,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.slf4j:jul-to-slf4j:2.0.18=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.slf4j:slf4j-api:2.0.18=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,spotbugs,spotbugsSlf4j,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.slf4j:slf4j-simple:2.0.17=spotbugsSlf4j
|
||||
org.slf4j:slf4j-simple:2.0.18=checkstyle
|
||||
org.springdoc:springdoc-openapi-starter-common:3.0.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springdoc:springdoc-openapi-starter-webmvc-api:3.0.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-actuator-autoconfigure:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-actuator:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-autoconfigure:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springdoc:springdoc-openapi-starter-common:3.0.0=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springdoc:springdoc-openapi-starter-webmvc-api:3.0.0=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-actuator-autoconfigure:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-actuator:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-autoconfigure:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-configuration-processor:4.0.8=annotationProcessor
|
||||
org.springframework.boot:spring-boot-data-commons:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-data-jpa-test:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-data-jpa:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-data-mongodb:4.0.8=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-flyway:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-graphql:4.0.8=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-health:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-hibernate:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-http-converter:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-jackson:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-jdbc-test:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-jdbc:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-jpa-test:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-jpa:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-mail:4.0.8=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-micrometer-metrics:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-micrometer-observation:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-mongodb:4.0.8=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-persistence:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-reactor:4.0.8=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-resttestclient:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-security-oauth2-resource-server:4.0.8=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-security:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-servlet:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-sql:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-actuator:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-data-jpa:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-data-mongodb:4.0.8=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-flyway:4.0.8=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-graphql:4.0.8=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-jackson-test:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-jackson:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-jdbc:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-json:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-logging:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-mail:4.0.8=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-micrometer-metrics:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-mongodb:4.0.8=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-oauth2-resource-server:4.0.8=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-security:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-data-commons:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-data-jpa-test:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-data-jpa:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-data-mongodb:4.0.8=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-flyway:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-graphql:4.0.8=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-health:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-hibernate:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-http-converter:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-jackson:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-jdbc-test:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-jdbc:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-jpa-test:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-jpa:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-mail:4.0.8=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-micrometer-metrics:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-micrometer-observation:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-mongodb:4.0.8=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-persistence:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-reactor:4.0.8=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-resttestclient:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-security-oauth2-resource-server:4.0.8=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-security:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-servlet:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-sql:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-actuator:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-data-jpa:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-data-mongodb:4.0.8=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-flyway:4.0.8=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-graphql:4.0.8=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-jackson-test:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-jackson:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-jdbc:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-json:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-logging:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-mail:4.0.8=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-micrometer-metrics:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-mongodb:4.0.8=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-oauth2-resource-server:4.0.8=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-security:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-test:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-tomcat-runtime:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-tomcat:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-validation:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-web:4.0.8=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-webmvc-test:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-webmvc:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-websocket:4.0.8=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-tomcat-runtime:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-tomcat:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-validation:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-web:4.0.8=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-webmvc-test:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-webmvc:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter-websocket:4.0.8=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-starter:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-test-autoconfigure:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-test:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-tomcat:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-transaction:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-validation:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-web-server:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-webmvc-test:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-webmvc:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-websocket:4.0.8=conditionalTransportBuildContractTestRuntimeClasspath
|
||||
org.springframework.boot:spring-boot:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-tomcat:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-transaction:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-validation:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-web-server:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-webmvc-test:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-webmvc:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.boot:spring-boot-websocket:4.0.8=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework.boot:spring-boot:4.0.8=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.cloud:spring-cloud-context:4.1.4=architectureTestCompileClasspath,integrationTestCompileClasspath,systemTestCompileClasspath,testCompileClasspath
|
||||
org.springframework.data:spring-data-commons:4.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.data:spring-data-jpa:4.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.data:spring-data-mongodb:5.0.7=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.graphql:spring-graphql:2.0.5=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.integration:spring-integration-core:7.0.6=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.integration:spring-integration-jdbc:7.0.6=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-config:7.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-core:7.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-crypto:7.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-oauth2-client:7.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-oauth2-core:7.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-oauth2-jose:7.0.7=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-oauth2-resource-server:7.0.7=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-test:7.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-web:7.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.session:spring-session-core:4.0.5=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-aop:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-aspects:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-beans:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-context-support:7.0.9=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-context:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-core:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-expression:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-jdbc:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-messaging:7.0.9=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-orm:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.data:spring-data-commons:4.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.data:spring-data-jpa:4.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.data:spring-data-mongodb:5.0.7=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework.graphql:spring-graphql:2.0.5=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework.integration:spring-integration-core:7.0.6=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.integration:spring-integration-jdbc:7.0.6=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-config:7.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-core:7.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-crypto:7.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-oauth2-client:7.0.7=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework.security:spring-security-oauth2-core:7.0.7=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-oauth2-jose:7.0.7=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-oauth2-resource-server:7.0.7=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-test:7.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.security:spring-security-web:7.0.7=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework.session:spring-session-core:4.0.5=architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-aop:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-aspects:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-beans:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-context-support:7.0.9=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework:spring-context:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-core:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-expression:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-jdbc:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-messaging:7.0.9=architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-orm:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-test:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-tx:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-web:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-webflux:7.0.9=architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-webmvc:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-websocket:7.0.9=architectureTestCompileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,systemTestCompileClasspath,testCompileClasspath
|
||||
org.testcontainers:testcontainers-database-commons:2.0.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.testcontainers:testcontainers-jdbc:2.0.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.testcontainers:testcontainers-junit-jupiter:2.0.5=architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.testcontainers:testcontainers-postgresql:2.0.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.testcontainers:testcontainers-toxiproxy:2.0.5=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.testcontainers:testcontainers:2.0.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.thymeleaf:thymeleaf:3.1.5.RELEASE=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.unbescape:unbescape:1.1.6.RELEASE=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.xerial.snappy:snappy-java:1.1.10.7=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-tx:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-web:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-webflux:7.0.9=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.springframework:spring-webmvc:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.springframework:spring-websocket:7.0.9=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,qualificationRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath
|
||||
org.testcontainers:testcontainers-database-commons:2.0.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.testcontainers:testcontainers-jdbc:2.0.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.testcontainers:testcontainers-junit-jupiter:2.0.5=architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.testcontainers:testcontainers-postgresql:2.0.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.testcontainers:testcontainers-toxiproxy:2.0.5=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,testRuntimeClasspath
|
||||
org.testcontainers:testcontainers:2.0.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.thymeleaf:thymeleaf:3.1.5.RELEASE=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.unbescape:unbescape:1.1.6.RELEASE=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.xerial.snappy:snappy-java:1.1.10.7=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
org.xmlresolver:xmlresolver:5.3.3=checkstyle,spotbugs
|
||||
org.xmlunit:xmlunit-core:2.10.4=architectureTestCompileClasspath,architectureTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
org.yaml:snakeyaml:2.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,compileClasspath,conditionalTransportBuildContractTestCompileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
redis.clients.authentication:redis-authx-core:0.1.1-beta2=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestRuntimeClasspath,testRuntimeClasspath
|
||||
software.amazon.awssdk:annotations:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:apache-client:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:arns:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:auth:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:aws-core:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:aws-query-protocol:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:aws-xml-protocol:2.30.0=integrationTestRuntimeClasspath
|
||||
org.yaml:snakeyaml:2.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,compileClasspath,conditionalTransportBuildContractTestCompileClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
redis.clients.authentication:redis-authx-core:0.1.1-beta2=architectureTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:annotations:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:apache-client:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:arns:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:auth:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:aws-core:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:aws-query-protocol:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:aws-xml-protocol:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:bom:2.30.0=integrationTestCompileClasspath,integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:checksums-spi:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:checksums:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:crt-core:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:endpoints-spi:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:http-auth-aws-eventstream:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:http-auth-aws:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:http-auth-spi:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:http-auth:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:http-client-spi:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:identity-spi:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:json-utils:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:metrics-spi:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:netty-nio-client:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:profiles:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:protocol-core:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:regions:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:retries-spi:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:retries:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:s3:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:sdk-core:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:third-party-jackson-core:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.awssdk:utils:2.30.0=integrationTestRuntimeClasspath
|
||||
software.amazon.eventstream:eventstream:1.0.1=integrationTestRuntimeClasspath
|
||||
tools.jackson.core:jackson-core:3.1.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
tools.jackson.core:jackson-databind:3.1.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
tools.jackson:jackson-bom:3.1.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
software.amazon.awssdk:checksums-spi:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:checksums:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:crt-core:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:endpoints-spi:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:http-auth-aws-eventstream:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:http-auth-aws:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:http-auth-spi:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:http-auth:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:http-client-spi:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:identity-spi:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:json-utils:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:metrics-spi:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:netty-nio-client:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:profiles:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:protocol-core:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:regions:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:retries-spi:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:retries:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:s3:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:sdk-core:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:third-party-jackson-core:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.awssdk:utils:2.30.0=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
software.amazon.eventstream:eventstream:1.0.1=architectureTestRuntimeClasspath,integrationTestRuntimeClasspath,qualificationRuntimeClasspath
|
||||
tools.jackson.core:jackson-core:3.1.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
tools.jackson.core:jackson-databind:3.1.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
tools.jackson:jackson-bom:3.1.5=architectureTestCompileClasspath,architectureTestRuntimeClasspath,bootRunH2Classpath,conditionalTransportBuildContractTestRuntimeClasspath,integrationTestCompileClasspath,integrationTestRuntimeClasspath,productionRuntimeClasspath,qualificationRuntimeClasspath,runtimeClasspath,systemTestCompileClasspath,systemTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
|
||||
empty=developmentOnly,testAndDevelopmentOnly
|
||||
|
||||
+6
-9
@@ -104,12 +104,14 @@ class AdapterBoundaryArchitectureTest {
|
||||
.or(
|
||||
JavaClass.Predicates.resideInAPackage("..adapter.outbound..")
|
||||
.and(
|
||||
JavaClass.Predicates.resideOutsideOfPackage(
|
||||
"..adapter.outbound.persistence.."))))
|
||||
JavaClass.Predicates.resideOutsideOfPackages(
|
||||
"..adapter.outbound.persistence..",
|
||||
"..adapter.outbound.support.."))))
|
||||
.as(
|
||||
"persistence-jpa is an internal (driven) outbound adapter — it must not reach into "
|
||||
+ "the web adapter, sibling outbound adapters, or the composition root "
|
||||
+ "(intra-persistence references are allowed).")
|
||||
+ "(intra-persistence references and the registered adapter:outbound:support "
|
||||
+ "base — typed startup failures, the module-defaults loader — are allowed).")
|
||||
.allowEmptyShould(true);
|
||||
|
||||
// ---- persistence-rdbms/no-sql-extensibility (RDBMS base vendor-neutrality) ----
|
||||
@@ -478,20 +480,15 @@ class AdapterBoundaryArchitectureTest {
|
||||
"observation",
|
||||
"policy",
|
||||
"provider",
|
||||
"push",
|
||||
"security",
|
||||
"template")),
|
||||
Map.entry("contact", Set.of("api")),
|
||||
Map.entry("email", Set.of("api")),
|
||||
Map.entry("inbox", Set.of("api")),
|
||||
Map.entry("observation", Set.of("api")),
|
||||
Map.entry("policy", Set.of("api", "contact", "provider")),
|
||||
Map.entry("provider", Set.of("api", "callback", "security", "template")),
|
||||
Map.entry("push", Set.of("api")),
|
||||
Map.entry("security", Set.of("api", "contact")),
|
||||
Map.entry("sms", Set.of("api", "contact")),
|
||||
Map.entry("template", Set.of("api")),
|
||||
Map.entry("webpush", Set.of("api")));
|
||||
Map.entry("template", Set.of("api")));
|
||||
|
||||
private static final String NOTIFICATION_PLATFORM_ROOT =
|
||||
"dev.caskeleton.application.notification.platform";
|
||||
|
||||
-36
@@ -1,6 +1,5 @@
|
||||
package dev.caskeleton.bootstrap.architecture;
|
||||
|
||||
import static com.tngtech.archunit.core.domain.properties.HasName.Predicates.name;
|
||||
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.classes;
|
||||
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.methods;
|
||||
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.noClasses;
|
||||
@@ -93,41 +92,6 @@ class ApplicationBoundaryArchitectureTest {
|
||||
+ "outbox status models mean opposite things under the same names")
|
||||
.allowEmptyShould(true);
|
||||
|
||||
/**
|
||||
* The two notification models must not learn about each other.
|
||||
*
|
||||
* <p>NOTIF-ADR-005 makes the platform canonical and keeps R1's hundred public types in place
|
||||
* without new consumers. Nothing enforced that: {@code Channel}, plan, dispatch and
|
||||
* receipt/evidence exist in both namespaces with the same simple names, so a new consumer picks
|
||||
* one by import order and the two models drift apart while both claim to be current.
|
||||
*
|
||||
* <p>The exception is a single compatibility package. If a bridge is ever needed it goes there,
|
||||
* and only there — an exception in several places is not an exception, it is the second canonical
|
||||
* model the ADR exists to prevent.
|
||||
*/
|
||||
@ArchTest
|
||||
static final ArchRule NOTIFICATION_R1_AND_PLATFORM_DO_NOT_DEPEND_ON_EACH_OTHER =
|
||||
noClasses()
|
||||
.that()
|
||||
.resideInAPackage("dev.caskeleton.application.notification.platform..")
|
||||
.and()
|
||||
.resideOutsideOfPackage("dev.caskeleton.application.notification.compatibility.r1..")
|
||||
.should()
|
||||
.dependOnClassesThat(
|
||||
new com.tngtech.archunit.base.DescribedPredicate<>(
|
||||
"reside in the R1 notification namespace") {
|
||||
@Override
|
||||
public boolean test(com.tngtech.archunit.core.domain.JavaClass candidate) {
|
||||
String name = candidate.getPackageName();
|
||||
return name.equals("dev.caskeleton.application.notification");
|
||||
}
|
||||
})
|
||||
.because(
|
||||
"NOTIFICATION_R1_AND_PLATFORM_DO_NOT_DEPEND_ON_EACH_OTHER: NOTIF-ADR-005 makes the "
|
||||
+ "platform canonical; a bridge belongs in "
|
||||
+ "dev.caskeleton.application.notification.compatibility.r1 and nowhere else")
|
||||
.allowEmptyShould(true);
|
||||
|
||||
/**
|
||||
* An orchestration entrypoint, recognised by what it does rather than by what it implements.
|
||||
*
|
||||
|
||||
-1
@@ -126,7 +126,6 @@ class ArchRuleDiscoveryContractTest {
|
||||
"NOTIFICATION_CONTRACT_HAS_NO_DIAGNOSTIC_FRAMEWORK",
|
||||
"NOTIFICATION_PLATFORM_PACKAGES_ARE_ACYCLIC",
|
||||
"NOTIFICATION_PLATFORM_PACKAGE_EDGES_ARE_REGISTERED",
|
||||
"NOTIFICATION_R1_AND_PLATFORM_DO_NOT_DEPEND_ON_EACH_OTHER",
|
||||
"NO_BIGDECIMAL_DOUBLE_CONSTRUCTOR",
|
||||
"NO_INHERITABLE_THREAD_LOCAL",
|
||||
"NO_JACKSON_ENABLE_DEFAULT_TYPING_CALL",
|
||||
|
||||
+5
-27
@@ -2,7 +2,6 @@ package dev.caskeleton.bootstrap.architecture;
|
||||
|
||||
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.noClasses;
|
||||
|
||||
import com.tngtech.archunit.base.DescribedPredicate;
|
||||
import com.tngtech.archunit.core.domain.JavaClass;
|
||||
import com.tngtech.archunit.junit.AnalyzeClasses;
|
||||
import com.tngtech.archunit.junit.ArchTest;
|
||||
@@ -33,43 +32,22 @@ import com.tngtech.archunit.lang.ArchRule;
|
||||
*
|
||||
* <p>Secret resolution now follows the same boundary. {@code SecretSourcePort} is application-owned
|
||||
* and the Spring Environment implementation lives in {@code adapter:outbound:support}; bootstrap
|
||||
* selects that implementation but does not implement the port. The explicit decorator allowlist
|
||||
* below is therefore the only production exception to this rule.
|
||||
* selects that implementation but does not implement the port.
|
||||
*
|
||||
* <p>The rule has no exceptions any more. Its one allowlisted class, the metering decorator {@code
|
||||
* MeteredDistributedLockPort}, moved to {@code adapter:outbound:persistence-jpa} with the JDBC lock
|
||||
* it decorates.
|
||||
*/
|
||||
@AnalyzeClasses(
|
||||
packages = "dev.caskeleton.bootstrap",
|
||||
importOptions = ProductionClassImportOption.class)
|
||||
class CompositionRootBoundaryArchitectureTest {
|
||||
|
||||
/**
|
||||
* {@code MeteredDistributedLockPort} — a decorator, not an adapter.
|
||||
*
|
||||
* <p>It implements {@code DistributedLockPort} in order to wrap another implementation of it with
|
||||
* metering, and "which ports are metered" is an assembly decision, which is this leaf's job. The
|
||||
* argument on the other side is real — metering is a cross-cutting concern like retry or caching,
|
||||
* and those collecting here is how a composition root becomes large again — so the threshold is
|
||||
* stated rather than left to taste: <em>at the second such decorator, they move to {@code
|
||||
* adapter:outbound:support} together.</em> One is a special case; two is a category.
|
||||
*/
|
||||
private static final String METERED_DISTRIBUTED_LOCK_PORT =
|
||||
"dev.caskeleton.bootstrap.autoconfigure.lock.MeteredDistributedLockPort";
|
||||
|
||||
private static final DescribedPredicate<JavaClass> ALLOWLISTED =
|
||||
new DescribedPredicate<>("allowlisted from the composition-root boundary") {
|
||||
@Override
|
||||
public boolean test(JavaClass candidate) {
|
||||
String name = candidate.getFullName();
|
||||
return name.equals(METERED_DISTRIBUTED_LOCK_PORT)
|
||||
|| name.startsWith(METERED_DISTRIBUTED_LOCK_PORT + "$");
|
||||
}
|
||||
};
|
||||
|
||||
@ArchTest
|
||||
static final ArchRule COMPOSITION_ROOT_DOES_NOT_IMPLEMENT_APPLICATION_OR_DOMAIN_PORTS =
|
||||
noClasses()
|
||||
.that()
|
||||
.resideInAPackage("dev.caskeleton.bootstrap..")
|
||||
.and(DescribedPredicate.not(ALLOWLISTED))
|
||||
.should()
|
||||
.implement(
|
||||
JavaClass.Predicates.resideInAnyPackage(
|
||||
|
||||
+8
-9
@@ -67,12 +67,6 @@ class ForbiddenApiArchitectureTest {
|
||||
// tenancy.shared package of its own and only began tripping this rule when that leaf
|
||||
// joined the composition root's analysis scope.
|
||||
"dev.caskeleton.adapter.outbound.mongo.advanced.tenancy.shared",
|
||||
// The registered master switches and their strict parse. Operational rather than
|
||||
// domain:
|
||||
// it names environment keys and rejects unreadable values, and it lives here because
|
||||
// the environment post-processor needs it before a Spring context exists, so it must
|
||||
// not depend on Spring.
|
||||
"dev.caskeleton.shared.activation",
|
||||
// feature-authentication-authorization-contract: the Permission
|
||||
// (resource:action) value object is a Java-only operational
|
||||
// authorization contract consumed by AuthorizationPort.
|
||||
@@ -566,16 +560,21 @@ class ForbiddenApiArchitectureTest {
|
||||
noClasses()
|
||||
.that()
|
||||
.resideInAPackage("dev.caskeleton..")
|
||||
// The WebSocket capability leaf is the one module whose job this is. It entered this
|
||||
// import when the suite started seeing every module rather than the default composition.
|
||||
.and()
|
||||
.resideOutsideOfPackage("dev.caskeleton.adapter.inbound.websocket..")
|
||||
.should()
|
||||
.dependOnClassesThat()
|
||||
.resideInAnyPackage("org.springframework.web.socket..", "jakarta.websocket..")
|
||||
.as(
|
||||
"D3 NO_WEBSOCKET_HANDLER: production code must not depend on "
|
||||
"D3 NO_WEBSOCKET_HANDLER: production code outside the WebSocket capability leaf "
|
||||
+ "(adapter.inbound.websocket) must not depend on "
|
||||
+ "org.springframework.web.socket.. or jakarta.websocket.. — "
|
||||
+ "these cover the spring-websocket handler/STOMP surfaces and "
|
||||
+ "Jakarta @ServerEndpoint (RFC 6455 full-duplex WebSocket model). "
|
||||
+ "Full-duplex streaming is not supported in ca-skeleton "
|
||||
+ "(feature-streaming-response-contract D3). Production code is "
|
||||
+ "Full-duplex streaming belongs to that selectable capability, not to the web "
|
||||
+ "platform (feature-streaming-response-contract D3). Production code is "
|
||||
+ "scanned only under ImportOption.DoNotIncludeTests.")
|
||||
.allowEmptyShould(true);
|
||||
|
||||
|
||||
+4
-4
@@ -35,15 +35,15 @@ import org.junit.jupiter.api.Test;
|
||||
class GraphQlInboundOwnershipBoundaryTest {
|
||||
|
||||
/** Inbound-owned types that no other leaf may name. */
|
||||
private static final List<String> INBOUND_OWNED =
|
||||
List.of("GraphQlPersistedOperationRegistry", "GraphQlRequestContext");
|
||||
// GraphQlPersistedOperationRegistry left this list when advanced/persisted was deleted
|
||||
// (2026-09-25): an SPI with no implementation anywhere is not a boundary worth guarding.
|
||||
private static final List<String> INBOUND_OWNED = List.of("GraphQlRequestContext");
|
||||
|
||||
/** The one place they belong: the GraphQL adapter's own production sources. */
|
||||
private static final String GRAPHQL_SOURCE = "/src/adapter/inbound/graphql/src/main/java/";
|
||||
|
||||
@Test
|
||||
@DisplayName(
|
||||
"no leaf outside the GraphQL adapter names its context or its persisted-operation SPI")
|
||||
@DisplayName("no leaf outside the GraphQL adapter names its request context")
|
||||
void inboundOwnedTypesStayInsideTheLeaf() {
|
||||
List<String> violations = new ArrayList<>();
|
||||
|
||||
|
||||
+18
-4
@@ -12,6 +12,11 @@ import java.util.List;
|
||||
/**
|
||||
* The composition root's startup failures must carry an exit code (BOOT-003).
|
||||
*
|
||||
* <p>The failure machinery ({@code StartupFailures}, {@code StartupErrorCode}) lives in {@code
|
||||
* adapter:outbound:support} now, so capability modules can raise it without depending on the
|
||||
* composition root; the rule covers the composition root and the startup guards that moved with
|
||||
* their capability.
|
||||
*
|
||||
* <p>{@code StartupErrorCode} classifies a failed start into four causes and gives each one a
|
||||
* sysexits exit status — 78 for a configuration error, 70 for a failed migration, 71 for a profile
|
||||
* conflict, 72 for a required adapter that is off. That status only reaches the JVM because {@code
|
||||
@@ -43,7 +48,13 @@ import java.util.List;
|
||||
* with a reviewer attached.
|
||||
*/
|
||||
@AnalyzeClasses(
|
||||
packages = "dev.caskeleton.bootstrap",
|
||||
packages = {
|
||||
"dev.caskeleton.bootstrap",
|
||||
// The startup guards that moved out of the composition root keep the same contract: the
|
||||
// relational ones live with persistence-jpa, the failure machinery with the support leaf.
|
||||
"dev.caskeleton.adapter.outbound.persistence.startup",
|
||||
"dev.caskeleton.adapter.outbound.support.startup"
|
||||
},
|
||||
importOptions = ProductionClassImportOption.class)
|
||||
class StartupFailureContractArchitectureTest {
|
||||
|
||||
@@ -77,7 +88,7 @@ class StartupFailureContractArchitectureTest {
|
||||
* require.
|
||||
*/
|
||||
private static final String STARTUP_FAILURES =
|
||||
"dev.caskeleton.bootstrap.runtime.startup.StartupFailures";
|
||||
"dev.caskeleton.adapter.outbound.support.startup.StartupFailures";
|
||||
|
||||
/**
|
||||
* {@code StartupFailureException} — the typed base class. Its constructor delegates to {@code
|
||||
@@ -87,7 +98,7 @@ class StartupFailureContractArchitectureTest {
|
||||
* passing across this migration.
|
||||
*/
|
||||
private static final String STARTUP_FAILURE_EXCEPTION =
|
||||
"dev.caskeleton.bootstrap.runtime.startup.StartupFailureException";
|
||||
"dev.caskeleton.adapter.outbound.support.startup.StartupFailureException";
|
||||
|
||||
/**
|
||||
* Matched by prefix rather than exact name, so a nested type is covered by its outer class's
|
||||
@@ -116,7 +127,10 @@ class StartupFailureContractArchitectureTest {
|
||||
static final ArchRule STARTUP_FAILURES_ARE_RAISED_THROUGH_THE_TYPED_FACTORY =
|
||||
noClasses()
|
||||
.that()
|
||||
.resideInAPackage("dev.caskeleton.bootstrap..")
|
||||
.resideInAnyPackage(
|
||||
"dev.caskeleton.bootstrap..",
|
||||
"dev.caskeleton.adapter.outbound.persistence.startup..",
|
||||
"dev.caskeleton.adapter.outbound.support.startup..")
|
||||
.and(DescribedPredicate.not(ALLOWLISTED))
|
||||
.should()
|
||||
.callConstructor(IllegalStateException.class, String.class)
|
||||
|
||||
+71
-82
@@ -3,107 +3,104 @@ package dev.caskeleton.bootstrap.transport;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Enumeration;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Pattern;
|
||||
import org.junit.jupiter.api.DisplayName;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* Conditional transports are verified against the real composition root, not a duplicate registry
|
||||
* membership list. Build-only transports must be absent from app-bootstrap dependencies; GraphQL is
|
||||
* shipped deliberately and is controlled by its master switch. Runtime behavior is proven by the
|
||||
* named compose qualification lanes.
|
||||
* The optional inbound transports are capabilities a service selects with one line.
|
||||
*
|
||||
* <p>Each one is absent from the default composition, offered in {@code app-bootstrap/build.gradle}
|
||||
* as one commented {@code runtimeOnly} line, and — on this qualification classpath, which selects
|
||||
* all three — registered by its own {@code AutoConfiguration.imports}, so uncommenting the line is
|
||||
* the whole act of turning it on.
|
||||
*/
|
||||
class ConditionalTransportBuildContractTest {
|
||||
|
||||
/** Transports that must not reach any runtime: no membership, and no composition-root edge. */
|
||||
private static final Map<String, String> BUILD_ONLY_TRANSPORTS =
|
||||
private static final String IMPORTS =
|
||||
"META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports";
|
||||
|
||||
/** Gradle path to the auto-configuration the module registers for itself. */
|
||||
private static final Map<String, String> TRANSPORTS =
|
||||
Map.of(
|
||||
"adapter-inbound-grpc",
|
||||
":adapter:inbound:graphql",
|
||||
"dev.caskeleton.adapter.inbound.graphql.autoconfigure.GraphQlRootAutoConfiguration",
|
||||
":adapter:inbound:grpc",
|
||||
"dev.caskeleton.adapter.inbound.grpc.GrpcServerConfig",
|
||||
"adapter-inbound-websocket",
|
||||
":adapter:inbound:websocket",
|
||||
"dev.caskeleton.adapter.inbound.websocket.stomp.WebSocketConfig");
|
||||
|
||||
/** Transports that ship on the one bootJar and are decided by a master switch. */
|
||||
private static final Map<String, String> SWITCH_GATED_TRANSPORTS =
|
||||
Map.of(
|
||||
"adapter-inbound-graphql",
|
||||
"dev.caskeleton.adapter.inbound.graphql.HealthGraphqlController");
|
||||
|
||||
@Test
|
||||
@DisplayName("build-only transports are absent from the production composition")
|
||||
void buildOnlyTransportsAreAbsentFromProductionComposition() throws IOException {
|
||||
String bootstrapBuild =
|
||||
Files.readString(repositoryRoot().resolve("src/app-bootstrap/build.gradle"));
|
||||
BUILD_ONLY_TRANSPORTS.forEach(
|
||||
(moduleId, typeName) -> {
|
||||
String gradlePath =
|
||||
switch (moduleId) {
|
||||
case "adapter-inbound-grpc" -> ":adapter:inbound:grpc";
|
||||
case "adapter-inbound-websocket" -> ":adapter:inbound:websocket";
|
||||
default -> throw new IllegalArgumentException(moduleId);
|
||||
};
|
||||
assertThat(productionProjectDependency(bootstrapBuild, gradlePath))
|
||||
.as("%s is qualification-only and must not ship in app-bootstrap", moduleId)
|
||||
.isFalse();
|
||||
assertThatCodeLoads(typeName);
|
||||
});
|
||||
@DisplayName("no optional transport ships in the default composition")
|
||||
void noOptionalTransportShipsInTheDefaultComposition() throws IOException {
|
||||
String bootstrapBuild = bootstrapBuild();
|
||||
|
||||
TRANSPORTS
|
||||
.keySet()
|
||||
.forEach(
|
||||
gradlePath ->
|
||||
assertThat(productionProjectDependency(bootstrapBuild, gradlePath))
|
||||
.as(
|
||||
"%s is a capability a service selects; it must not ship by default",
|
||||
gradlePath)
|
||||
.isFalse());
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("GraphQL is a real composition dependency and its master switch decides activation")
|
||||
void switchGatedTransportIsARealDependencyWithASwitch() throws IOException {
|
||||
String bootstrapBuild =
|
||||
Files.readString(repositoryRoot().resolve("src/app-bootstrap/build.gradle"));
|
||||
assertThat(bootstrapBuild).contains("project(':adapter:inbound:graphql')");
|
||||
SWITCH_GATED_TRANSPORTS
|
||||
.values()
|
||||
.forEach(ConditionalTransportBuildContractTest::assertThatCodeLoads);
|
||||
assertThat(shippedApplicationYaml()).contains("classpath:config/graphql.yml");
|
||||
assertThat(shippedGraphQlYaml())
|
||||
.contains("${APP_GRAPHQL_ENABLED:false}")
|
||||
.contains("${APP_GRAPHQL_DEPLOYMENT_MODE:}")
|
||||
.contains("${APP_GRAPHQL_EXECUTION_PROFILE:BLOCKING_MVC}")
|
||||
.contains("${APP_GRAPHQL_VALIDATION_POLICY_VERSION:v1}")
|
||||
.contains("${APP_GRAPHQL_OBSERVED_OPERATION_NAMES:}")
|
||||
.contains("${APP_GRAPHQL_GRAPHIQL_ENABLED:false}")
|
||||
.contains("${APP_GRAPHQL_INTROSPECTION_ENABLED:false}")
|
||||
.contains("${APP_GRAPHQL_MAXIMUM_PAGE_SIZE:100}")
|
||||
.contains("${APP_GRAPHQL_MAXIMUM_COMPLEXITY:10000}")
|
||||
.contains("${APP_GRAPHQL_PREPARSED_CACHE_ENTRIES:1000}")
|
||||
.contains("${APP_GRAPHQL_PREPARSED_CACHE_WEIGHT:10000000}")
|
||||
.contains("${APP_GRAPHQL_PREPARSED_CACHE_EXPIRE_AFTER_ACCESS:30m}")
|
||||
.doesNotContain("APP_GRAPHQL_CURSOR_KEY_IDS");
|
||||
@DisplayName("each transport is offered as one commented runtimeOnly line")
|
||||
void eachTransportIsOfferedAsOneLine() throws IOException {
|
||||
String bootstrapBuild = bootstrapBuild();
|
||||
|
||||
TRANSPORTS
|
||||
.keySet()
|
||||
.forEach(
|
||||
gradlePath ->
|
||||
assertThat(bootstrapBuild)
|
||||
.as("uncommenting one line is how a service selects %s", gradlePath)
|
||||
.contains("// runtimeOnly project('" + gradlePath + "')"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("the off-state evidence this contract relies on is named, not assumed")
|
||||
void theOffStateEvidenceIsNamed() throws IOException {
|
||||
String lanes =
|
||||
Files.readString(
|
||||
repositoryRoot().resolve("src/config/runtime/compose-profile-contracts.json"));
|
||||
@DisplayName("each transport registers itself, so the one line is enough")
|
||||
void eachTransportRegistersItsOwnAutoConfiguration() throws IOException {
|
||||
List<String> registered = registeredAutoConfigurations();
|
||||
|
||||
assertThat(lanes)
|
||||
.as(
|
||||
"a switch-gated transport's real proof is a running application with the switch off and"
|
||||
+ " the route absent; this file is where those lanes are declared, and they are "
|
||||
+ "blocking")
|
||||
.contains("\"off-local\"")
|
||||
.contains("\"off-dev\"")
|
||||
.contains("\"off-prod\"")
|
||||
.contains("\"local-graphql\"");
|
||||
assertThat(registered).containsAll(TRANSPORTS.values());
|
||||
for (String root : TRANSPORTS.values()) {
|
||||
try {
|
||||
assertThat(Class.forName(root)).isNotNull();
|
||||
} catch (ClassNotFoundException missing) {
|
||||
throw new AssertionError("missing opt-in transport type " + root, missing);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static String shippedApplicationYaml() throws IOException {
|
||||
return Files.readString(
|
||||
repositoryRoot().resolve("src/app-bootstrap/src/main/resources/application.yml"));
|
||||
private static List<String> registeredAutoConfigurations() throws IOException {
|
||||
List<String> names = new ArrayList<>();
|
||||
Enumeration<java.net.URL> files =
|
||||
ConditionalTransportBuildContractTest.class.getClassLoader().getResources(IMPORTS);
|
||||
while (files.hasMoreElements()) {
|
||||
try (InputStream in = files.nextElement().openStream()) {
|
||||
new String(in.readAllBytes(), StandardCharsets.UTF_8)
|
||||
.lines()
|
||||
.map(String::trim)
|
||||
.filter(line -> !line.isEmpty() && !line.startsWith("#"))
|
||||
.forEach(names::add);
|
||||
}
|
||||
}
|
||||
return names;
|
||||
}
|
||||
|
||||
private static String shippedGraphQlYaml() throws IOException {
|
||||
return Files.readString(
|
||||
repositoryRoot().resolve("src/app-bootstrap/src/main/resources/config/graphql.yml"));
|
||||
private static String bootstrapBuild() throws IOException {
|
||||
return Files.readString(repositoryRoot().resolve("src/app-bootstrap/build.gradle"));
|
||||
}
|
||||
|
||||
private static boolean productionProjectDependency(String buildScript, String gradlePath) {
|
||||
@@ -116,14 +113,6 @@ class ConditionalTransportBuildContractTest {
|
||||
return productionDependency.matcher(buildScript).find();
|
||||
}
|
||||
|
||||
private static void assertThatCodeLoads(String typeName) {
|
||||
try {
|
||||
assertThat(Class.forName(typeName)).isNotNull();
|
||||
} catch (ClassNotFoundException exception) {
|
||||
throw new AssertionError("missing opt-in qualification type " + typeName, exception);
|
||||
}
|
||||
}
|
||||
|
||||
private static Path repositoryRoot() {
|
||||
Path candidate = Path.of("").toAbsolutePath();
|
||||
while (candidate != null
|
||||
|
||||
+7
-1
@@ -99,6 +99,8 @@ import tools.jackson.databind.ObjectMapper;
|
||||
"spring.jpa.open-in-view=false",
|
||||
"spring.jpa.hibernate.ddl-auto=none",
|
||||
"app.fileserver-platform.enabled=true",
|
||||
// The lane also selects object storage, which is on when present; this test is not about it.
|
||||
"app.object-storage.enabled=false",
|
||||
"app.fileserver-platform.instance-id=round-trip-node",
|
||||
"app.fileserver-platform.security.access-policy=role-based",
|
||||
// Metrics are a separate concern with their own tests; leaving them off keeps a MeterRegistry
|
||||
@@ -406,7 +408,11 @@ class FileserverCompositionIntegrationTest {
|
||||
* Fileserver failure.
|
||||
*/
|
||||
@SpringBootConfiguration
|
||||
@EnableAutoConfiguration
|
||||
// The web adapter publishes its own auto-configuration (security, envelope, principal
|
||||
// pseudonymization); the Fileserver routes under test are reached through MockMvc without it.
|
||||
@EnableAutoConfiguration(
|
||||
excludeName =
|
||||
"dev.caskeleton.adapter.inbound.web.mvc.autoconfigure.WebAdapterAutoConfiguration")
|
||||
@ComponentScan(
|
||||
basePackages = {
|
||||
"dev.caskeleton.adapter.inbound.web.fileserver",
|
||||
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
package dev.caskeleton.bootstrap.integration.idempotency;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import dev.caskeleton.application.idempotency.IdempotencyExecutor;
|
||||
import dev.caskeleton.application.idempotency.IdempotencyScopeDigest;
|
||||
import dev.caskeleton.application.idempotency.IdempotentAction;
|
||||
import dev.caskeleton.application.idempotency.IdempotentResponseCodec;
|
||||
import dev.caskeleton.application.idempotency.RequestFingerprint;
|
||||
import dev.caskeleton.application.transaction.OperationId;
|
||||
import dev.caskeleton.bootstrap.autoconfigure.idempotency.IdempotencyProviderSelectionConfig;
|
||||
import dev.caskeleton.bootstrap.integration.PostgreSqlTestContainer;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.function.UnaryOperator;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
||||
import org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration;
|
||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
|
||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration;
|
||||
import org.springframework.boot.jdbc.autoconfigure.JdbcTemplateAutoConfiguration;
|
||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||
import org.springframework.transaction.PlatformTransactionManager;
|
||||
import org.springframework.transaction.support.TransactionTemplate;
|
||||
import org.testcontainers.junit.jupiter.Container;
|
||||
import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
import org.testcontainers.postgresql.PostgreSQLContainer;
|
||||
|
||||
/**
|
||||
* {@code provider=postgresql} on a fresh PostgreSQL works with no operator step.
|
||||
*
|
||||
* <p>The primary Flyway applies {@code db/migration/postgresql} only, as the shipped composition
|
||||
* configures it. The owner-safe columns and the capability registry row live in the {@code
|
||||
* jpa/core} and {@code jpa/idempotency} streams, which only the provider itself applies. Without
|
||||
* that, the store fails closed on the first request and the capability is "selected" but unusable.
|
||||
*/
|
||||
@Testcontainers
|
||||
class PostgreSqlIdempotencyProviderIntegrationTest {
|
||||
|
||||
private static final String POSTGRESQL_STORE_CONFIG =
|
||||
"dev.caskeleton.adapter.outbound.persistence.autoconfigure.PostgreSqlIdempotencyStoreConfig";
|
||||
|
||||
private static final IdempotencyScopeDigest SCOPE =
|
||||
new IdempotencyScopeDigest("b".repeat(64), 1, "CREATE_WORK_LOG");
|
||||
private static final RequestFingerprint FINGERPRINT =
|
||||
RequestFingerprint.ofSha256("request".getBytes(StandardCharsets.UTF_8));
|
||||
private static final IdempotentResponseCodec<String> CODEC =
|
||||
new IdempotentResponseCodec<>() {
|
||||
@Override
|
||||
public String serialize(String result) {
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deserialize(String payload) {
|
||||
return payload;
|
||||
}
|
||||
};
|
||||
|
||||
@Container static final PostgreSQLContainer PG = PostgreSqlTestContainer.create();
|
||||
|
||||
@Test
|
||||
void secondCallWithTheSameKeyReplaysTheStoredResponseOnAFreshDatabase() throws Exception {
|
||||
// given
|
||||
AtomicInteger executions = new AtomicInteger();
|
||||
|
||||
// when
|
||||
List<String> responses = runTwiceWithOneKey(executions);
|
||||
|
||||
// then
|
||||
assertThat(List.of(responses.get(0), responses.get(1), executions.get()))
|
||||
.containsExactly("work-log-1", "work-log-1", 1);
|
||||
}
|
||||
|
||||
private List<String> runTwiceWithOneKey(AtomicInteger executions) throws Exception {
|
||||
String[] responses = new String[2];
|
||||
runner()
|
||||
.run(
|
||||
context -> {
|
||||
assertThat(context).hasNotFailed();
|
||||
IdempotencyExecutor executor = context.getBean(IdempotencyExecutor.class);
|
||||
TransactionTemplate transactions =
|
||||
new TransactionTemplate(context.getBean(PlatformTransactionManager.class));
|
||||
UnaryOperator<String> call =
|
||||
operation ->
|
||||
transactions.execute(
|
||||
status ->
|
||||
executor.execute(
|
||||
SCOPE,
|
||||
FINGERPRINT,
|
||||
executor.newAttempt(new OperationId(operation)),
|
||||
() ->
|
||||
new IdempotentAction.Outcome.Success<>(
|
||||
"work-log-" + executions.incrementAndGet()),
|
||||
CODEC));
|
||||
responses[0] = call.apply("first-request");
|
||||
responses[1] = call.apply("second-request");
|
||||
});
|
||||
return List.of(responses);
|
||||
}
|
||||
|
||||
private static ApplicationContextRunner runner() throws ClassNotFoundException {
|
||||
return new ApplicationContextRunner()
|
||||
.withConfiguration(
|
||||
AutoConfigurations.of(
|
||||
DataSourceAutoConfiguration.class,
|
||||
JdbcTemplateAutoConfiguration.class,
|
||||
DataSourceTransactionManagerAutoConfiguration.class,
|
||||
FlywayAutoConfiguration.class,
|
||||
IdempotencyProviderSelectionConfig.class))
|
||||
.withUserConfiguration(Class.forName(POSTGRESQL_STORE_CONFIG))
|
||||
.withPropertyValues(
|
||||
"ca-skeleton.capabilities.idempotency.provider=postgresql",
|
||||
"spring.datasource.url=" + PG.getJdbcUrl(),
|
||||
"spring.datasource.username=" + PG.getUsername(),
|
||||
"spring.datasource.password=" + PG.getPassword(),
|
||||
"spring.flyway.locations=classpath:db/migration/postgresql");
|
||||
}
|
||||
}
|
||||
+15
-1
@@ -30,7 +30,10 @@ import org.testcontainers.utility.DockerImageName;
|
||||
classes = ObjectStorageCompositionIntegrationTest.ObjectStorageRuntime.class,
|
||||
properties = {
|
||||
"spring.config.name=object-storage-composition",
|
||||
"ca-skeleton.persistence-jpa.enabled=false",
|
||||
"spring.main.banner-mode=off",
|
||||
// The lane also selects Fileserver, which is on when present; this test is not about it.
|
||||
"app.fileserver-platform.enabled=false",
|
||||
"app.object-storage.enabled=false",
|
||||
"app.object-storage.legacy.enabled=true",
|
||||
"app.object-storage.legacy.backend=s3",
|
||||
@@ -84,7 +87,18 @@ class ObjectStorageCompositionIntegrationTest {
|
||||
}
|
||||
|
||||
@SpringBootConfiguration
|
||||
@EnableAutoConfiguration
|
||||
// Data-less: this lane's classpath carries persistence-jpa for the relational lanes beside it,
|
||||
// and a module on the classpath is on, so the relational stack is excluded here.
|
||||
@EnableAutoConfiguration(
|
||||
excludeName = {
|
||||
"org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration",
|
||||
"org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration",
|
||||
"org.springframework.boot.hibernate.autoconfigure.HibernateJpaAutoConfiguration",
|
||||
"org.springframework.boot.data.jpa.autoconfigure.DataJpaRepositoriesAutoConfiguration",
|
||||
"org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration",
|
||||
// Web publishes its own auto-configuration; this test drives the port, not HTTP.
|
||||
"dev.caskeleton.adapter.inbound.web.mvc.autoconfigure.WebAdapterAutoConfiguration"
|
||||
})
|
||||
@Import(ObjectStorageCapabilityConfig.class)
|
||||
static class ObjectStorageRuntime {}
|
||||
}
|
||||
|
||||
+10
-99
@@ -1,121 +1,32 @@
|
||||
package dev.caskeleton.bootstrap;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.SpringBootConfiguration;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigurationExcludeFilter;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.context.TypeExcludeFilter;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.FilterType;
|
||||
|
||||
/**
|
||||
* Composition root.
|
||||
*
|
||||
* <p>Spelled out as {@code @SpringBootConfiguration} + {@code @EnableAutoConfiguration} +
|
||||
* {@code @ComponentScan} rather than {@code @SpringBootApplication}, because the scan needs an
|
||||
* exclusion the composed annotation cannot express. The two custom filters below are the ones
|
||||
* {@code @SpringBootApplication} contributes and must stay.
|
||||
* <p>The component scan covers this package only. Every module on the classpath registers its own
|
||||
* beans and settings through its {@code AutoConfiguration.imports}, so adding a capability is one
|
||||
* build line and removing it is deleting that line — nothing here names a module.
|
||||
*
|
||||
* <p>Both scans stop at the same boundary, by different means. The component scan excludes the
|
||||
* auto-configured packages with a regex filter; {@code @ConfigurationPropertiesScan} has no {@code
|
||||
* excludeFilters} attribute, so it names the packages it does scan instead. The asymmetry that
|
||||
* existed before — beans gated, settings not — is why a notification settings object bound itself
|
||||
* in a deployment whose notification master was off. A capability whose beans are gated but whose
|
||||
* settings still bind is gated only where somebody remembered to gate it.
|
||||
*
|
||||
* <p>The five optional adapters are absent from the list below on purpose. Each one\'s settings are
|
||||
* registered by its capability root through {@code @EnableConfigurationProperties}, which is what
|
||||
* ties binding to the master switch. Adding a package back here would restore the binding and
|
||||
* silently undo the gate.
|
||||
*
|
||||
* <p>The third exclusion is what makes an optional capability optional. Configuration classes under
|
||||
* {@code bootstrap.autoconfigure} are reachable only through their own auto-configuration entry,
|
||||
* which carries the capability's master switch; leaving them inside the broad scan would let the
|
||||
* component scanner discover each child configuration on its own and assemble the capability
|
||||
* whatever that switch said. Registering them as auto-configuration instead makes "off" a
|
||||
* structural fact rather than a condition every future bean has to remember to repeat.
|
||||
* <p>{@code @ConfigurationPropertiesScan} names the bootstrap packages whose settings are always
|
||||
* bound. {@code bootstrap.autoconfigure} is left out on purpose: each auto-configuration there
|
||||
* binds its own settings with {@code @EnableConfigurationProperties}, so a root whose condition is
|
||||
* off binds nothing.
|
||||
*/
|
||||
@SpringBootConfiguration
|
||||
@EnableAutoConfiguration
|
||||
@ComponentScan(
|
||||
basePackages = {
|
||||
"dev.caskeleton.bootstrap",
|
||||
"dev.caskeleton.adapter",
|
||||
"dev.caskeleton.application",
|
||||
"dev.caskeleton.domain",
|
||||
"dev.caskeleton.shared"
|
||||
},
|
||||
excludeFilters = {
|
||||
@ComponentScan.Filter(type = FilterType.CUSTOM, classes = TypeExcludeFilter.class),
|
||||
@ComponentScan.Filter(
|
||||
type = FilterType.CUSTOM,
|
||||
classes = AutoConfigurationExcludeFilter.class),
|
||||
@ComponentScan.Filter(
|
||||
type = FilterType.REGEX,
|
||||
pattern = CaSkeletonApplication.AUTO_CONFIGURED_PACKAGES)
|
||||
})
|
||||
@SpringBootApplication
|
||||
@ConfigurationPropertiesScan(
|
||||
basePackages = {
|
||||
"dev.caskeleton.bootstrap.async",
|
||||
"dev.caskeleton.bootstrap.concurrency",
|
||||
"dev.caskeleton.bootstrap.runtime",
|
||||
"dev.caskeleton.bootstrap.security",
|
||||
"dev.caskeleton.bootstrap.settings",
|
||||
"dev.caskeleton.adapter.inbound.web",
|
||||
// Not the whole redis tree. `...cache.redis.capability` holds RedisCapabilitySettings, which
|
||||
// the capability's own gated root binds with @EnableConfigurationProperties; scanning it here
|
||||
// bound the settings while every switch was off, which is the one thing the off-state
|
||||
// contract forbids — and the shipped-composition test caught it by name the moment the
|
||||
// capability moved into this package.
|
||||
"dev.caskeleton.adapter.outbound.cache.redis.sdk",
|
||||
"dev.caskeleton.adapter.outbound.objectstorage",
|
||||
"dev.caskeleton.application",
|
||||
"dev.caskeleton.domain",
|
||||
"dev.caskeleton.shared"
|
||||
"dev.caskeleton.bootstrap.settings"
|
||||
})
|
||||
public class CaSkeletonApplication {
|
||||
|
||||
/**
|
||||
* Packages owned by an auto-configuration entry rather than by the component scan.
|
||||
*
|
||||
* <p>A package prefix rather than a class list: a new configuration added to an optional
|
||||
* capability must not become active merely because nobody remembered to exclude it.
|
||||
*
|
||||
* <p>The Fileserver admin package is here for a different reason: those routes belong to the
|
||||
* management context, and a component scan that also found them would publish the management
|
||||
* plane on the public connector — the exposure the separate context exists to remove.
|
||||
*
|
||||
* <p>The web platform's error, budget and operation packages are here for a third reason. Their
|
||||
* advices and controllers need beans that only exist when the corresponding platform
|
||||
* auto-configuration is active, and a component scan finds them regardless — so an all-off or
|
||||
* partially configured deployment failed to start on an unsatisfied dependency rather than simply
|
||||
* not installing the control. Ownership by auto-configuration is what ties a control's presence
|
||||
* to its dependency's.
|
||||
*/
|
||||
static final String AUTO_CONFIGURED_PACKAGES =
|
||||
"dev\\.caskeleton\\.bootstrap\\.autoconfigure\\..*"
|
||||
+ "|dev\\.caskeleton\\.bootstrap\\.notification\\..*"
|
||||
+ "|dev\\.caskeleton\\.adapter\\.inbound\\.web\\.fileserver\\.admin\\..*"
|
||||
+ "|dev\\.caskeleton\\.adapter\\.outbound\\.fileserver\\.platform\\.autoconfigure\\..*"
|
||||
// Capability composition modules. They are never in `basePackages`, so the scan
|
||||
// cannot reach them anyway — named here because the parity test asks the regex,
|
||||
// not the scan, whether an imported child could ever be found twice.
|
||||
+ "|dev\\.caskeleton\\.composition\\..*"
|
||||
+ "|dev\\.caskeleton\\.adapter\\.outbound\\.cache\\.redis\\.capability\\..*"
|
||||
+ "|dev\\.caskeleton\\.adapter\\.outbound\\.httpclient\\.autoconfigure\\..*"
|
||||
+ "|dev\\.caskeleton\\.adapter\\.outbound\\.mongo\\..*"
|
||||
+ "|dev\\.caskeleton\\.adapter\\.outbound\\.messaging\\..*"
|
||||
+ "|dev\\.caskeleton\\.adapter\\.outbound\\.notification\\..*"
|
||||
+ "|dev\\.caskeleton\\.adapter\\.outbound\\.persistence\\..*"
|
||||
+ "|dev\\.caskeleton\\.adapter\\.inbound\\.graphql\\..*"
|
||||
+ "|dev\\.caskeleton\\.adapter\\.inbound\\.web\\.mvc\\.error\\..*"
|
||||
+ "|dev\\.caskeleton\\.adapter\\.inbound\\.web\\.mvc\\.budget\\..*"
|
||||
+ "|dev\\.caskeleton\\.adapter\\.inbound\\.web\\.mvc\\.operation\\..*"
|
||||
+ "|dev\\.caskeleton\\.adapter\\.inbound\\.web\\.webflux\\.error\\..*"
|
||||
+ "|dev\\.caskeleton\\.adapter\\.inbound\\.web\\.webflux\\.operation\\..*"
|
||||
+ "|dev\\.caskeleton\\.messaging\\..*";
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(CaSkeletonApplication.class, args);
|
||||
}
|
||||
|
||||
-42
@@ -1,42 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.activation;
|
||||
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Registers the activation checks the composition root owns.
|
||||
*
|
||||
* <p>Unconditional on purpose. The dependency check is most needed precisely when a capability was
|
||||
* left off — that is the combination it exists to catch — so gating it behind any switch would
|
||||
* remove it from the deployments it protects.
|
||||
*/
|
||||
@AutoConfiguration
|
||||
public class AdapterActivationAutoConfiguration {
|
||||
|
||||
/**
|
||||
* The startup check for the active capability graph.
|
||||
*
|
||||
* @param environment the resolved environment
|
||||
* @return the check, which refuses refresh when a dependency is missing
|
||||
*/
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public CapabilityDependencyStartupCheck capabilityDependencyStartupCheck(
|
||||
Environment environment) {
|
||||
return new CapabilityDependencyStartupCheck(environment);
|
||||
}
|
||||
|
||||
/**
|
||||
* The endpoint a smoke lane reads to check the application rather than its own input.
|
||||
*
|
||||
* @param environment the resolved environment
|
||||
* @return the read-only activation endpoint
|
||||
*/
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public AdapterActivationEndpoint adapterActivationEndpoint(Environment environment) {
|
||||
return new AdapterActivationEndpoint(environment);
|
||||
}
|
||||
}
|
||||
-75
@@ -1,75 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.activation;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.runtime.RuntimeProfileSnapshot;
|
||||
import dev.caskeleton.bootstrap.autoconfigure.jpa.DataSourceRequirement;
|
||||
import dev.caskeleton.shared.activation.MasterSwitch;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
|
||||
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Serves the resolved activation state so a smoke lane can check the application rather than
|
||||
* itself.
|
||||
*
|
||||
* <p>Read-only and cheap: it reports what the environment resolved to, and creates nothing. It is
|
||||
* registered unconditionally because the state it reports is most interesting when everything is
|
||||
* off — an endpoint that appeared only once a capability was enabled could never confirm that none
|
||||
* of them were.
|
||||
*/
|
||||
@Endpoint(id = "adapteractivation")
|
||||
public class AdapterActivationEndpoint {
|
||||
|
||||
private final Environment environment;
|
||||
|
||||
/**
|
||||
* @param environment the resolved environment to report on
|
||||
*/
|
||||
public AdapterActivationEndpoint(Environment environment) {
|
||||
this.environment = environment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the resolved activation state.
|
||||
*
|
||||
* @return the report
|
||||
*/
|
||||
@ReadOperation
|
||||
public AdapterActivationReport activation() {
|
||||
Map<String, Boolean> switches = new LinkedHashMap<>();
|
||||
for (MasterSwitch masterSwitch : MasterSwitch.values()) {
|
||||
switches.put(
|
||||
masterSwitch.property(),
|
||||
"true".equalsIgnoreCase(environment.getProperty(masterSwitch.property(), "false")));
|
||||
}
|
||||
var profiles = RuntimeProfileSnapshot.from(environment).activeProfiles();
|
||||
return new AdapterActivationReport(
|
||||
profiles.isEmpty() ? "" : profiles.get(0),
|
||||
switches,
|
||||
DataSourceRequirement.reasons(environment),
|
||||
resolvedVendor());
|
||||
}
|
||||
|
||||
/**
|
||||
* Names the relational vendor this deployment resolved, without naming the database.
|
||||
*
|
||||
* <p>Derived from the JDBC URL's scheme rather than from the vendor selector, because the two can
|
||||
* disagree and it is the URL that decides where the queries go. This is the value that separates
|
||||
* "JPA is on" from "JPA is on against the database this deployment started" — a smoke lane that
|
||||
* starts PostgreSQL while the active profile pins H2 satisfies every other field here.
|
||||
*
|
||||
* @return the vendor, or {@code "none"} when nothing requires a connection
|
||||
*/
|
||||
private String resolvedVendor() {
|
||||
if (!DataSourceRequirement.isRequired(environment)) {
|
||||
return "none";
|
||||
}
|
||||
String url = environment.getProperty("spring.datasource.url", "");
|
||||
if (!url.startsWith("jdbc:")) {
|
||||
return "unknown";
|
||||
}
|
||||
int schemeEnd = url.indexOf(':', "jdbc:".length());
|
||||
return schemeEnd > 0 ? url.substring("jdbc:".length(), schemeEnd) : "unknown";
|
||||
}
|
||||
}
|
||||
-34
@@ -1,34 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.activation;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* What this deployment actually turned on, as it resolved rather than as it was configured.
|
||||
*
|
||||
* <p>A smoke lane that asserts on the environment it passed in is asserting on its own input. This
|
||||
* is the application's answer: the profile it settled on, the state each master switch parsed to,
|
||||
* and which capabilities are asking for a relational connection. A lane claiming "all five off" is
|
||||
* checked against this, not against the flags it set.
|
||||
*
|
||||
* @param activeProfile the single resolved runtime environment
|
||||
* @param switches each master switch's canonical property to its resolved state
|
||||
* @param dataSourceRequiredBy capabilities that need a relational connection; empty when none does
|
||||
* @param persistenceVendor the resolved relational vendor, or {@code "none"} when none is required.
|
||||
* A vendor name rather than a URL, so the report still carries no address — and it is the value
|
||||
* that separates "JPA is on" from "JPA is on against the database this deployment started". A
|
||||
* lane that starts PostgreSQL while the profile pins H2 passes every other check in this
|
||||
* report.
|
||||
*/
|
||||
public record AdapterActivationReport(
|
||||
String activeProfile,
|
||||
Map<String, Boolean> switches,
|
||||
List<String> dataSourceRequiredBy,
|
||||
String persistenceVendor) {
|
||||
|
||||
/** Defensive copies: this is served over HTTP and read by evidence collectors. */
|
||||
public AdapterActivationReport {
|
||||
switches = Map.copyOf(switches);
|
||||
dataSourceRequiredBy = List.copyOf(dataSourceRequiredBy);
|
||||
}
|
||||
}
|
||||
-50
@@ -1,50 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.activation;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupOrder;
|
||||
import org.springframework.boot.EnvironmentPostProcessor;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.core.Ordered;
|
||||
import org.springframework.core.env.ConfigurableEnvironment;
|
||||
|
||||
/**
|
||||
* Refuses an inconsistent capability graph before the context exists.
|
||||
*
|
||||
* <p>{@link CapabilityDependencyStartupCheck} already ran this rule, as an {@code
|
||||
* InitializingBean}, on the stated grounds that refreshing beans is early enough — "before a
|
||||
* scheduler has claimed a row or a pool has opened a connection". It is not, and the case that
|
||||
* shows it is the one the rule cares most about.
|
||||
*
|
||||
* <p>Turning the outbox on without the JPA switch is a dependency error this repository names
|
||||
* explicitly. But the outbox is also a registered relational consumer, so {@link
|
||||
* DataSourceRequirement} reports that a pool is required, {@code
|
||||
* JpaOffAutoConfigurationImportFilter} therefore keeps Boot's relational auto-configurations in the
|
||||
* candidate set, and Hibernate and Flyway are instantiated during refresh — ahead of any {@code
|
||||
* InitializingBean} of ours. What the operator saw was:
|
||||
*
|
||||
* <pre>
|
||||
* Unable to obtain connection from database: Connection to localhost:5433 refused.
|
||||
* </pre>
|
||||
*
|
||||
* <p>That is the "go and read the logs" failure the named-switch message exists to replace, and it
|
||||
* arrived first every time. The two components are each right on their own — a pool does have
|
||||
* consumers besides JPA, and the outbox does need the JPA switch — and the disagreement was only
|
||||
* visible in which one spoke first.
|
||||
*
|
||||
* <p>So the check moves to the environment stage, where every property source is resolved and
|
||||
* nothing has been instantiated. The bean stays as well: a context assembled without {@code
|
||||
* spring.factories} — an {@code ApplicationContextRunner}, a slice test — never reaches this class,
|
||||
* and the rule should not be optional there.
|
||||
*/
|
||||
public class CapabilityDependencyEnvironmentValidator implements EnvironmentPostProcessor, Ordered {
|
||||
|
||||
@Override
|
||||
public void postProcessEnvironment(
|
||||
ConfigurableEnvironment environment, SpringApplication application) {
|
||||
CapabilityDependencyValidator.requireSatisfied(environment);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getOrder() {
|
||||
return StartupOrder.CAPABILITY_DEPENDENCY;
|
||||
}
|
||||
}
|
||||
-27
@@ -1,27 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.activation;
|
||||
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Runs {@link CapabilityDependencyValidator} at context refresh and stops a startup that fails it.
|
||||
*
|
||||
* <p>An {@code InitializingBean} rather than a listener, so the refusal happens while the context
|
||||
* is still assembling — before a scheduler has claimed a row or a pool has opened a connection.
|
||||
*/
|
||||
public class CapabilityDependencyStartupCheck implements InitializingBean {
|
||||
|
||||
private final Environment environment;
|
||||
|
||||
/**
|
||||
* @param environment the resolved environment to validate
|
||||
*/
|
||||
public CapabilityDependencyStartupCheck(Environment environment) {
|
||||
this.environment = environment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet() {
|
||||
CapabilityDependencyValidator.requireSatisfied(environment);
|
||||
}
|
||||
}
|
||||
-199
@@ -1,199 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.activation;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.runtime.RuntimeProfileSnapshot;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupPhase;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupValidationContext;
|
||||
import dev.caskeleton.shared.activation.MasterSwitch;
|
||||
import dev.caskeleton.shared.runtime.RuntimeEnvironment;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Refuses a startup whose capabilities ask for something no switch turned on.
|
||||
*
|
||||
* <p>Every rule here replaces a failure that used to arrive later and read worse. A relay with no
|
||||
* broker exhausted outbox rows to DEAD one retry budget at a time; a JDBC idempotency store with no
|
||||
* database failed at the first request that needed a claim; a GraphQL deployment mode that
|
||||
* disagreed with the runtime environment served production traffic under local safety rules. A
|
||||
* dependency that is checked at startup is a deployment that does not start; a dependency that is
|
||||
* checked at first use is an incident.
|
||||
*
|
||||
* <p>Each message names the exact switch or value that is missing. "Misconfiguration" tells an
|
||||
* operator to go reading; a property name tells them what to set.
|
||||
*/
|
||||
public final class CapabilityDependencyValidator {
|
||||
|
||||
/** Which GraphQL deployment modes each runtime environment permits. */
|
||||
private static final Map<RuntimeEnvironment, Set<String>> PERMITTED_GRAPHQL_MODES =
|
||||
Map.of(
|
||||
RuntimeEnvironment.LOCAL, Set.of("LOCAL"),
|
||||
RuntimeEnvironment.DEV, Set.of("DEV"),
|
||||
RuntimeEnvironment.PROD, Set.of("PRODUCTION_INTERNAL", "PRODUCTION_PUBLIC"));
|
||||
|
||||
private CapabilityDependencyValidator() {}
|
||||
|
||||
/**
|
||||
* Returns one message per unsatisfied dependency, in declaration order.
|
||||
*
|
||||
* @param environment the resolved environment
|
||||
* @return the violations; empty when the active capability graph is consistent
|
||||
*/
|
||||
public static List<String> violations(Environment environment) {
|
||||
StartupValidationContext violations =
|
||||
StartupValidationContext.forPhase(StartupPhase.ADAPTER_ENABLEMENT);
|
||||
|
||||
boolean jpa = isOn(environment, MasterSwitch.PERSISTENCE_JPA.property());
|
||||
boolean mongo = isOn(environment, MasterSwitch.PERSISTENCE_MONGO.property());
|
||||
boolean messaging = isOn(environment, MasterSwitch.MESSAGING.property());
|
||||
boolean notification = isOn(environment, MasterSwitch.NOTIFICATION_PLATFORM.property());
|
||||
boolean graphQl = isOn(environment, MasterSwitch.GRAPHQL.property());
|
||||
boolean outbox = isOn(environment, "ca-skeleton.outbox.enabled");
|
||||
boolean relay = isOn(environment, "ca-skeleton.outbox.relay-enabled");
|
||||
String broker = environment.getProperty("app.messaging.broker", "").trim();
|
||||
|
||||
if (outbox && !jpa) {
|
||||
violations.reject(
|
||||
"ca-skeleton.outbox.enabled=true needs relational persistence to store rows; set "
|
||||
+ MasterSwitch.PERSISTENCE_JPA.property()
|
||||
+ "=true or turn the outbox off.");
|
||||
}
|
||||
// Only a *relaying* outbox needs somewhere to publish. An outbox with the relay off writes rows
|
||||
// inside the application's own transactions and publishes nothing, which is the configuration
|
||||
// an
|
||||
// operator uses to park events until a transport exists — the very state
|
||||
// OutboxRelayBrokerRequirementValidator documents as one of the two coherent ones. Requiring
|
||||
// messaging for the capability rather than for the relay contradicted that, and in a
|
||||
// broker-neutral artifact it made the outbox unreachable: messaging on demands a broker, and a
|
||||
// broker demands a starter the default composition deliberately does not ship.
|
||||
if (outbox && relay && !messaging) {
|
||||
violations.reject(
|
||||
"ca-skeleton.outbox.relay-enabled=true needs somewhere to publish; set "
|
||||
+ MasterSwitch.MESSAGING.property()
|
||||
+ "=true, or set ca-skeleton.outbox.relay-enabled=false to keep writing rows without"
|
||||
+ " a transport.");
|
||||
}
|
||||
if (relay && !outbox) {
|
||||
violations.reject(
|
||||
"ca-skeleton.outbox.relay-enabled=true only starts the scheduler for a capability that is "
|
||||
+ "off; set ca-skeleton.outbox.enabled=true or turn the relay off.");
|
||||
}
|
||||
if (messaging && broker.isEmpty()) {
|
||||
violations.reject(
|
||||
"app.messaging.enabled=true needs a transport; set app.messaging.broker to a registered "
|
||||
+ "broker id.");
|
||||
}
|
||||
String idempotencyProvider =
|
||||
environment.getProperty("ca-skeleton.capabilities.idempotency.provider", "disabled").trim();
|
||||
if (("jdbc".equalsIgnoreCase(idempotencyProvider)
|
||||
|| "postgresql".equalsIgnoreCase(idempotencyProvider))
|
||||
&& !jpa) {
|
||||
violations.reject(
|
||||
"ca-skeleton.capabilities.idempotency.provider="
|
||||
+ idempotencyProvider
|
||||
+ " needs relational persistence; set "
|
||||
+ MasterSwitch.PERSISTENCE_JPA.property()
|
||||
+ "=true or choose another provider.");
|
||||
}
|
||||
if (isOn(environment, "ca-skeleton.runtime.multi-instance-enabled") && !jpa) {
|
||||
violations.reject(
|
||||
"ca-skeleton.runtime.multi-instance-enabled=true needs a database for the lock registry; set "
|
||||
+ MasterSwitch.PERSISTENCE_JPA.property()
|
||||
+ "=true or turn multi-instance locking off.");
|
||||
}
|
||||
if (notification
|
||||
&& !"none"
|
||||
.equalsIgnoreCase(
|
||||
environment.getProperty("ca-skeleton.notification.platform.persistence", "jpa"))
|
||||
&& !jpa) {
|
||||
violations.reject(
|
||||
MasterSwitch.NOTIFICATION_PLATFORM.property()
|
||||
+ "=true stores requests relationally, and no other store is implemented; set "
|
||||
+ MasterSwitch.PERSISTENCE_JPA.property()
|
||||
+ "=true.");
|
||||
}
|
||||
if (mongo) {
|
||||
String activeMongoProfile =
|
||||
environment
|
||||
.getProperty(
|
||||
MasterSwitch.PERSISTENCE_MONGO.property().replace(".enabled", ".active-profile"),
|
||||
"")
|
||||
.trim();
|
||||
if (activeMongoProfile.isBlank()) {
|
||||
violations.reject(
|
||||
MasterSwitch.PERSISTENCE_MONGO.property()
|
||||
+ "=true needs exactly one profile; set "
|
||||
+ "ca-skeleton.persistence-mongo.active-profile.");
|
||||
} else {
|
||||
String standardUri = environment.getProperty("spring.mongodb.uri", "").trim();
|
||||
String profileSecretProperty =
|
||||
"ca-skeleton.persistence-mongo.platform.profiles." + activeMongoProfile + ".uri-secret";
|
||||
String profileSecret = environment.getProperty(profileSecretProperty, "").trim();
|
||||
if (standardUri.isBlank() && profileSecret.isBlank()) {
|
||||
violations.reject(
|
||||
MasterSwitch.PERSISTENCE_MONGO.property()
|
||||
+ "=true has no explicit MongoDB connection source; set spring.mongodb.uri "
|
||||
+ "(SPRING_MONGODB_URI) or "
|
||||
+ profileSecretProperty
|
||||
+ ".");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (graphQl) {
|
||||
violations.rejectAll(graphQlModeViolations(environment));
|
||||
}
|
||||
return violations.violations();
|
||||
}
|
||||
|
||||
/**
|
||||
* Rejects the deployment when any capability dependency is unsatisfied.
|
||||
*
|
||||
* <p>Both the EnvironmentPostProcessor path and the bean fallback delegate here, so phase,
|
||||
* aggregation and operator-facing failure formatting cannot drift between startup entry points.
|
||||
*/
|
||||
public static void requireSatisfied(Environment environment) {
|
||||
StartupValidationContext violations =
|
||||
StartupValidationContext.forPhase(StartupPhase.ADAPTER_ENABLEMENT)
|
||||
.rejectAll(violations(environment));
|
||||
violations.failIfViolated("This deployment enables capabilities whose dependencies are off");
|
||||
}
|
||||
|
||||
private static List<String> graphQlModeViolations(Environment environment) {
|
||||
String mode = environment.getProperty("backend.graphql.deployment-mode", "").trim();
|
||||
if (mode.isEmpty()) {
|
||||
return List.of(
|
||||
MasterSwitch.GRAPHQL.property()
|
||||
+ "=true needs an explicit safety posture; set backend.graphql.deployment-mode to one "
|
||||
+ "of LOCAL, DEV, PRODUCTION_INTERNAL, PRODUCTION_PUBLIC.");
|
||||
}
|
||||
RuntimeProfileSnapshot profiles = RuntimeProfileSnapshot.from(environment);
|
||||
List<String> activeProfiles = profiles.activeProfiles();
|
||||
RuntimeEnvironment runtime = profiles.resolve().orElse(null);
|
||||
if (runtime == null) {
|
||||
return List.of(
|
||||
"backend.graphql.deployment-mode cannot be checked because the runtime environment '"
|
||||
+ String.join(",", activeProfiles)
|
||||
+ "' is not one of "
|
||||
+ RuntimeEnvironment.deployableProfileNames()
|
||||
+ ".");
|
||||
}
|
||||
Set<String> permitted = PERMITTED_GRAPHQL_MODES.get(runtime);
|
||||
if (!permitted.contains(mode.toUpperCase(Locale.ROOT))) {
|
||||
return List.of(
|
||||
"backend.graphql.deployment-mode="
|
||||
+ mode
|
||||
+ " is not permitted in the "
|
||||
+ runtime.profileName()
|
||||
+ " runtime; permitted here: "
|
||||
+ permitted.stream().sorted().toList()
|
||||
+ ".");
|
||||
}
|
||||
return List.of();
|
||||
}
|
||||
|
||||
private static boolean isOn(Environment environment, String property) {
|
||||
return "true".equalsIgnoreCase(environment.getProperty(property, "false"));
|
||||
}
|
||||
}
|
||||
-73
@@ -1,73 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.activation;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupOrder;
|
||||
import dev.caskeleton.shared.activation.MasterSwitch;
|
||||
import dev.caskeleton.shared.activation.MasterSwitchParseResult;
|
||||
import dev.caskeleton.shared.activation.MasterSwitchParser;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import org.springframework.boot.EnvironmentPostProcessor;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.core.Ordered;
|
||||
import org.springframework.core.env.ConfigurableEnvironment;
|
||||
|
||||
/**
|
||||
* Rejects an unreadable master switch before anything binds a detail namespace.
|
||||
*
|
||||
* <p>Reads raw property values rather than binding, deliberately. An adapter that is off has to be
|
||||
* able to start next to an environment full of its own malformed configuration — a validator that
|
||||
* bound the namespace to check the switch would fail exactly the deployments the switch exists to
|
||||
* protect.
|
||||
*
|
||||
* <p>Runs at lowest precedence so profile-specific configuration data has already been contributed;
|
||||
* a check that ran before it would read {@code application-prod.yml}'s switches as unset.
|
||||
*/
|
||||
public class MasterSwitchEnvironmentPostProcessor implements EnvironmentPostProcessor, Ordered {
|
||||
|
||||
@Override
|
||||
public void postProcessEnvironment(
|
||||
ConfigurableEnvironment environment, SpringApplication application) {
|
||||
for (MasterSwitch masterSwitch : MasterSwitch.values()) {
|
||||
Map<String, String> legacy = new LinkedHashMap<>();
|
||||
for (String legacyProperty : masterSwitch.legacyProperties()) {
|
||||
String value = environment.getProperty(legacyProperty);
|
||||
if (value != null) {
|
||||
legacy.put(legacyProperty, value);
|
||||
}
|
||||
}
|
||||
reject(
|
||||
MasterSwitchParser.parse(
|
||||
masterSwitch, environment.getProperty(masterSwitch.property()), legacy));
|
||||
}
|
||||
}
|
||||
|
||||
private static void reject(MasterSwitchParseResult result) {
|
||||
if (result instanceof MasterSwitchParseResult.Invalid invalid) {
|
||||
throw StartupFailures.envValidation(
|
||||
("%s must be exactly true or false, but was \"%s\". A value this close to a boolean is a "
|
||||
+ "deployment that believes it set the switch; it is rejected rather than read as "
|
||||
+ "off.")
|
||||
.formatted(invalid.owner().property(), invalid.raw()));
|
||||
}
|
||||
if (result instanceof MasterSwitchParseResult.Ambiguous ambiguous) {
|
||||
throw StartupFailures.envValidation(
|
||||
("%s and %s are both set. They agree today and diverge the first time somebody edits one "
|
||||
+ "of them; remove %s.")
|
||||
.formatted(
|
||||
ambiguous.owner().property(),
|
||||
ambiguous.legacyProperty(),
|
||||
ambiguous.legacyProperty()));
|
||||
}
|
||||
if (result instanceof MasterSwitchParseResult.LegacyOnly legacy) {
|
||||
throw StartupFailures.envValidation(
|
||||
"%s has been replaced by %s. Set the replacement; the old key is no longer read."
|
||||
.formatted(legacy.legacyProperty(), legacy.replacementProperty()));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getOrder() {
|
||||
return StartupOrder.MASTER_SWITCH_NORMALISATION;
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package dev.caskeleton.bootstrap.async;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupFailures;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package dev.caskeleton.bootstrap.async;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.RuntimeWarnings;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.RuntimeWarnings;
|
||||
import io.micrometer.core.instrument.Counter;
|
||||
import io.micrometer.core.instrument.Gauge;
|
||||
import io.micrometer.core.instrument.MeterRegistry;
|
||||
|
||||
-39
@@ -1,39 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.idempotency;
|
||||
|
||||
/**
|
||||
* The bean shape a selected idempotency provider requires the composition root to hold.
|
||||
*
|
||||
* <p>This used to be a {@code switch} in {@code IdempotencyProviderSelectionConfig} — so adding a
|
||||
* provider meant editing two places, the enum and the switch, and forgetting the second still
|
||||
* compiled (BOOT-010). Now the requirement is a constructor argument of the enum constant, which
|
||||
* means it cannot be added without being stated.
|
||||
*
|
||||
* <p>It stays here rather than being contributed by the provider modules. A count of beans in the
|
||||
* composition root is assembly knowledge: the Redis adapter has no view of how many stores this
|
||||
* deployment ended up holding, and asking it to declare one would give an adapter an opinion about
|
||||
* a graph it is only a part of.
|
||||
*
|
||||
* @param jdbcStores V1 {@code IdempotencyStorePort} beans expected
|
||||
* @param jdbcExecutors V1 {@code IdempotencyExecutor} beans expected
|
||||
* @param ownerSafeStores V2 {@code IdempotencyStorePortV2} beans expected
|
||||
* @param ownerSafeExecutors V2 {@code IdempotencyExecutorV2} beans expected
|
||||
*/
|
||||
record IdempotencyComposition(
|
||||
int jdbcStores, int jdbcExecutors, int ownerSafeStores, int ownerSafeExecutors) {
|
||||
|
||||
/**
|
||||
* Redis and PostgreSQL declare the same shape because they satisfy one contract: the count is by
|
||||
* type, so the guard cannot tell them apart and does not need to. What it refuses is a deployment
|
||||
* holding two stores, or a store with nothing to drive it, whichever provider produced them.
|
||||
*/
|
||||
String describe() {
|
||||
return jdbcStores
|
||||
+ " JDBC V1 store(s), "
|
||||
+ jdbcExecutors
|
||||
+ " JDBC V1 executor(s), "
|
||||
+ ownerSafeStores
|
||||
+ " owner-safe V2 store(s) and "
|
||||
+ ownerSafeExecutors
|
||||
+ " owner-safe V2 executor(s)";
|
||||
}
|
||||
}
|
||||
-27
@@ -1,27 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.idempotency;
|
||||
|
||||
import dev.caskeleton.application.idempotency.IdempotencyExecutor;
|
||||
import dev.caskeleton.application.idempotency.IdempotencyStorePort;
|
||||
import java.time.Clock;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
/**
|
||||
* Wires idempotency execution. {@code @EnableScheduling} activates the {@code IdempotencyReaper}'s
|
||||
* scheduled purge. See README for the design rationale.
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableScheduling
|
||||
@EnableConfigurationProperties(IdempotencySettings.class)
|
||||
@ConditionalOnProperty(name = "ca-skeleton.capabilities.idempotency.provider", havingValue = "jdbc")
|
||||
public class IdempotencyConfig {
|
||||
|
||||
@Bean
|
||||
public IdempotencyExecutor idempotencyExecutor(
|
||||
IdempotencyStorePort store, Clock clock, IdempotencySettings properties) {
|
||||
return new IdempotencyExecutor(store, clock, properties.ttl());
|
||||
}
|
||||
}
|
||||
+35
-52
@@ -1,73 +1,56 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.idempotency;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupFailures;
|
||||
import dev.caskeleton.application.idempotency.IdempotencyExecutor;
|
||||
import dev.caskeleton.application.idempotency.IdempotencyStorePort;
|
||||
import dev.caskeleton.application.idempotency.v2.IdempotencyExecutorV2;
|
||||
import dev.caskeleton.application.idempotency.v2.IdempotencyStorePortV2;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.ObjectProvider;
|
||||
import org.springframework.beans.factory.SmartInitializingSingleton;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Import;
|
||||
|
||||
/**
|
||||
* Fail-fast exclusivity guard for the JDBC V1 provider and the two owner-safe V2 providers.
|
||||
* Assembles the request-idempotency executor, once, for whichever provider is selected.
|
||||
*
|
||||
* <p>Redis and PostgreSQL share one expectation because they satisfy one contract: exactly one
|
||||
* owner-safe store and exactly one executor. The count is by type, so the guard cannot tell them
|
||||
* apart and does not need to — what it refuses is a deployment holding two stores, or a store with
|
||||
* nothing to drive it, whichever provider produced them.
|
||||
* <p>Providers contribute only an {@link IdempotencyStorePort}: Redis from {@code
|
||||
* adapter:outbound:cache-redis}, PostgreSQL from {@code adapter:outbound:persistence-jpa}, each
|
||||
* conditional on {@code ca-skeleton.capabilities.idempotency.provider}. The lifecycle policy —
|
||||
* lease, replay TTL, retention, codec id, policy revision — is the same whichever store holds the
|
||||
* records, so it lives in one {@link IdempotencySettings} record and the executor is built here
|
||||
* from it.
|
||||
*
|
||||
* <p>The V2 side counts {@link IdempotencyStorePortV2} from {@code application.idempotency.v2} —
|
||||
* the contract both owner-safe stores, PostgreSQL and Redis, actually implement. It used to count
|
||||
* the same-named interface in the parent package, which nothing implements: selecting {@code redis}
|
||||
* therefore required a bean no provider could supply, and the deployment failed with "ambiguous or
|
||||
* incomplete" while every configured provider was present and correct.
|
||||
*
|
||||
* <p>It requires a V2 executor alongside the V2 store. A store with nothing to drive it is a
|
||||
* selection that cannot serve a request, and the executor is the only thing that turns the store's
|
||||
* claim/start/complete transitions into a request-replay lifecycle. The requirement was dropped
|
||||
* once, while the only {@code IdempotencyExecutorV2} was written against the unimplemented
|
||||
* parent-package contract and so could never be composed; that executor now exists in {@code
|
||||
* application.idempotency.v2} over the contract the stores implement, so the requirement is real
|
||||
* again rather than a demand nothing could satisfy.
|
||||
* <p>A selected provider must yield exactly one store. None means the provider's module is not on
|
||||
* the runtime classpath or its switch is off; two means something else registered one (a scan-found
|
||||
* stereotype, a hand-written bean). Either is refused at startup with the count, rather than
|
||||
* surfacing as an unsatisfied dependency or as requests served by the wrong store.
|
||||
*/
|
||||
@AutoConfiguration
|
||||
@EnableConfigurationProperties(IdempotencyProviderSettings.class)
|
||||
@Import({IdempotencyConfig.class, PostgreSqlIdempotencyProviderConfig.class})
|
||||
@EnableConfigurationProperties(IdempotencySettings.class)
|
||||
public class IdempotencyProviderSelectionConfig {
|
||||
|
||||
@Bean
|
||||
SmartInitializingSingleton idempotencyProviderExclusivity(
|
||||
IdempotencyProviderSettings settings,
|
||||
ObjectProvider<IdempotencyStorePort> jdbcStores,
|
||||
ObjectProvider<IdempotencyExecutor> jdbcExecutors,
|
||||
ObjectProvider<IdempotencyStorePortV2> ownerSafeStores,
|
||||
ObjectProvider<IdempotencyExecutorV2> ownerSafeExecutors) {
|
||||
return () -> {
|
||||
IdempotencyComposition found =
|
||||
new IdempotencyComposition(
|
||||
count(jdbcStores),
|
||||
count(jdbcExecutors),
|
||||
count(ownerSafeStores),
|
||||
count(ownerSafeExecutors));
|
||||
require(found, settings.provider().composition());
|
||||
};
|
||||
}
|
||||
|
||||
private static int count(ObjectProvider<?> beans) {
|
||||
return Math.toIntExact(beans.stream().count());
|
||||
}
|
||||
|
||||
private static void require(IdempotencyComposition found, IdempotencyComposition expected) {
|
||||
if (!found.equals(expected)) {
|
||||
@ConditionalOnExpression(
|
||||
"!'${ca-skeleton.capabilities.idempotency.provider:disabled}'.trim()"
|
||||
+ ".equalsIgnoreCase('disabled')")
|
||||
IdempotencyExecutor idempotencyExecutor(
|
||||
ObjectProvider<IdempotencyStorePort> stores, IdempotencySettings settings) {
|
||||
List<IdempotencyStorePort> found = stores.orderedStream().toList();
|
||||
if (found.size() != 1) {
|
||||
throw StartupFailures.requiredAdapterDisabled(
|
||||
"Idempotency provider selection is ambiguous or incomplete: expected "
|
||||
+ expected.describe()
|
||||
+ ", but found "
|
||||
+ found.describe());
|
||||
"ca-skeleton.capabilities.idempotency.provider="
|
||||
+ settings.provider().name().toLowerCase(java.util.Locale.ROOT)
|
||||
+ " needs exactly one IdempotencyStorePort, but found "
|
||||
+ found.size()
|
||||
+ ". Add the provider's module to the runtime classpath and enable it, and make sure"
|
||||
+ " nothing else registers a store.");
|
||||
}
|
||||
return new IdempotencyExecutor(
|
||||
found.get(0),
|
||||
settings.processingLease(),
|
||||
settings.replayTtl(),
|
||||
settings.failureRetention(),
|
||||
settings.responseCodecId(),
|
||||
settings.policyRevision());
|
||||
}
|
||||
}
|
||||
|
||||
-67
@@ -1,67 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.idempotency;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.bind.ConstructorBinding;
|
||||
|
||||
/** Exact provider selector; provider precedence is never inferred from the classpath. */
|
||||
@ConfigurationProperties(prefix = "ca-skeleton.capabilities.idempotency")
|
||||
public record IdempotencyProviderSettings(Provider provider) {
|
||||
|
||||
@ConstructorBinding
|
||||
public IdempotencyProviderSettings {
|
||||
provider = provider == null ? Provider.DISABLED : provider;
|
||||
}
|
||||
|
||||
/**
|
||||
* The stores a deployment may select.
|
||||
*
|
||||
* <p>{@code POSTGRESQL} selects the owner-safe V2 store in the JPA leaf. It had no value here for
|
||||
* as long as it existed, so the only way to reach it was to construct it in a test: a capability
|
||||
* with an implementation, a schema stream and an integration suite that no deployment could turn
|
||||
* on. A store nobody can select is not a feature, and leaving the selector out did not make the
|
||||
* code any less present in the artifact.
|
||||
*/
|
||||
public enum Provider {
|
||||
|
||||
/** Nothing composed — the capability is off. */
|
||||
DISABLED(0, 0, 0, 0),
|
||||
|
||||
/** The JDBC V1 store and its executor. */
|
||||
JDBC(1, 1, 0, 0),
|
||||
|
||||
/** The owner-safe V2 store and its executor. */
|
||||
REDIS(0, 0, 1, 1),
|
||||
|
||||
/** The owner-safe V2 store and its executor — the same contract Redis satisfies. */
|
||||
POSTGRESQL(0, 0, 1, 1);
|
||||
|
||||
private final int jdbcStores;
|
||||
private final int jdbcExecutors;
|
||||
private final int ownerSafeStores;
|
||||
private final int ownerSafeExecutors;
|
||||
|
||||
Provider(int jdbcStores, int jdbcExecutors, int ownerSafeStores, int ownerSafeExecutors) {
|
||||
this.jdbcStores = jdbcStores;
|
||||
this.jdbcExecutors = jdbcExecutors;
|
||||
this.ownerSafeStores = ownerSafeStores;
|
||||
this.ownerSafeExecutors = ownerSafeExecutors;
|
||||
}
|
||||
|
||||
/**
|
||||
* The bean shape this provider requires the composition root to hold.
|
||||
*
|
||||
* <p>Carried by the constant rather than decided by a {@code switch} elsewhere, so a fifth
|
||||
* provider cannot be added without saying what it needs — the compiler asks for the four
|
||||
* arguments (BOOT-010).
|
||||
*
|
||||
* <p>Held as four ints rather than as a shared {@link IdempotencyComposition} constant because
|
||||
* Error Prone's {@code ImmutableEnumChecker} refuses a reference field in an enum unless its
|
||||
* type carries {@code @Immutable}, and that annotation is not a dependency of this build.
|
||||
* Adding one to satisfy a checker would be a worse trade than four primitives.
|
||||
*/
|
||||
IdempotencyComposition composition() {
|
||||
return new IdempotencyComposition(
|
||||
jdbcStores, jdbcExecutors, ownerSafeStores, ownerSafeExecutors);
|
||||
}
|
||||
}
|
||||
}
|
||||
+76
-20
@@ -1,37 +1,93 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.idempotency;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupFailures;
|
||||
import java.time.Duration;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
/**
|
||||
* Idempotency runtime knobs. The {@code <= 72h} TTL cap is enforced fail-fast in the compact
|
||||
* constructor. See README for the design rationale.
|
||||
* The one settings record for request idempotency, bound at {@code
|
||||
* ca-skeleton.capabilities.idempotency}. The executor is built from it once, whichever provider
|
||||
* supplies the store. Every value is checked here, so a bad value fails startup rather than the
|
||||
* first request.
|
||||
*
|
||||
* @param ttl default idempotency record TTL (≤ 72h)
|
||||
* @param reaperInterval how often the expired-record reaper runs
|
||||
* <p>The Redis store reads its own two knobs ({@code key-version}, {@code command-timeout}) under
|
||||
* the same prefix; they are store tuning, not lifecycle policy, so they are not repeated here.
|
||||
*
|
||||
* @param provider which store is composed: {@code disabled}, {@code redis} or {@code postgresql}
|
||||
* @param processingLease how long one attempt holds a claim before another may take it over
|
||||
* @param replayTtl how long a completed response is replayable (at most 72h, D6)
|
||||
* @param failureRetention how long a failed attempt's evidence is kept
|
||||
* @param responseCodecId identifier of the codec the stored payload is written with
|
||||
* @param policyRevision replay policy revision written into and compared on each record
|
||||
* @param reaperInterval how often the PostgreSQL provider purges expired rows
|
||||
*/
|
||||
@Validated
|
||||
@ConfigurationProperties(prefix = "ca-skeleton.idempotency")
|
||||
public record IdempotencySettings(Duration ttl, Duration reaperInterval) {
|
||||
@ConfigurationProperties(prefix = IdempotencySettings.PREFIX)
|
||||
public record IdempotencySettings(
|
||||
Provider provider,
|
||||
Duration processingLease,
|
||||
Duration replayTtl,
|
||||
Duration failureRetention,
|
||||
String responseCodecId,
|
||||
Integer policyRevision,
|
||||
Duration reaperInterval) {
|
||||
|
||||
private static final Duration MAX_TTL = Duration.ofDays(3);
|
||||
static final String PREFIX = "ca-skeleton.capabilities.idempotency";
|
||||
private static final Duration MAX_PROCESSING_LEASE = Duration.ofHours(1);
|
||||
private static final Duration MAX_REPLAY_TTL = Duration.ofDays(3);
|
||||
private static final Duration MAX_FAILURE_RETENTION = Duration.ofDays(30);
|
||||
|
||||
public IdempotencySettings {
|
||||
if (ttl == null) {
|
||||
ttl = Duration.ofHours(24);
|
||||
}
|
||||
if (ttl.isZero() || ttl.isNegative()) {
|
||||
provider = provider == null ? Provider.DISABLED : provider;
|
||||
processingLease =
|
||||
bounded(
|
||||
"processing-lease",
|
||||
orDefault(processingLease, Duration.ofSeconds(30)),
|
||||
MAX_PROCESSING_LEASE);
|
||||
replayTtl = bounded("replay-ttl", orDefault(replayTtl, Duration.ofHours(24)), MAX_REPLAY_TTL);
|
||||
failureRetention =
|
||||
bounded(
|
||||
"failure-retention",
|
||||
orDefault(failureRetention, Duration.ofHours(24)),
|
||||
MAX_FAILURE_RETENTION);
|
||||
reaperInterval =
|
||||
bounded("reaper-interval", orDefault(reaperInterval, Duration.ofMinutes(10)), null);
|
||||
responseCodecId = responseCodecId == null ? "json-v2" : responseCodecId;
|
||||
if (responseCodecId.isBlank() || responseCodecId.length() > 64) {
|
||||
throw StartupFailures.envValidation(
|
||||
"APP_IDEMPOTENCY_TTL (ca-skeleton.idempotency.ttl) must be positive, was " + ttl);
|
||||
PREFIX
|
||||
+ ".response-codec-id must contain 1-64 characters, was '"
|
||||
+ responseCodecId
|
||||
+ "'");
|
||||
}
|
||||
if (ttl.compareTo(MAX_TTL) > 0) {
|
||||
policyRevision = policyRevision == null ? 2 : policyRevision;
|
||||
if (policyRevision < 1) {
|
||||
throw StartupFailures.envValidation(
|
||||
"APP_IDEMPOTENCY_TTL (ca-skeleton.idempotency.ttl) must be <= 72h (D6), was " + ttl);
|
||||
}
|
||||
if (reaperInterval == null || reaperInterval.isZero() || reaperInterval.isNegative()) {
|
||||
reaperInterval = Duration.ofMinutes(10);
|
||||
PREFIX + ".policy-revision must be positive, was " + policyRevision);
|
||||
}
|
||||
}
|
||||
|
||||
private static Duration orDefault(Duration value, Duration fallback) {
|
||||
return value == null ? fallback : value;
|
||||
}
|
||||
|
||||
private static Duration bounded(String key, Duration value, Duration maximum) {
|
||||
if (value.isZero() || value.isNegative()) {
|
||||
throw StartupFailures.envValidation(PREFIX + "." + key + " must be positive, was " + value);
|
||||
}
|
||||
if (maximum != null && value.compareTo(maximum) > 0) {
|
||||
throw StartupFailures.envValidation(
|
||||
PREFIX + "." + key + " must be at most " + maximum + ", was " + value);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/** The stores a deployment may select; never inferred from the classpath. */
|
||||
public enum Provider {
|
||||
/** No store and no executor: the capability is off. */
|
||||
DISABLED,
|
||||
/** The Redis owner-safe store (adapter:outbound:cache-redis). */
|
||||
REDIS,
|
||||
/** The PostgreSQL owner-safe store (adapter:outbound:persistence-jpa). */
|
||||
POSTGRESQL
|
||||
}
|
||||
}
|
||||
|
||||
-61
@@ -1,61 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.idempotency;
|
||||
|
||||
import dev.caskeleton.application.idempotency.v2.IdempotencyExecutorV2;
|
||||
import dev.caskeleton.application.idempotency.v2.IdempotencyStorePortV2;
|
||||
import java.time.Duration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* Composes the application-owned V2 request-replay lifecycle over the selected PostgreSQL store.
|
||||
*
|
||||
* <p>The concrete store is assembled by the JPA leaf under the same provider selector and exposed
|
||||
* only as {@code IdempotencyStorePortV2}. This application configuration owns the lifecycle policy
|
||||
* layered over that port; it does not construct or import the PostgreSQL implementation.
|
||||
*
|
||||
* <p>The lifecycle bounds come from the single registered idempotency TTL rather than from five new
|
||||
* keys. The processing lease is deliberately not derived from it: a lease is how long one attempt
|
||||
* may hold a record before another may take over, which is a property of how long the work takes,
|
||||
* not of how long its result stays replayable.
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(IdempotencySettings.class)
|
||||
@ConditionalOnProperty(
|
||||
name = "ca-skeleton.capabilities.idempotency.provider",
|
||||
havingValue = "postgresql")
|
||||
public class PostgreSqlIdempotencyProviderConfig {
|
||||
|
||||
/**
|
||||
* How long one attempt holds a claim before another caller may take it over.
|
||||
*
|
||||
* <p>The store refuses anything above one hour, and a lease longer than the work it covers turns
|
||||
* a crashed worker into an outage for that key.
|
||||
*/
|
||||
private static final Duration PROCESSING_LEASE = Duration.ofMinutes(2);
|
||||
|
||||
/** The codec identity the stored payload is written with, matching the V2 schema's column. */
|
||||
private static final String RESPONSE_CODEC_ID = "json.v1";
|
||||
|
||||
/** The replay policy revision this schema stream enforces. */
|
||||
private static final int POLICY_REVISION = 2;
|
||||
|
||||
/**
|
||||
* The request-replay lifecycle driven over the store.
|
||||
*
|
||||
* <p>Provider-neutral by type. A selection that produced the store and no executor produced a
|
||||
* store nothing could drive, which is what {@link IdempotencyProviderSelectionConfig} refuses.
|
||||
*/
|
||||
@Bean
|
||||
IdempotencyExecutorV2 postgreSqlIdempotencyExecutorV2(
|
||||
IdempotencyStorePortV2 store, IdempotencySettings settings) {
|
||||
return new IdempotencyExecutorV2(
|
||||
store,
|
||||
PROCESSING_LEASE,
|
||||
settings.ttl(),
|
||||
settings.ttl(),
|
||||
RESPONSE_CODEC_ID,
|
||||
POLICY_REVISION);
|
||||
}
|
||||
}
|
||||
-77
@@ -1,77 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.jpa;
|
||||
|
||||
import dev.caskeleton.shared.activation.MasterSwitch;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Which active capabilities need a relational connection.
|
||||
*
|
||||
* <p>A pool is not JPA's private property. The outbox, the JDBC idempotency store, the
|
||||
* multi-instance lock, the notification store, and the Fileserver transaction path all need one,
|
||||
* and asking only "is JPA off?" would either open a pool nobody uses or silently break a capability
|
||||
* that was legitimately using it. Naming the consumers here turns that into a dependency error an
|
||||
* operator can read.
|
||||
*/
|
||||
public final class DataSourceRequirement {
|
||||
|
||||
private DataSourceRequirement() {}
|
||||
|
||||
/**
|
||||
* Names every active capability that requires a relational connection.
|
||||
*
|
||||
* @param environment the resolved environment
|
||||
* @return one human-readable reason per requiring capability; empty when none does
|
||||
*/
|
||||
public static List<String> reasons(Environment environment) {
|
||||
List<String> reasons = new ArrayList<>();
|
||||
if (isOn(environment, MasterSwitch.PERSISTENCE_JPA.property())) {
|
||||
reasons.add(MasterSwitch.PERSISTENCE_JPA.property() + "=true");
|
||||
}
|
||||
if (isOn(environment, "ca-skeleton.outbox.enabled")) {
|
||||
reasons.add("ca-skeleton.outbox.enabled=true");
|
||||
}
|
||||
String idempotencyProvider =
|
||||
environment.getProperty("ca-skeleton.capabilities.idempotency.provider", "disabled").trim();
|
||||
if ("jdbc".equalsIgnoreCase(idempotencyProvider)
|
||||
|| "postgresql".equalsIgnoreCase(idempotencyProvider)) {
|
||||
reasons.add("ca-skeleton.capabilities.idempotency.provider=" + idempotencyProvider);
|
||||
}
|
||||
if (isOn(environment, "ca-skeleton.runtime.multi-instance-enabled")) {
|
||||
reasons.add("ca-skeleton.runtime.multi-instance-enabled=true");
|
||||
}
|
||||
if (isOn(environment, MasterSwitch.NOTIFICATION_PLATFORM.property())
|
||||
&& !"none"
|
||||
.equalsIgnoreCase(
|
||||
environment.getProperty("ca-skeleton.notification.platform.persistence", "jpa"))) {
|
||||
reasons.add("ca-skeleton.notification.platform.persistence requires a relational store");
|
||||
}
|
||||
// Fileserver's TransactionPort path is a relational consumer too. Named rather than redesigned:
|
||||
// an all-off deployment that quietly opened a pool for it would break the invariant this class
|
||||
// exists to state.
|
||||
if (isOn(environment, "app.fileserver-platform.enabled")
|
||||
&& !"none"
|
||||
.equalsIgnoreCase(
|
||||
environment.getProperty("app.fileserver-platform.transaction-provider", "jpa"))) {
|
||||
reasons.add("app.fileserver-platform.enabled=true with a relational transaction provider");
|
||||
}
|
||||
return List.copyOf(reasons);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reports whether any active capability requires a relational connection.
|
||||
*
|
||||
* @param environment the resolved environment
|
||||
* @return true when at least one capability requires one
|
||||
*/
|
||||
public static boolean isRequired(Environment environment) {
|
||||
return !reasons(environment).isEmpty();
|
||||
}
|
||||
|
||||
private static boolean isOn(Environment environment, String property) {
|
||||
return "true"
|
||||
.equalsIgnoreCase(environment.getProperty(property, "false").toLowerCase(Locale.ROOT));
|
||||
}
|
||||
}
|
||||
-47
@@ -1,47 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.jpa;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.ReadinessGroup;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupOrder;
|
||||
import org.springframework.boot.EnvironmentPostProcessor;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.core.Ordered;
|
||||
import org.springframework.core.env.ConfigurableEnvironment;
|
||||
|
||||
/**
|
||||
* Adds the database readiness contributor to the readiness group, and only when it will exist.
|
||||
*
|
||||
* <p>The same problem {@link RedisReadinessGroupPostProcessor} solves, arriving at {@code db} once
|
||||
* relational persistence became optional. {@code validate-group-membership} is on, so a static
|
||||
* {@code readiness.include: readinessState,db} is not "a database group that is ignored when there
|
||||
* is no database" — it is a deployment that cannot boot without one, which is the opposite of what
|
||||
* the JPA master switch exists to provide.
|
||||
*
|
||||
* <p>Dropping the validation is not the answer either: without it a misspelled contributor is
|
||||
* ignored and readiness reports UP while proving nothing. So membership becomes a function of the
|
||||
* same question that decides whether a {@code DataSource} exists at all — {@link
|
||||
* DataSourceRequirement} — which is asked about capabilities rather than about JPA, because outbox,
|
||||
* idempotency, the distributed lock, the notification store and Fileserver are all legitimate
|
||||
* consumers of the pool.
|
||||
*/
|
||||
public class DatabaseReadinessGroupPostProcessor implements EnvironmentPostProcessor, Ordered {
|
||||
|
||||
static final String DB_CONTRIBUTOR = "db";
|
||||
|
||||
private static final String PROPERTY_SOURCE = "databaseReadinessGroup";
|
||||
|
||||
@Override
|
||||
public void postProcessEnvironment(
|
||||
ConfigurableEnvironment environment, SpringApplication application) {
|
||||
if (!DataSourceRequirement.isRequired(environment)) {
|
||||
return;
|
||||
}
|
||||
ReadinessGroup.include(environment, PROPERTY_SOURCE, DB_CONTRIBUTOR);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getOrder() {
|
||||
// After config data, for the same reason the Redis one does; and after the Redis processor, so
|
||||
// the two appends chain deterministically instead of racing for the same property.
|
||||
return StartupOrder.READINESS_DATABASE;
|
||||
}
|
||||
}
|
||||
-76
@@ -1,76 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.jpa;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.persistence.migration.FlywaySchemaPolicy;
|
||||
import dev.caskeleton.adapter.outbound.support.runtime.RuntimeProfileSnapshot;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Fails startup on the two JPA settings that quietly break production (design §15.1, §31).
|
||||
*
|
||||
* <p><b>Open Session In View.</b> It keeps the Hibernate session open through view rendering, so a
|
||||
* lazy association touched by the serialiser issues a database query from the presentation layer.
|
||||
* Nothing errors: the page renders, the transaction boundary is gone, and one endpoint issues a
|
||||
* query per row of its response. It is on by default in Spring Boot, which is why this guard
|
||||
* exists.
|
||||
*
|
||||
* <p><b>Schema-mutating {@code ddl-auto}.</b> {@code update} never drops or narrows anything, so it
|
||||
* produces a schema that is neither the old one nor the one the migrations describe — and it does
|
||||
* so silently, on whichever instance starts first.
|
||||
*
|
||||
* <p>This guard extends the existing per-setting validators in {@code bootstrap.runtime} to the
|
||||
* whole non-local profile set, so a staging deployment is held to the same rule as production.
|
||||
*/
|
||||
public final class JpaDangerousConfigurationGuard {
|
||||
|
||||
/** The property that enables Open Session In View. */
|
||||
public static final String OPEN_IN_VIEW_KEY = "spring.jpa.open-in-view";
|
||||
|
||||
/** The property that decides whether Hibernate may change the schema. */
|
||||
public static final String DDL_AUTO_KEY = "spring.jpa.hibernate.ddl-auto";
|
||||
|
||||
private final JpaSafetySettings safety;
|
||||
private final FlywaySchemaPolicy schemaPolicy;
|
||||
|
||||
public JpaDangerousConfigurationGuard(JpaSafetySettings safety, FlywaySchemaPolicy schemaPolicy) {
|
||||
this.safety = Objects.requireNonNull(safety, "safety");
|
||||
this.schemaPolicy = Objects.requireNonNull(schemaPolicy, "schemaPolicy");
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates the resolved environment.
|
||||
*
|
||||
* @throws IllegalStateException naming the unsafe property and the approved alternatives
|
||||
*/
|
||||
public void validate(Environment environment) {
|
||||
Objects.requireNonNull(environment, "environment");
|
||||
boolean localConvenience = isLocalConvenience(environment);
|
||||
|
||||
if (Boolean.TRUE.equals(environment.getProperty(OPEN_IN_VIEW_KEY, Boolean.class))
|
||||
&& !localConvenience) {
|
||||
throw StartupFailures.profileMismatch(
|
||||
OPEN_IN_VIEW_KEY
|
||||
+ " must be false outside a local convenience profile: it holds the persistence"
|
||||
+ " context open through view rendering, so a lazy association touched by the"
|
||||
+ " serialiser queries the database from the presentation layer. Approved profiles"
|
||||
+ " for this switch are "
|
||||
+ safety.localConvenienceProfiles());
|
||||
}
|
||||
|
||||
String ddlAuto = environment.getProperty(DDL_AUTO_KEY);
|
||||
if (ddlAuto != null && !localConvenience) {
|
||||
schemaPolicy.requirePermittedDdlAuto(ddlAuto);
|
||||
}
|
||||
}
|
||||
|
||||
/** Whether the active profiles are all local convenience profiles. */
|
||||
public boolean isLocalConvenience(Environment environment) {
|
||||
List<String> active = RuntimeProfileSnapshot.from(environment).activeProfiles();
|
||||
if (active.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
return active.stream().allMatch(safety::isLocalConvenience);
|
||||
}
|
||||
}
|
||||
-69
@@ -1,69 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.jpa;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import java.sql.Connection;
|
||||
import java.sql.SQLException;
|
||||
import java.util.Objects;
|
||||
import javax.sql.DataSource;
|
||||
|
||||
/**
|
||||
* Validates the datasource a deployment is actually pointed at (design §38, §40; JPA-INT-002).
|
||||
*
|
||||
* <p>It used to validate a different one. The bounds came from {@code JpaDataSourceSettings}, bound
|
||||
* to {@code app.jpa-platform.datasource.*}, while the pool that serves requests is built from
|
||||
* {@code spring.datasource.hikari.*} — one pool with two descriptions, and a validator can pass
|
||||
* against the description that is not in use.
|
||||
*
|
||||
* <p>Worse, the parallel namespace appeared in no shipped YAML and no row of the env-key registry,
|
||||
* so both of its fields were always null and {@code requirePoolBounds} would have thrown on every
|
||||
* deployment. Nothing called it, so nothing failed. Two defects that cancelled each other out, and
|
||||
* the reason the application started was the second one hiding the first.
|
||||
*
|
||||
* <p>Now it reads the resolved {@link DataSource} and answers only what the resolved datasource can
|
||||
* answer: the database product and version, from a connection it opens — which also turns an
|
||||
* unreachable database into a startup failure rather than a failure at whoever sends the first
|
||||
* request.
|
||||
*
|
||||
* <p><b>Pool bounds are deliberately not checked here.</b> They belong to {@code
|
||||
* HikariPoolConstraintValidator}, which already reads {@code spring.datasource.hikari.*} — the
|
||||
* namespace that actually builds the pool — and enforces the acquisition floor and the inter-knob
|
||||
* constraints. Duplicating that would be a second opinion on the same properties, and two
|
||||
* validators of one thing is how the parallel namespace started. This class no longer names a pool
|
||||
* type at all, which also keeps HikariCP off app-bootstrap's production classpath, where the build
|
||||
* file deliberately does not put it.
|
||||
*/
|
||||
public final class JpaDataSourceProfileValidator {
|
||||
|
||||
private final PostgreSqlVersionPolicy versionPolicy;
|
||||
|
||||
public JpaDataSourceProfileValidator(PostgreSqlVersionPolicy versionPolicy) {
|
||||
this.versionPolicy = Objects.requireNonNull(versionPolicy, "versionPolicy");
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates the database the resolved datasource reaches, where PostgreSQL is the selected
|
||||
* vendor.
|
||||
*
|
||||
* @param dataSource the resolved datasource
|
||||
* @param requirePostgreSql whether the vendor selector chose PostgreSQL
|
||||
* @throws IllegalStateException naming what was unsupported or unreachable
|
||||
*/
|
||||
public void validateResolved(DataSource dataSource, boolean requirePostgreSql) {
|
||||
Objects.requireNonNull(dataSource, "dataSource");
|
||||
if (!requirePostgreSql) {
|
||||
// Local development runs H2 by design, and PersistenceVendorProdSafetyValidator is what keeps
|
||||
// that out of production. Demanding PostgreSQL here as well would refuse every laptop.
|
||||
return;
|
||||
}
|
||||
try (Connection connection = dataSource.getConnection()) {
|
||||
versionPolicy.requireStable(connection.getMetaData());
|
||||
} catch (SQLException unreachable) {
|
||||
throw StartupFailures.envValidation(
|
||||
"could not open a connection to validate the datasource: "
|
||||
+ unreachable.getMessage()
|
||||
+ ". A context that starts without this check reports healthy and fails on whoever "
|
||||
+ "sends the first request.",
|
||||
unreachable);
|
||||
}
|
||||
}
|
||||
}
|
||||
-55
@@ -1,55 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.jpa;
|
||||
|
||||
import java.util.Set;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigurationImportFilter;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigurationMetadata;
|
||||
import org.springframework.context.EnvironmentAware;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Keeps Boot's relational auto-configurations out of the candidate set while nothing needs them.
|
||||
*
|
||||
* <p>Conditioning only this repository's own configurations is not enough: the JPA and Flyway
|
||||
* starters contribute theirs through Boot's import metadata, so an ordinary
|
||||
* {@code @EnableAutoConfiguration} application opens a pool and runs a migration regardless of what
|
||||
* any project condition says. The requirement is asked as a question about capabilities rather than
|
||||
* about JPA, because the pool has several legitimate consumers.
|
||||
*
|
||||
* <p>A misspelled entry below fails open silently — the filter simply never matches — so the tests
|
||||
* that protect this assert on bean absence rather than on what this method returns.
|
||||
*/
|
||||
public final class JpaOffAutoConfigurationImportFilter
|
||||
implements AutoConfigurationImportFilter, EnvironmentAware {
|
||||
|
||||
private static final Set<String> RELATIONAL_AUTO_CONFIGURATIONS =
|
||||
Set.of(
|
||||
"org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration",
|
||||
"org.springframework.boot.jdbc.autoconfigure.JdbcTemplateAutoConfiguration",
|
||||
"org.springframework.boot.jdbc.autoconfigure.JdbcClientAutoConfiguration",
|
||||
"org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration",
|
||||
"org.springframework.boot.jdbc.autoconfigure.health.DataSourceHealthContributorAutoConfiguration",
|
||||
"org.springframework.boot.jdbc.autoconfigure.metrics.DataSourcePoolMetricsAutoConfiguration",
|
||||
"org.springframework.boot.hibernate.autoconfigure.HibernateJpaAutoConfiguration",
|
||||
"org.springframework.boot.data.jpa.autoconfigure.DataJpaRepositoriesAutoConfiguration",
|
||||
"org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration");
|
||||
|
||||
private Environment environment;
|
||||
|
||||
@Override
|
||||
public boolean[] match(String[] candidates, AutoConfigurationMetadata metadata) {
|
||||
boolean required = environment != null && DataSourceRequirement.isRequired(environment);
|
||||
boolean[] matches = new boolean[candidates.length];
|
||||
for (int index = 0; index < candidates.length; index++) {
|
||||
matches[index] =
|
||||
required
|
||||
|| candidates[index] == null
|
||||
|| !RELATIONAL_AUTO_CONFIGURATIONS.contains(candidates[index]);
|
||||
}
|
||||
return matches;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setEnvironment(Environment environment) {
|
||||
this.environment = environment;
|
||||
}
|
||||
}
|
||||
-123
@@ -1,123 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.jpa;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.persistence.api.capability.CapabilitySupport;
|
||||
import dev.caskeleton.adapter.outbound.persistence.api.capability.JpaCapability;
|
||||
import dev.caskeleton.adapter.outbound.persistence.hibernate.HibernateProviderPolicy;
|
||||
import dev.caskeleton.adapter.outbound.persistence.migration.FlywaySchemaPolicy;
|
||||
import dev.caskeleton.adapter.outbound.persistence.security.DatabasePrivilegeReport;
|
||||
import dev.caskeleton.adapter.outbound.persistence.security.PostgreSqlRuntimeRoleVerifier;
|
||||
import java.sql.Connection;
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import javax.sql.DataSource;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Composes the Stable JPA platform for this application (design §7.1).
|
||||
*
|
||||
* <p>Plain construction rather than Spring auto-configuration. This repository's rule is that
|
||||
* {@code app-bootstrap} owns composition, and an adapter leaf that auto-configured itself would
|
||||
* build beans in any application that merely has it on the classpath — which is how the fileserver
|
||||
* capability once produced beans for a composition root that had no use for them.
|
||||
*
|
||||
* <p>Only Stable modules are composed here. Querydsl, Envers, the second-level cache, and COPY are
|
||||
* Advanced or admin capabilities that require their own dependency and their own explicit opt-in
|
||||
* (design §4.2, §8.4).
|
||||
*/
|
||||
public final class JpaPlatformAutoConfiguration {
|
||||
|
||||
private final Environment environment;
|
||||
private final HibernateProviderPolicy providerPolicy;
|
||||
private final PostgreSqlRuntimeRoleVerifier roleVerifier;
|
||||
|
||||
public JpaPlatformAutoConfiguration(
|
||||
Environment environment,
|
||||
HibernateProviderPolicy providerPolicy,
|
||||
PostgreSqlRuntimeRoleVerifier roleVerifier) {
|
||||
this.environment = Objects.requireNonNull(environment, "environment");
|
||||
this.providerPolicy = Objects.requireNonNull(providerPolicy, "providerPolicy");
|
||||
this.roleVerifier = Objects.requireNonNull(roleVerifier, "roleVerifier");
|
||||
}
|
||||
|
||||
/** The startup guard for the two settings that quietly break production. */
|
||||
public JpaDangerousConfigurationGuard dangerousConfigurationGuard(JpaSafetySettings safety) {
|
||||
return new JpaDangerousConfigurationGuard(safety, FlywaySchemaPolicy.standard());
|
||||
}
|
||||
|
||||
/** The datasource product, version, and pool validator. */
|
||||
public JpaDataSourceProfileValidator dataSourceProfileValidator() {
|
||||
return new JpaDataSourceProfileValidator(new PostgreSqlVersionPolicy());
|
||||
}
|
||||
|
||||
/** The capabilities this composition actually provides. */
|
||||
public List<CapabilitySupport> capabilities() {
|
||||
return List.of(
|
||||
CapabilitySupport.stable(JpaCapability.TRANSACTION_RETRY),
|
||||
CapabilitySupport.advanced(
|
||||
JpaCapability.COMPLETION_EVIDENCE,
|
||||
"requires an application-owned completion-evidence/reconciliation composition"),
|
||||
CapabilitySupport.stable(JpaCapability.KEYSET_PAGINATION),
|
||||
CapabilitySupport.advanced(
|
||||
JpaCapability.BATCH,
|
||||
"requires hibernate.jdbc.batch_size > 0, ordering settings, statistics and JDBC batch instrumentation"),
|
||||
CapabilitySupport.stable(JpaCapability.SCHEMA_GATE),
|
||||
CapabilitySupport.stable(JpaCapability.RUNTIME_ROLE_VERIFICATION),
|
||||
CapabilitySupport.advanced(
|
||||
JpaCapability.OBSERVABILITY,
|
||||
"requires explicit metrics/statistics collector composition"),
|
||||
CapabilitySupport.advanced(
|
||||
JpaCapability.POSTGRESQL_NATIVE_WRITE, "requires a registered statement"),
|
||||
CapabilitySupport.advanced(JpaCapability.POSTGRESQL_WORK_CLAIM, "requires a named queue"),
|
||||
CapabilitySupport.advanced(JpaCapability.POSTGRESQL_JSONB, "requires a registered path"),
|
||||
CapabilitySupport.advanced(JpaCapability.POSTGRESQL_ARRAY_RANGE, "requires a JDBC type"),
|
||||
CapabilitySupport.advanced(JpaCapability.BULK_DML, "requires a registered operation"),
|
||||
CapabilitySupport.advanced(
|
||||
JpaCapability.STATELESS_SESSION, "requires registered work and a row cap"),
|
||||
CapabilitySupport.advanced(
|
||||
JpaCapability.POSTGRESQL_COPY, "requires the admin credential and a registered COPY"),
|
||||
CapabilitySupport.advanced(JpaCapability.L2_CACHE, "requires an enrolled region catalog"),
|
||||
CapabilitySupport.advanced(
|
||||
JpaCapability.ENVERS, "requires the Envers dependency and a retention policy"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds the sanitized report the actuator endpoint serves.
|
||||
*
|
||||
* <p>A failure to read the runtime role is reported as "not verified" rather than propagated: an
|
||||
* unreachable database must not turn the diagnostic endpoint into a second outage.
|
||||
*/
|
||||
public JpaPlatformReport report(DataSource dataSource, String schemaVersion) {
|
||||
Objects.requireNonNull(dataSource, "dataSource");
|
||||
String product = "unknown";
|
||||
int majorVersion = 0;
|
||||
try (Connection connection = dataSource.getConnection()) {
|
||||
product = connection.getMetaData().getDatabaseProductName();
|
||||
majorVersion = connection.getMetaData().getDatabaseMajorVersion();
|
||||
} catch (SQLException unreachable) {
|
||||
// Reported as unknown below; the endpoint must not fail because the database is down.
|
||||
product = "unavailable";
|
||||
}
|
||||
DatabasePrivilegeReport privileges = readPrivileges(dataSource);
|
||||
boolean openInViewDisabled =
|
||||
!Boolean.TRUE.equals(
|
||||
environment.getProperty(
|
||||
JpaDangerousConfigurationGuard.OPEN_IN_VIEW_KEY, Boolean.class));
|
||||
return JpaPlatformReport.sanitized(
|
||||
product,
|
||||
majorVersion,
|
||||
providerPolicy.runtimeVersion(),
|
||||
schemaVersion,
|
||||
openInViewDisabled,
|
||||
privileges,
|
||||
capabilities());
|
||||
}
|
||||
|
||||
private DatabasePrivilegeReport readPrivileges(DataSource dataSource) {
|
||||
try {
|
||||
return roleVerifier.verify(dataSource);
|
||||
} catch (IllegalStateException unverified) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
-34
@@ -1,34 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.jpa;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.function.Supplier;
|
||||
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
|
||||
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
|
||||
|
||||
/**
|
||||
* A read-only actuator view of the JPA platform (design §37).
|
||||
*
|
||||
* <p>Read-only by construction: there is no write operation and no parameter. An endpoint that
|
||||
* could trigger a migration, a repair, or a cache eviction would be an admin capability reachable
|
||||
* over HTTP by whoever reaches the management port, which is exactly the boundary design §8.4 puts
|
||||
* those operations behind.
|
||||
*
|
||||
* <p>The report is recomputed per call rather than cached, because the two most useful facts it
|
||||
* carries — the schema version and whether the runtime role still verifies — are the ones that
|
||||
* change when something has gone wrong.
|
||||
*/
|
||||
@Endpoint(id = "jpaplatform")
|
||||
public class JpaPlatformEndpoint {
|
||||
|
||||
private final Supplier<JpaPlatformReport> reportSupplier;
|
||||
|
||||
public JpaPlatformEndpoint(Supplier<JpaPlatformReport> reportSupplier) {
|
||||
this.reportSupplier = Objects.requireNonNull(reportSupplier, "reportSupplier");
|
||||
}
|
||||
|
||||
/** The current, sanitized platform report. */
|
||||
@ReadOperation
|
||||
public JpaPlatformReport platform() {
|
||||
return reportSupplier.get();
|
||||
}
|
||||
}
|
||||
-64
@@ -1,64 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.jpa;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.persistence.api.capability.CapabilitySupport;
|
||||
import dev.caskeleton.adapter.outbound.persistence.security.DatabasePrivilegeReport;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* What the JPA platform is willing to say about itself over HTTP (design §37).
|
||||
*
|
||||
* <p>The interesting part of this type is what it cannot hold. There is no JDBC URL, no username,
|
||||
* no password, no SQL, and no entity catalog — an actuator endpoint is reachable by anyone who
|
||||
* reaches the management port, and every one of those would be a free reconnaissance answer.
|
||||
*
|
||||
* <p>What it does report is what an operator actually needs during an incident: which database
|
||||
* major version is behind this instance, which provider, which schema version, and whether the
|
||||
* safety properties this platform depends on are holding.
|
||||
*/
|
||||
public record JpaPlatformReport(
|
||||
String databaseProduct,
|
||||
int databaseMajorVersion,
|
||||
String providerVersion,
|
||||
String schemaVersion,
|
||||
boolean openInViewDisabled,
|
||||
boolean runtimeRoleVerified,
|
||||
List<CapabilitySupport> capabilities) {
|
||||
|
||||
public JpaPlatformReport {
|
||||
Objects.requireNonNull(databaseProduct, "databaseProduct");
|
||||
Objects.requireNonNull(providerVersion, "providerVersion");
|
||||
schemaVersion = schemaVersion == null ? "unknown" : schemaVersion;
|
||||
capabilities = List.copyOf(Objects.requireNonNull(capabilities, "capabilities"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds the report, deriving only bounded values from the privilege report.
|
||||
*
|
||||
* <p>The privilege report's {@code currentUser} and {@code searchPath} are deliberately reduced
|
||||
* to a single boolean here: an operator needs to know the runtime role passed verification, not
|
||||
* which role it is.
|
||||
*/
|
||||
public static JpaPlatformReport sanitized(
|
||||
String databaseProduct,
|
||||
int databaseMajorVersion,
|
||||
String providerVersion,
|
||||
String schemaVersion,
|
||||
boolean openInViewDisabled,
|
||||
DatabasePrivilegeReport privileges,
|
||||
List<CapabilitySupport> capabilities) {
|
||||
return new JpaPlatformReport(
|
||||
databaseProduct,
|
||||
databaseMajorVersion,
|
||||
providerVersion,
|
||||
schemaVersion,
|
||||
openInViewDisabled,
|
||||
privileges != null && !privileges.holdsCreatePrivilege(),
|
||||
capabilities);
|
||||
}
|
||||
|
||||
/** Whether every safety property this platform depends on is currently holding. */
|
||||
public boolean safe() {
|
||||
return openInViewDisabled && runtimeRoleVerified;
|
||||
}
|
||||
}
|
||||
-107
@@ -1,107 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.jpa;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.persistence.hibernate.HibernateProviderPolicy;
|
||||
import dev.caskeleton.adapter.outbound.persistence.security.PostgreSqlRuntimeRoleVerifier;
|
||||
import java.util.function.Supplier;
|
||||
import javax.sql.DataSource;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Application-owned JPA startup safety and management composition.
|
||||
*
|
||||
* <p>The persistence leaf owns provider selection, vendor beans, transaction execution and retry.
|
||||
* This configuration consumes those collaborators only to apply application deployment policy:
|
||||
* unsafe JPA settings fail startup, the resolved datasource is reported through a sanitized
|
||||
* actuator view, and application-owned safety settings stay in the composition root.
|
||||
*
|
||||
* <p>The add-on switch remains for these application-level diagnostics and guards. It does not
|
||||
* control whether relational persistence exists; the capability master switch is {@code
|
||||
* ca-skeleton.persistence-jpa.enabled} and is owned by the persistence leaf.
|
||||
*/
|
||||
@org.springframework.context.annotation.Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(DataSource.class)
|
||||
@ConditionalOnProperty(prefix = "app.jpa-platform", name = "addons-enabled", matchIfMissing = true)
|
||||
@EnableConfigurationProperties(JpaSafetySettings.class)
|
||||
public class JpaPlatformRuntimeAutoConfiguration {
|
||||
|
||||
/** The composition factory, exposed so an application can reuse its decisions. */
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public JpaPlatformAutoConfiguration jpaPlatformComposition(
|
||||
Environment environment,
|
||||
HibernateProviderPolicy providerPolicy,
|
||||
PostgreSqlRuntimeRoleVerifier roleVerifier) {
|
||||
return new JpaPlatformAutoConfiguration(environment, providerPolicy, roleVerifier);
|
||||
}
|
||||
|
||||
/**
|
||||
* The startup guard for the two settings that quietly break production.
|
||||
*
|
||||
* <p>An {@code InitializingBean} wrapper is deliberately not used here: the guard is a bean an
|
||||
* application can also invoke itself, and the refresh-time check belongs to whoever decides
|
||||
* <em>when</em> a misconfiguration should stop a boot.
|
||||
*/
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public JpaDangerousConfigurationGuard jpaDangerousConfigurationGuard(
|
||||
JpaPlatformAutoConfiguration composition, JpaSafetySettings safety) {
|
||||
return composition.dangerousConfigurationGuard(safety);
|
||||
}
|
||||
|
||||
/** The datasource product, version and pool validator. */
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public JpaDataSourceProfileValidator jpaDataSourceProfileValidator(
|
||||
JpaPlatformAutoConfiguration composition) {
|
||||
return composition.dataSourceProfileValidator();
|
||||
}
|
||||
|
||||
/** The platform report the actuator endpoint serves. */
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public Supplier<JpaPlatformReport> jpaPlatformReportSupplier(
|
||||
JpaPlatformAutoConfiguration composition, DataSource dataSource) {
|
||||
// Computed per request rather than at startup: the report names the live schema version, and a
|
||||
// value captured at boot would keep reporting the version the application started with.
|
||||
return () -> composition.report(dataSource, schemaVersion(dataSource));
|
||||
}
|
||||
|
||||
/**
|
||||
* The actuator endpoint.
|
||||
*
|
||||
* <p>{@code @Endpoint} alone registers nothing; exposure is still governed by the application's
|
||||
* existing {@code management.endpoints} policy, which this deliberately does not widen.
|
||||
*/
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
@ConditionalOnBean(name = "jpaPlatformReportSupplier")
|
||||
public JpaPlatformEndpoint jpaPlatformEndpoint(Supplier<JpaPlatformReport> reportSupplier) {
|
||||
return new JpaPlatformEndpoint(reportSupplier);
|
||||
}
|
||||
|
||||
/** Runs the dangerous-configuration guard during refresh. */
|
||||
@Bean
|
||||
public InitializingBean jpaPlatformStartupCheck(
|
||||
JpaDangerousConfigurationGuard guard, Environment environment) {
|
||||
// A refresh-time failure beats a runtime one: OSIV left on, or a schema-mutating ddl-auto in a
|
||||
// profile that forbids it, is a deployment mistake and not a request-time condition.
|
||||
return () -> guard.validate(environment);
|
||||
}
|
||||
|
||||
private static String schemaVersion(DataSource dataSource) {
|
||||
try (var connection = dataSource.getConnection()) {
|
||||
return connection.getMetaData().getDatabaseProductVersion();
|
||||
} catch (java.sql.SQLException unavailable) {
|
||||
// Reporting "unknown" is honest; failing the endpoint over a transient connection problem
|
||||
// would turn a diagnostic into an outage.
|
||||
return "unknown";
|
||||
}
|
||||
}
|
||||
}
|
||||
-49
@@ -1,49 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.jpa;
|
||||
|
||||
import dev.caskeleton.shared.runtime.RuntimeEnvironment;
|
||||
import java.util.Set;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.bind.DefaultValue;
|
||||
|
||||
/**
|
||||
* The JPA safety switches the composition root binds (design §15, §31).
|
||||
*
|
||||
* <p>{@code enabled} defaults to {@code true}, declared rather than implied. A primitive {@code
|
||||
* boolean} binds to {@code false} when the property is absent, so this record said "the defaults
|
||||
* are enabled" in {@link #defaults()} while an application that configured nothing got the safety
|
||||
* switches turned off — the two answers disagreed precisely for the deployments that never thought
|
||||
* about it.
|
||||
*
|
||||
* <p>{@code localConvenienceProfiles} names the profiles where Open Session In View may be left on
|
||||
* — a developer running a template locally, and nothing else. It is a list rather than a boolean so
|
||||
* that "on in local" cannot silently expand to another runtime environment when policy changes.
|
||||
*/
|
||||
@ConfigurationProperties(prefix = "app.jpa-platform")
|
||||
public record JpaSafetySettings(
|
||||
@DefaultValue("true") boolean enabled,
|
||||
Set<String> localConvenienceProfiles,
|
||||
Set<String> schemaMutatingProfiles) {
|
||||
|
||||
/** The profiles that may run with OSIV enabled, when nothing else is configured. */
|
||||
public static final Set<String> DEFAULT_LOCAL_PROFILES =
|
||||
Set.of(RuntimeEnvironment.LOCAL.profileName(), RuntimeEnvironment.testProfileName());
|
||||
|
||||
public JpaSafetySettings {
|
||||
localConvenienceProfiles =
|
||||
localConvenienceProfiles == null || localConvenienceProfiles.isEmpty()
|
||||
? DEFAULT_LOCAL_PROFILES
|
||||
: Set.copyOf(localConvenienceProfiles);
|
||||
schemaMutatingProfiles =
|
||||
schemaMutatingProfiles == null ? Set.of() : Set.copyOf(schemaMutatingProfiles);
|
||||
}
|
||||
|
||||
/** The defaults: enabled, local convenience in local/test, schema mutation nowhere. */
|
||||
public static JpaSafetySettings defaults() {
|
||||
return new JpaSafetySettings(true, DEFAULT_LOCAL_PROFILES, Set.of());
|
||||
}
|
||||
|
||||
/** Whether a profile may run with OSIV enabled. */
|
||||
public boolean isLocalConvenience(String profile) {
|
||||
return localConvenienceProfiles.contains(profile);
|
||||
}
|
||||
}
|
||||
-48
@@ -1,48 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.jpa;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.startup.FlywayProdSafetyValidator;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.MigrationStartupRunner;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.RequiredEnvironmentValidator;
|
||||
import dev.caskeleton.bootstrap.settings.RuntimeSafetySettings;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.flyway.autoconfigure.FlywayMigrationStrategy;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Composition-root wiring for the startup migration guards and the Flyway migration strategy. See
|
||||
* README for the design rationale.
|
||||
*
|
||||
* <p>Gated on the JPA master, and imported by {@code PersistenceJpaRootAutoConfiguration}. Before
|
||||
* that, a Flyway migration strategy, a datasource environment validator, and a prod Flyway
|
||||
* validator were created on every startup — including deployments with no database, where migration
|
||||
* is not a thing that can be safe or unsafe, only absent.
|
||||
*/
|
||||
@Configuration
|
||||
@ConditionalOnProperty(
|
||||
prefix = "ca-skeleton.persistence-jpa",
|
||||
name = "enabled",
|
||||
havingValue = "true")
|
||||
public class MigrationStartupConfig {
|
||||
|
||||
/**
|
||||
* Bean name must stay {@code migrationStartupRunner} (Flyway autoconfiguration delegates to it).
|
||||
*/
|
||||
@Bean
|
||||
FlywayMigrationStrategy migrationStartupRunner(RuntimeSafetySettings settings) {
|
||||
return new MigrationStartupRunner(settings);
|
||||
}
|
||||
|
||||
/** Env-validation (exit 78): datasource connection env present before migration runs. */
|
||||
@Bean
|
||||
RequiredEnvironmentValidator requiredEnvironmentValidator(Environment environment) {
|
||||
return new RequiredEnvironmentValidator(environment);
|
||||
}
|
||||
|
||||
/** Profile check (exit 71): forbidden Flyway options stay off under the prod profile. */
|
||||
@Bean
|
||||
FlywayProdSafetyValidator flywayProdSafetyValidator(Environment environment) {
|
||||
return new FlywayProdSafetyValidator(environment);
|
||||
}
|
||||
}
|
||||
-49
@@ -1,49 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.jpa;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.persistence.config.PersistenceVendorSettings;
|
||||
import javax.sql.DataSource;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Import;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Application startup policy layered over the leaf-owned relational persistence capability.
|
||||
*
|
||||
* <p>The persistence leaf owns entity/repository discovery, vendor selection, optional capability
|
||||
* persistence registrations, and reusable transaction/retry runtime. This root deliberately does
|
||||
* not reconstruct those implementation details.
|
||||
*
|
||||
* <p>What remains application-owned is startup/deployment policy: migration startup sequencing,
|
||||
* resolved datasource validation, OSIV/DDL safety, and the sanitized management view. The root
|
||||
* carries the same master switch so those checks never bind or run while JPA is disabled; bean
|
||||
* dependencies, not a reference to leaf-internal auto-configuration classes, provide runtime
|
||||
* ordering.
|
||||
*/
|
||||
@AutoConfiguration
|
||||
@ConditionalOnProperty(
|
||||
prefix = "ca-skeleton.persistence-jpa",
|
||||
name = "enabled",
|
||||
havingValue = "true")
|
||||
@Import({MigrationStartupConfig.class, JpaPlatformRuntimeAutoConfiguration.class})
|
||||
public class PersistenceJpaRootAutoConfiguration {
|
||||
|
||||
/**
|
||||
* Validates the datasource the application actually resolved.
|
||||
*
|
||||
* <p>The vendor selector is read from the environment because the persistence settings tree is
|
||||
* intentionally bound only by the enabled leaf. PostgreSQL validation opens the resolved
|
||||
* datasource during startup; H2 local-development selection skips the PostgreSQL product check.
|
||||
*/
|
||||
@Bean
|
||||
public InitializingBean jpaResolvedDataSourceCheck(
|
||||
DataSource dataSource, Environment environment) {
|
||||
JpaDataSourceProfileValidator validator =
|
||||
new JpaDataSourceProfileValidator(new PostgreSqlVersionPolicy());
|
||||
String vendor =
|
||||
environment.getProperty(PersistenceVendorSettings.VENDOR_PROPERTY, "postgresql").trim();
|
||||
return () -> validator.validateResolved(dataSource, "postgresql".equalsIgnoreCase(vendor));
|
||||
}
|
||||
}
|
||||
-50
@@ -1,50 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.jpa;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import java.sql.DatabaseMetaData;
|
||||
import java.sql.SQLException;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Refuses a database the Stable contract suite has not been run against (design §40).
|
||||
*
|
||||
* <p>PostgreSQL 19 is reported rather than accepted. A newer server usually works, and "usually
|
||||
* works" is the failure this policy exists to prevent: the Stable claim is backed by a contract
|
||||
* suite that ran on 16, 17, and 18, and a deployment on 19 is outside the evidence whether or not
|
||||
* it happens to behave.
|
||||
*/
|
||||
public final class PostgreSqlVersionPolicy {
|
||||
|
||||
/** The major versions the Stable contract suite covers. */
|
||||
private static final Set<Integer> STABLE = Set.of(16, 17, 18);
|
||||
|
||||
/** The product name the Stable profile requires. */
|
||||
public static final String POSTGRESQL = "PostgreSQL";
|
||||
|
||||
/**
|
||||
* Fails when the connected database is not a Stable PostgreSQL.
|
||||
*
|
||||
* @throws IllegalStateException naming the accepted versions
|
||||
*/
|
||||
public void requireStable(DatabaseMetaData metadata) throws SQLException {
|
||||
String product = metadata.getDatabaseProductName();
|
||||
int major = metadata.getDatabaseMajorVersion();
|
||||
if (!POSTGRESQL.equals(product) || !STABLE.contains(major)) {
|
||||
throw StartupFailures.envValidation(
|
||||
"Stable JPA profile requires PostgreSQL 16, 17 or 18, but the datasource reported "
|
||||
+ product
|
||||
+ ' '
|
||||
+ major);
|
||||
}
|
||||
}
|
||||
|
||||
/** Whether a major version is inside the Stable matrix. */
|
||||
public boolean isStable(String product, int majorVersion) {
|
||||
return POSTGRESQL.equals(product) && STABLE.contains(majorVersion);
|
||||
}
|
||||
|
||||
/** The Stable major versions. */
|
||||
public Set<Integer> stableVersions() {
|
||||
return STABLE;
|
||||
}
|
||||
}
|
||||
-34
@@ -1,34 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.lock;
|
||||
|
||||
import dev.caskeleton.application.lock.DistributedLockPort;
|
||||
import io.micrometer.core.instrument.MeterRegistry;
|
||||
import org.springframework.beans.factory.ObjectProvider;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Primary;
|
||||
|
||||
/**
|
||||
* Composition-root wiring for the distributed-lock metrics decorator. See README for the design
|
||||
* rationale.
|
||||
*/
|
||||
@AutoConfiguration
|
||||
public class DistributedLockConfig {
|
||||
|
||||
/**
|
||||
* The bean name {@code "distributedLockProvider"} is the contract with {@code
|
||||
* StartupSafetyValidator} — do not rename. See README for the design rationale.
|
||||
*/
|
||||
@Bean(name = "distributedLockProvider")
|
||||
@Primary
|
||||
@ConditionalOnProperty(
|
||||
prefix = "ca-skeleton.runtime",
|
||||
name = "multi-instance-enabled",
|
||||
havingValue = "true")
|
||||
DistributedLockPort distributedLockProvider(
|
||||
@Qualifier("jdbcDistributedLock") DistributedLockPort jdbcDistributedLock,
|
||||
ObjectProvider<MeterRegistry> meterRegistry) {
|
||||
return new MeteredDistributedLockPort(jdbcDistributedLock, meterRegistry);
|
||||
}
|
||||
}
|
||||
-101
@@ -1,101 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.lock;
|
||||
|
||||
import static net.logstash.logback.argument.StructuredArguments.kv;
|
||||
|
||||
import dev.caskeleton.application.lock.DistributedLock;
|
||||
import dev.caskeleton.application.lock.DistributedLockPort;
|
||||
import dev.caskeleton.application.lock.LockAcquisitionTimeoutException;
|
||||
import dev.caskeleton.bootstrap.runtime.RuntimeWarnings;
|
||||
import io.micrometer.core.instrument.Counter;
|
||||
import io.micrometer.core.instrument.MeterRegistry;
|
||||
import java.time.Duration;
|
||||
import java.util.ConcurrentModificationException;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.ObjectProvider;
|
||||
|
||||
/**
|
||||
* Metrics decorator for {@link DistributedLockPort}. Metric failures are logged-and-swallowed so
|
||||
* they never affect the lock path. See README for the design rationale.
|
||||
*/
|
||||
public final class MeteredDistributedLockPort implements DistributedLockPort {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(MeteredDistributedLockPort.class);
|
||||
|
||||
static final String LOCK_ACQUISITION = "lock.acquisition";
|
||||
static final String TAG_OUTCOME = "outcome";
|
||||
static final String OUTCOME_ACQUIRED = "acquired";
|
||||
static final String OUTCOME_TIMEOUT = "timeout";
|
||||
static final String OUTCOME_ERROR = "error";
|
||||
|
||||
static final String LOCK_LEASE_EXPIRED = "lock.lease.expired";
|
||||
|
||||
private final DistributedLockPort delegate;
|
||||
private final MeterRegistry registry; // null when no MeterRegistry on classpath
|
||||
|
||||
public MeteredDistributedLockPort(
|
||||
DistributedLockPort delegate, ObjectProvider<MeterRegistry> meterRegistryProvider) {
|
||||
this.delegate = delegate;
|
||||
this.registry = meterRegistryProvider.getIfAvailable();
|
||||
}
|
||||
|
||||
@Override
|
||||
public DistributedLock tryAcquire(String key, Duration waitTime, Duration leaseTtl) {
|
||||
try {
|
||||
DistributedLock handle = delegate.tryAcquire(key, waitTime, leaseTtl);
|
||||
increment(OUTCOME_ACQUIRED);
|
||||
return () -> closeHandlingLeaseExpiry(key, handle);
|
||||
} catch (LockAcquisitionTimeoutException e) {
|
||||
increment(OUTCOME_TIMEOUT);
|
||||
throw e;
|
||||
} catch (RuntimeException e) {
|
||||
increment(OUTCOME_ERROR);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Absorbs a lease-expiry {@link ConcurrentModificationException} on close so it does not disrupt
|
||||
* the caller's {@code finally} block; any other exception propagates unchanged. See README for
|
||||
* the design rationale.
|
||||
*/
|
||||
private void closeHandlingLeaseExpiry(String key, DistributedLock handle) {
|
||||
try {
|
||||
handle.close();
|
||||
} catch (ConcurrentModificationException e) {
|
||||
// Lease expired before release: the lock row was reclaimed, so another instance may
|
||||
// have entered the critical section. Surface it (log + metric) but return normally.
|
||||
log.warn(
|
||||
"distributed lock '{}' had already been released by lease expiry before close() "
|
||||
+ "— another instance may have entered the critical section (D6 efficiency-lock boundary)",
|
||||
key,
|
||||
kv("capability", "distributed-lock"),
|
||||
kv("warning.kind", "lease-expired-before-close"),
|
||||
e);
|
||||
incrementLeaseExpired();
|
||||
}
|
||||
}
|
||||
|
||||
private void increment(String outcome) {
|
||||
if (registry == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
Counter.builder(LOCK_ACQUISITION).tag(TAG_OUTCOME, outcome).register(registry).increment();
|
||||
} catch (RuntimeException ex) {
|
||||
RuntimeWarnings.meterUnavailable(
|
||||
"distributed-lock", LOCK_ACQUISITION + "[outcome=" + outcome + "]", ex);
|
||||
}
|
||||
}
|
||||
|
||||
private void incrementLeaseExpired() {
|
||||
if (registry == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
Counter.builder(LOCK_LEASE_EXPIRED).register(registry).increment();
|
||||
} catch (RuntimeException ex) {
|
||||
RuntimeWarnings.meterUnavailable("distributed-lock", LOCK_LEASE_EXPIRED, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
-47
@@ -1,47 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.messaging;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.messaging.core.DisabledMessagePublisher;
|
||||
import dev.caskeleton.adapter.outbound.messaging.core.MessagePublisher;
|
||||
import dev.caskeleton.adapter.outbound.messaging.outbox.DisabledOutboxMessagePublisher;
|
||||
import dev.caskeleton.application.outbox.OutboxMessagePublishPort;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
|
||||
/**
|
||||
* Supplies the fail-fast stand-ins for a messaging capability nobody enabled.
|
||||
*
|
||||
* <p>The adapter used to register these itself, which meant an application with messaging switched
|
||||
* off still held two messaging beans — and the off invariant says an adapter that is off owns
|
||||
* nothing. The stand-ins still have to exist for any consumer that requires a publisher
|
||||
* unconditionally, so the composition root provides them: it is the layer that knows what the rest
|
||||
* of the application demands, and it is not the adapter.
|
||||
*
|
||||
* <p>{@code @ConditionalOnMissingBean} rather than a switch condition, so turning messaging on
|
||||
* replaces these without either side naming the other.
|
||||
*/
|
||||
@AutoConfiguration
|
||||
public class DisabledMessagingSentinelAutoConfiguration {
|
||||
|
||||
/**
|
||||
* The generic publisher stand-in.
|
||||
*
|
||||
* @return a publisher that throws {@code AdapterDisabledException} on first use
|
||||
*/
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(MessagePublisher.class)
|
||||
public MessagePublisher disabledMessagePublisher() {
|
||||
return new DisabledMessagePublisher();
|
||||
}
|
||||
|
||||
/**
|
||||
* The outbox publish-port stand-in.
|
||||
*
|
||||
* @return a port that throws {@code AdapterDisabledException} on first use
|
||||
*/
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(OutboxMessagePublishPort.class)
|
||||
public OutboxMessagePublishPort disabledOutboxMessagePublishPort() {
|
||||
return new DisabledOutboxMessagePublisher();
|
||||
}
|
||||
}
|
||||
-329
@@ -1,329 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.notification;
|
||||
|
||||
import dev.caskeleton.adapter.inbound.web.notification.platform.callback.ProviderCallbackIngress;
|
||||
import dev.caskeleton.adapter.outbound.notification.platform.callback.ProviderCallbackAdapterRegistry;
|
||||
import dev.caskeleton.adapter.outbound.notification.platform.dispatch.NotificationDispatchProperties;
|
||||
import dev.caskeleton.application.notification.platform.callback.CallbackPayloadProtectionPort;
|
||||
import dev.caskeleton.application.notification.platform.callback.DeliveryAttemptResolverPort;
|
||||
import dev.caskeleton.application.notification.platform.callback.DeliveryProjectionStorePort;
|
||||
import dev.caskeleton.application.notification.platform.callback.IngestProviderCallbackApplicationUseCase;
|
||||
import dev.caskeleton.application.notification.platform.callback.NotificationSideEffectPort;
|
||||
import dev.caskeleton.application.notification.platform.callback.ProviderEventLedger;
|
||||
import dev.caskeleton.application.notification.platform.callback.ProviderEventProjectionService;
|
||||
import dev.caskeleton.application.notification.platform.callback.ProviderEventProjectorRegistry;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.CanonicalNotificationPlanWriter;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.ContactPointStorePort;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.DeliveryAttemptFactory;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.DeliveryAttemptStorePort;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.DispatchOutcomeRecorder;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.DispatchPipeline;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.NotificationDispatchService;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.NotificationIdGeneratorPort;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.NotificationRequestStorePort;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.NotificationSubmissionService;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.ProviderDispatchGatewayPort;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.RecipientDeliveryStorePort;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.RecipientLeaseStorePort;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.ReconciliationService;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.RequestFingerprint;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.TemplateRendererRegistry;
|
||||
import dev.caskeleton.application.notification.platform.dispatch.TenantContextPort;
|
||||
import dev.caskeleton.application.notification.platform.observation.NotificationMetricsPort;
|
||||
import dev.caskeleton.application.notification.platform.observation.NotificationSecurityAuditPort;
|
||||
import dev.caskeleton.application.notification.platform.policy.NotificationRetryPolicy;
|
||||
import dev.caskeleton.application.notification.platform.policy.RoutingDecisionEngine;
|
||||
import dev.caskeleton.application.notification.platform.port.in.IngestProviderCallbackUseCase;
|
||||
import dev.caskeleton.application.notification.platform.template.TemplateRegistry;
|
||||
import dev.caskeleton.application.transaction.TransactionPort;
|
||||
import java.time.Clock;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
|
||||
/** Application-owned Notification orchestration and transaction-bound use-case assembly. */
|
||||
@AutoConfiguration(
|
||||
afterName =
|
||||
"dev.caskeleton.adapter.outbound.notification.platform.autoconfigure.NotificationPlatformAutoConfiguration")
|
||||
@ConditionalOnProperty(
|
||||
prefix = "ca-skeleton.notification.platform",
|
||||
name = "enabled",
|
||||
havingValue = "true")
|
||||
public class NotificationApplicationCompositionAutoConfiguration {
|
||||
/** N2 orchestration. */
|
||||
@Bean
|
||||
public NotificationSubmissionService notificationOrchestrator(
|
||||
NotificationRequestStorePort requests,
|
||||
RecipientDeliveryStorePort recipients,
|
||||
DeliveryAttemptStorePort attempts,
|
||||
TemplateRegistry templates,
|
||||
RequestFingerprint fingerprints,
|
||||
CanonicalNotificationPlanWriter writer,
|
||||
TransactionPort transactions,
|
||||
TenantContextPort tenants,
|
||||
dev.caskeleton.application.notification.platform.policy.DeduplicationService deduplication,
|
||||
NotificationMetricsPort metrics,
|
||||
Clock clock) {
|
||||
return new NotificationSubmissionService(
|
||||
requests,
|
||||
recipients,
|
||||
attempts,
|
||||
templates,
|
||||
fingerprints,
|
||||
writer,
|
||||
transactions,
|
||||
tenants,
|
||||
deduplication,
|
||||
metrics,
|
||||
clock);
|
||||
}
|
||||
|
||||
/**
|
||||
* The split inbound use cases.
|
||||
*
|
||||
* <p>Four beans rather than one orchestrator, because four capabilities cannot be declared on one
|
||||
* class — and a caller depending on the whole orchestrator depends on three operations it does
|
||||
* not use.
|
||||
*
|
||||
* @param service the shared submission service
|
||||
* @param transactions the transaction boundary each use case opens for itself
|
||||
* @return the use case
|
||||
*/
|
||||
/**
|
||||
* The transport-facing entry point: accept by address (NTF-INT-008).
|
||||
*
|
||||
* <p>Separate from {@code submitNotificationUseCase}, which it delegates to. That one takes a
|
||||
* plan whose recipients reference contact points already in the directory; this one takes an
|
||||
* address, registers or reuses the contact point, and builds the plan. Without it the platform is
|
||||
* reachable only by a caller that already holds contact point ids — and the platform ships no way
|
||||
* to obtain one, so it was reachable by nobody.
|
||||
*
|
||||
* @param submit the plan-shaped submission it delegates to
|
||||
* @param contactPoints the contact point directory
|
||||
* @param protector the encryption and keyed-lookup boundary
|
||||
* @param tenants the ambient tenant
|
||||
* @param ids the identifier source for the contact point and correlation ids
|
||||
* @param fingerprints canonical SHA-256 fingerprinting used when the caller supplies no key
|
||||
* @param transactions the write boundary for registration
|
||||
* @param clock the registration time source
|
||||
* @return the use case
|
||||
*/
|
||||
@Bean
|
||||
public dev.caskeleton.application.notification.platform.port.in.AcceptNotificationUseCase
|
||||
acceptNotificationUseCase(
|
||||
dev.caskeleton.application.notification.platform.port.in.SubmitNotificationUseCase submit,
|
||||
ContactPointStorePort contactPoints,
|
||||
dev.caskeleton.application.notification.platform.security.ContactPointProtector protector,
|
||||
TenantContextPort tenants,
|
||||
NotificationIdGeneratorPort ids,
|
||||
RequestFingerprint fingerprints,
|
||||
TransactionPort transactions,
|
||||
Clock clock) {
|
||||
return new dev.caskeleton.application.notification.platform.dispatch
|
||||
.AcceptNotificationApplicationUseCase(
|
||||
submit, contactPoints, protector, tenants, ids, fingerprints, transactions, clock);
|
||||
}
|
||||
|
||||
/**
|
||||
* Publishing a template version.
|
||||
*
|
||||
* <p>A submission pins a template id and version and the platform refuses one it cannot resolve,
|
||||
* so a deployment with no published template can accept nothing. {@code TemplateRegistry.publish}
|
||||
* existed throughout and was called by no application code and no transport.
|
||||
*
|
||||
* @param templates the registry
|
||||
* @param digests the hashing boundary used for the content digest
|
||||
* @param transactions the write boundary
|
||||
* @return the use case
|
||||
*/
|
||||
@Bean
|
||||
public dev.caskeleton.application.notification.platform.port.in.PublishNotificationTemplateUseCase
|
||||
publishNotificationTemplateUseCase(
|
||||
TemplateRegistry templates,
|
||||
dev.caskeleton.application.notification.platform.dispatch.MessageDigestPort digests,
|
||||
TransactionPort transactions) {
|
||||
return new dev.caskeleton.application.notification.platform.dispatch
|
||||
.PublishNotificationTemplateApplicationUseCase(templates, digests, transactions);
|
||||
}
|
||||
|
||||
@Bean
|
||||
public dev.caskeleton.application.notification.platform.port.in.SubmitNotificationUseCase
|
||||
submitNotificationUseCase(
|
||||
NotificationSubmissionService service, TransactionPort transactions) {
|
||||
return new dev.caskeleton.application.notification.platform.dispatch
|
||||
.SubmitNotificationApplicationUseCase(service, transactions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Scheduling a notification for later.
|
||||
*
|
||||
* @param service the shared submission service
|
||||
* @param transactions the transaction boundary
|
||||
* @return the use case
|
||||
*/
|
||||
@Bean
|
||||
public dev.caskeleton.application.notification.platform.port.in.ScheduleNotificationUseCase
|
||||
scheduleNotificationUseCase(
|
||||
NotificationSubmissionService service, TransactionPort transactions) {
|
||||
return new dev.caskeleton.application.notification.platform.dispatch
|
||||
.ScheduleNotificationApplicationUseCase(service, transactions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancelling a notification.
|
||||
*
|
||||
* @param service the shared submission service
|
||||
* @param transactions the transaction boundary
|
||||
* @return the use case
|
||||
*/
|
||||
@Bean
|
||||
public dev.caskeleton.application.notification.platform.port.in.CancelNotificationUseCase
|
||||
cancelNotificationUseCase(
|
||||
NotificationSubmissionService service, TransactionPort transactions) {
|
||||
return new dev.caskeleton.application.notification.platform.dispatch
|
||||
.CancelNotificationApplicationUseCase(service, transactions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reading a notification.
|
||||
*
|
||||
* @param service the shared submission service
|
||||
* @param transactions the transaction boundary
|
||||
* @return the use case
|
||||
*/
|
||||
@Bean
|
||||
public dev.caskeleton.application.notification.platform.port.in.GetNotificationUseCase
|
||||
getNotificationUseCase(NotificationSubmissionService service, TransactionPort transactions) {
|
||||
return new dev.caskeleton.application.notification.platform.dispatch
|
||||
.GetNotificationApplicationUseCase(service, transactions);
|
||||
}
|
||||
|
||||
/**
|
||||
* The N4 operator plane.
|
||||
*
|
||||
* @param authorization operator authority and tenant scope
|
||||
* @param duplicateRiskGuard ambiguous-redrive approval
|
||||
* @param attempts the attempt store
|
||||
* @param recipients the delivery store
|
||||
* @param reconciliation the reconciliation service
|
||||
* @param suppressions the suppression store
|
||||
* @param runtimes the narrow runtime control port
|
||||
* @param operations the admin operation claims
|
||||
* @param audit the audit sink
|
||||
* @param transactions the transaction boundary
|
||||
* @param ids the identifier generator the suppression rows use
|
||||
* @param digests stable SHA-256 used to bind an operation id to its command
|
||||
* @param clock the clock
|
||||
* @return the admin service
|
||||
*/
|
||||
@Bean
|
||||
public dev.caskeleton.application.notification.platform.admin.NotificationAdminService
|
||||
notificationAdminService(
|
||||
dev.caskeleton.application.notification.platform.admin.AdminAuthorizationGuard
|
||||
authorization,
|
||||
dev.caskeleton.application.notification.platform.admin.DuplicateRiskGuard
|
||||
duplicateRiskGuard,
|
||||
DeliveryAttemptStorePort attempts,
|
||||
RecipientDeliveryStorePort recipients,
|
||||
ReconciliationService reconciliation,
|
||||
dev.caskeleton.application.notification.platform.policy.SuppressionStorePort suppressions,
|
||||
dev.caskeleton.application.notification.platform.admin.ProviderRuntimeControlPort
|
||||
runtimes,
|
||||
dev.caskeleton.application.notification.platform.admin.AdminOperationStorePort operations,
|
||||
dev.caskeleton.application.notification.platform.observation.NotificationAuditPort audit,
|
||||
TransactionPort transactions,
|
||||
NotificationIdGeneratorPort ids,
|
||||
dev.caskeleton.application.notification.platform.dispatch.MessageDigestPort digests,
|
||||
Clock clock) {
|
||||
return new dev.caskeleton.application.notification.platform.admin
|
||||
.NotificationAdminApplicationService(
|
||||
authorization,
|
||||
duplicateRiskGuard,
|
||||
attempts,
|
||||
recipients,
|
||||
reconciliation,
|
||||
suppressions,
|
||||
runtimes,
|
||||
operations,
|
||||
audit,
|
||||
transactions,
|
||||
ids,
|
||||
digests,
|
||||
clock);
|
||||
}
|
||||
|
||||
/** Dispatch orchestration. */
|
||||
@Bean
|
||||
public NotificationDispatchService notificationDispatchService(
|
||||
NotificationRequestStorePort requests,
|
||||
RecipientDeliveryStorePort recipients,
|
||||
DeliveryAttemptStorePort attempts,
|
||||
DispatchPipeline pipeline,
|
||||
RoutingDecisionEngine routing,
|
||||
NotificationRetryPolicy retryPolicy,
|
||||
DeliveryAttemptFactory attemptFactory,
|
||||
DispatchOutcomeRecorder recorder,
|
||||
ProviderDispatchGatewayPort gateway,
|
||||
TemplateRendererRegistry renderers,
|
||||
RecipientLeaseStorePort leases,
|
||||
TransactionPort transactions,
|
||||
Clock clock,
|
||||
NotificationDispatchProperties properties) {
|
||||
return new NotificationDispatchService(
|
||||
requests,
|
||||
recipients,
|
||||
attempts,
|
||||
pipeline,
|
||||
routing,
|
||||
retryPolicy,
|
||||
attemptFactory,
|
||||
recorder,
|
||||
gateway,
|
||||
renderers,
|
||||
leases,
|
||||
transactions,
|
||||
clock,
|
||||
properties.maxAdditionalAttempts(),
|
||||
properties.estimatedDispatchDuration());
|
||||
}
|
||||
|
||||
/** Ledger projection. */
|
||||
@Bean
|
||||
public ProviderEventProjectionService providerEventProjectionService(
|
||||
ProviderEventLedger ledger,
|
||||
ProviderEventProjectorRegistry projectors,
|
||||
DeliveryAttemptResolverPort resolver,
|
||||
DeliveryProjectionStorePort projections,
|
||||
NotificationSideEffectPort sideEffects,
|
||||
TransactionPort transactions,
|
||||
NotificationMetricsPort metrics) {
|
||||
return new ProviderEventProjectionService(
|
||||
ledger, projectors, resolver, projections, sideEffects, transactions, metrics);
|
||||
}
|
||||
|
||||
/** Semantic callback ingestion after provider verification has completed. */
|
||||
@Bean
|
||||
public IngestProviderCallbackApplicationUseCase providerCallbackIngestionService(
|
||||
ProviderEventLedger ledger,
|
||||
dev.caskeleton.application.transaction.TransactionPort transactions,
|
||||
CallbackPayloadProtectionPort payloadProtection,
|
||||
NotificationMetricsPort metrics,
|
||||
Clock clock) {
|
||||
return new IngestProviderCallbackApplicationUseCase(
|
||||
ledger, transactions, payloadProtection, metrics, clock);
|
||||
}
|
||||
|
||||
/**
|
||||
* The adapter-to-adapter callback bridge owned by the composition root.
|
||||
*
|
||||
* <p>Raw HTTP remains in the inbound adapter, provider signature verification remains in the
|
||||
* outbound provider integration, and only the verified semantic callback crosses the application
|
||||
* port.
|
||||
*/
|
||||
@Bean
|
||||
public ProviderCallbackIngress providerCallbackIngress(
|
||||
ProviderCallbackAdapterRegistry adapters,
|
||||
IngestProviderCallbackUseCase ingestion,
|
||||
NotificationSecurityAuditPort securityAudit) {
|
||||
return new ProviderCallbackIngressBridge(adapters, ingestion, securityAudit);
|
||||
}
|
||||
}
|
||||
-95
@@ -1,95 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.notification;
|
||||
|
||||
import dev.caskeleton.adapter.inbound.web.notification.platform.callback.ProviderCallbackHttpRequest;
|
||||
import dev.caskeleton.adapter.inbound.web.notification.platform.callback.ProviderCallbackIngress;
|
||||
import dev.caskeleton.adapter.outbound.notification.platform.callback.CallbackLimits;
|
||||
import dev.caskeleton.adapter.outbound.notification.platform.callback.CallbackVerificationResult;
|
||||
import dev.caskeleton.adapter.outbound.notification.platform.callback.ProviderCallbackAdapter;
|
||||
import dev.caskeleton.adapter.outbound.notification.platform.callback.ProviderCallbackAdapterRegistry;
|
||||
import dev.caskeleton.adapter.outbound.notification.platform.callback.ProviderCallbackVerificationRequest;
|
||||
import dev.caskeleton.application.notification.platform.api.CallbackIngestionResult;
|
||||
import dev.caskeleton.application.notification.platform.api.error.CallbackValidationException;
|
||||
import dev.caskeleton.application.notification.platform.api.error.FailureCategory;
|
||||
import dev.caskeleton.application.notification.platform.api.error.NotificationFailureCode;
|
||||
import dev.caskeleton.application.notification.platform.api.error.NotificationFailureDescriptor;
|
||||
import dev.caskeleton.application.notification.platform.observation.NotificationSecurityAuditPort;
|
||||
import dev.caskeleton.application.notification.platform.port.in.IngestProviderCallbackCommand;
|
||||
import dev.caskeleton.application.notification.platform.port.in.IngestProviderCallbackUseCase;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* Composition-only bridge from raw inbound HTTP to provider verification and semantic ingestion.
|
||||
*
|
||||
* <p>This class is intentionally in the composition root. The inbound web adapter must not depend
|
||||
* on the outbound notification adapter, and the outbound adapter must not depend on the web
|
||||
* transport. Bootstrap is the one place allowed to know both and connect them.
|
||||
*/
|
||||
final class ProviderCallbackIngressBridge implements ProviderCallbackIngress {
|
||||
|
||||
private final ProviderCallbackAdapterRegistry adapters;
|
||||
private final IngestProviderCallbackUseCase ingestion;
|
||||
private final NotificationSecurityAuditPort securityAudit;
|
||||
|
||||
ProviderCallbackIngressBridge(
|
||||
ProviderCallbackAdapterRegistry adapters,
|
||||
IngestProviderCallbackUseCase ingestion,
|
||||
NotificationSecurityAuditPort securityAudit) {
|
||||
this.adapters = Objects.requireNonNull(adapters, "adapters");
|
||||
this.ingestion = Objects.requireNonNull(ingestion, "ingestion");
|
||||
this.securityAudit = Objects.requireNonNull(securityAudit, "securityAudit");
|
||||
}
|
||||
|
||||
@Override
|
||||
public CallbackIngestionResult ingest(ProviderCallbackHttpRequest request) {
|
||||
Objects.requireNonNull(request, "request");
|
||||
|
||||
CallbackLimits limits = adapters.limitsFor(request.providerProfileId());
|
||||
if (request.bodyLength() > limits.maxBodyBytes()) {
|
||||
securityAudit.callbackRejectedByLimit(request.providerProfileId(), "BODY_TOO_LARGE");
|
||||
throw rejected(NotificationFailureCode.CALLBACK_PAYLOAD_REJECTED);
|
||||
}
|
||||
if (!limits.acceptsContentType(request.contentType().orElse(null))) {
|
||||
securityAudit.callbackRejectedByLimit(request.providerProfileId(), "CONTENT_TYPE_REJECTED");
|
||||
throw rejected(NotificationFailureCode.CALLBACK_PAYLOAD_REJECTED);
|
||||
}
|
||||
|
||||
ProviderCallbackAdapter adapter = adapters.require(request.providerProfileId());
|
||||
if (!adapter.providerId().equals(request.providerId())) {
|
||||
securityAudit.callbackRejectedByLimit(
|
||||
request.providerProfileId(), "PROVIDER_PROFILE_MISMATCH");
|
||||
throw rejected(NotificationFailureCode.CALLBACK_PAYLOAD_REJECTED);
|
||||
}
|
||||
|
||||
ProviderCallbackVerificationRequest verificationRequest =
|
||||
new ProviderCallbackVerificationRequest(
|
||||
request.providerId(),
|
||||
request.providerProfileId(),
|
||||
request.externalUrl(),
|
||||
request.httpMethod(),
|
||||
request.contentType(),
|
||||
request.headers(),
|
||||
request.body(),
|
||||
request.receivedAt());
|
||||
|
||||
CallbackVerificationResult verification = adapter.verify(verificationRequest);
|
||||
if (!verification.valid()) {
|
||||
securityAudit.callbackSignatureRejected(
|
||||
request.providerProfileId(), verification.reasonCode());
|
||||
throw rejected(NotificationFailureCode.CALLBACK_SIGNATURE_INVALID);
|
||||
}
|
||||
|
||||
var verified = verification.verifiedCallback().orElseThrow();
|
||||
return ingestion.handle(
|
||||
new IngestProviderCallbackCommand(
|
||||
request.providerId(),
|
||||
request.providerProfileId(),
|
||||
adapter.normalize(verified),
|
||||
request.body()));
|
||||
}
|
||||
|
||||
private static CallbackValidationException rejected(String code) {
|
||||
return new CallbackValidationException(
|
||||
NotificationFailureDescriptor.preDispatch(
|
||||
code, FailureCategory.CALLBACK_VALIDATION_FAILURE));
|
||||
}
|
||||
}
|
||||
+4
-5
@@ -1,8 +1,8 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.outbox;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupFailures;
|
||||
import dev.caskeleton.application.messaging.event.IntegrationEventEncoderPort;
|
||||
import dev.caskeleton.application.messaging.event.IntegrationEventPublishPort;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import java.util.Objects;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
|
||||
@@ -51,10 +51,9 @@ public final class OutboxCanonicalTransportRequirementValidator implements Initi
|
||||
if (encoder == null) {
|
||||
throw StartupFailures.requiredAdapterDisabled(
|
||||
CANONICAL_KEY
|
||||
+ "=true also requires an IntegrationEventEncoderPort. The repository ships a "
|
||||
+ "JsonSchemaIntegrationEventEncoder implementation, but the Stable composition does "
|
||||
+ "not compile an application contract catalog or schema registry automatically. "
|
||||
+ "Provide the encoder as part of the application messaging composition or set "
|
||||
+ "=true also requires an IntegrationEventEncoderPort bean. The template ships no "
|
||||
+ "implementation: the adopter owns its event contracts and must provide the "
|
||||
+ "encoder as part of the application messaging composition, or set "
|
||||
+ CANONICAL_KEY
|
||||
+ "=false.");
|
||||
}
|
||||
|
||||
+34
-24
@@ -11,40 +11,49 @@ import dev.caskeleton.application.transaction.TransactionPort;
|
||||
import io.micrometer.core.instrument.MeterRegistry;
|
||||
import java.time.Clock;
|
||||
import java.util.SplittableRandom;
|
||||
import java.util.UUID;
|
||||
import java.util.random.RandomGenerator;
|
||||
import org.springframework.beans.factory.ObjectProvider;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
/**
|
||||
* Composition-root wiring for the transactional outbox relay: assembles the relay use case manually
|
||||
* and registers the leader-election token, metrics, and scheduler. See README for the design
|
||||
* rationale.
|
||||
* The transactional outbox relay: assembles the relay use case manually and registers the leader
|
||||
* election token, metrics, and scheduler. See README for the design rationale.
|
||||
*
|
||||
* <p>Application composition, like the idempotency executor: it wires application-core ports into a
|
||||
* use case and drives it on a timer, which is why it stays in the composition root rather than in
|
||||
* the persistence module — a driven adapter must not construct or call use cases. It names no
|
||||
* module type, only ports, and it turns itself on from what the selected modules provide.
|
||||
*
|
||||
* <p>{@code ca-skeleton.outbox.enabled} is the capability switch; {@code relay-enabled} only
|
||||
* decides whether the scheduler runs. The two were conflated before, so a deployment with the relay
|
||||
* off still assembled settings, a validator, an RNG, a leader token, and outbox metrics over a
|
||||
* store port that a database-less deployment does not have.
|
||||
* decides whether the scheduler runs. The store port exists only while the persistence-jpa module
|
||||
* is selected and its outbox is on, so this configuration waits for it: removing that module's
|
||||
* build line removes the relay with it.
|
||||
*
|
||||
* <p>The scheduler additionally needs somewhere to publish. It is created only when an {@link
|
||||
* OutboxMessagePublishPort} bean exists — the messaging bridge contributes one — so a deployment
|
||||
* that selected no publishing capability keeps its PENDING rows instead of failing every claim
|
||||
* against a stand-in and exhausting them to DEAD. Ordered after both contributing
|
||||
* auto-configurations by name, because a bean condition only sees what was registered before it.
|
||||
*/
|
||||
@AutoConfiguration
|
||||
@AutoConfiguration(
|
||||
afterName = {
|
||||
"dev.caskeleton.adapter.outbound.persistence.autoconfigure.PersistenceJpaAutoConfiguration",
|
||||
"dev.caskeleton.adapter.outbound.messaging.autoconfigure.MessagingBridgeRootAutoConfiguration"
|
||||
})
|
||||
@ConditionalOnProperty(prefix = "ca-skeleton.outbox", name = "enabled", havingValue = "true")
|
||||
@ConditionalOnBean(OutboxStorePort.class)
|
||||
@EnableConfigurationProperties(OutboxSettings.class)
|
||||
// The relay is @Scheduled. It must switch scheduling on itself rather than rely on another
|
||||
// capability (the PostgreSQL idempotency provider also does), or the relay runs only by accident.
|
||||
@EnableScheduling
|
||||
public class OutboxConfig {
|
||||
|
||||
/**
|
||||
* Refuses a relay that has nowhere to publish.
|
||||
*
|
||||
* @param environment the Spring environment
|
||||
* @return the startup validator
|
||||
*/
|
||||
@Bean
|
||||
public OutboxRelayBrokerRequirementValidator outboxRelayBrokerRequirementValidator(
|
||||
org.springframework.core.env.Environment environment) {
|
||||
return new OutboxRelayBrokerRequirementValidator(environment);
|
||||
}
|
||||
|
||||
/** Requires the canonical messaging bridge whenever canonical outbox transport is enabled. */
|
||||
@Bean
|
||||
public OutboxCanonicalTransportRequirementValidator outboxCanonicalTransportRequirementValidator(
|
||||
@@ -55,15 +64,13 @@ public class OutboxConfig {
|
||||
settings, canonicalPublisherProvider.getIfAvailable(), encoderProvider.getIfAvailable());
|
||||
}
|
||||
|
||||
/**
|
||||
* Relay use case is assembled manually here (not a bean) from {@link OutboxSettings} values. See
|
||||
* README for the design rationale.
|
||||
*/
|
||||
/** Relay use case is assembled manually here (not a bean) from {@link OutboxSettings} values. */
|
||||
@Bean
|
||||
@ConditionalOnProperty(
|
||||
name = "ca-skeleton.outbox.relay-enabled",
|
||||
havingValue = "true",
|
||||
matchIfMissing = true)
|
||||
@ConditionalOnBean(OutboxMessagePublishPort.class)
|
||||
public OutboxRelayScheduler outboxRelayScheduler(
|
||||
OutboxStorePort store,
|
||||
OutboxMessagePublishPort publishPort,
|
||||
@@ -73,6 +80,8 @@ public class OutboxConfig {
|
||||
RandomGenerator outboxRandomGenerator,
|
||||
OutboxSettings properties,
|
||||
OutboxMetrics metrics) {
|
||||
// One lease owner per relay instance. Its claims record it, and a completion applies only while
|
||||
// this owner's lease still holds the row (V17 fencing).
|
||||
PublishPendingOutboxEventsUseCase relayUseCase =
|
||||
new PublishPendingOutboxEventsUseCase(
|
||||
store,
|
||||
@@ -82,7 +91,8 @@ public class OutboxConfig {
|
||||
new OutboxBackoffPolicy(outboxRandomGenerator),
|
||||
clock,
|
||||
properties.batchSize(),
|
||||
properties.inFlightTimeout());
|
||||
properties.inFlightTimeout(),
|
||||
UUID.randomUUID().toString());
|
||||
return new OutboxRelayScheduler(relayUseCase, metrics, clock);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.outbox;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.startup.RuntimeWarnings;
|
||||
import dev.caskeleton.application.outbox.OutboxEventStatus;
|
||||
import dev.caskeleton.application.outbox.OutboxRelayResult;
|
||||
import dev.caskeleton.application.outbox.OutboxStorePort;
|
||||
import dev.caskeleton.bootstrap.runtime.RuntimeWarnings;
|
||||
import io.micrometer.core.instrument.Counter;
|
||||
import io.micrometer.core.instrument.MeterRegistry;
|
||||
import io.micrometer.core.instrument.MultiGauge;
|
||||
@@ -49,7 +49,7 @@ public final class OutboxMetrics {
|
||||
}
|
||||
}
|
||||
|
||||
/** Counts each terminal outcome (PUBLISHED, FAILED, DEAD; not IN_FLIGHT). */
|
||||
/** Counts each per-event outcome (PUBLISHED, FAILED, DEAD, STALE; never IN_FLIGHT). */
|
||||
public void recordRelayResult(OutboxRelayResult result) {
|
||||
if (registry == null || result == null) {
|
||||
return;
|
||||
|
||||
-64
@@ -1,64 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.outbox;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import java.util.Objects;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Refuses to start a relay that has nowhere to publish.
|
||||
*
|
||||
* <p>{@code ca-skeleton.outbox.relay-enabled} defaults to true and {@code app.messaging.broker}
|
||||
* defaults to blank, so the shipped configuration starts a relay wired to {@code
|
||||
* DisabledOutboxMessagePublisher}. That publisher throws on every call, and the relay treats a
|
||||
* throw as a publish failure: it claims a batch of PENDING rows, marks them IN_FLIGHT, fails them
|
||||
* with backoff, and eventually exhausts them to DEAD. An environment that is deliberately
|
||||
* messaging-off therefore does not park its outbox — it destroys it, one retry budget at a time,
|
||||
* and the rows that mattered are terminal by the time anyone notices.
|
||||
*
|
||||
* <p>Two configurations are coherent: a relay with a broker, or no relay. This makes the third one
|
||||
* a startup failure that names both keys, rather than a slow data-loss bug.
|
||||
*/
|
||||
public final class OutboxRelayBrokerRequirementValidator implements InitializingBean {
|
||||
|
||||
private static final String RELAY_KEY = "ca-skeleton.outbox.relay-enabled";
|
||||
private static final String BROKER_KEY = "app.messaging.broker";
|
||||
|
||||
private final Environment environment;
|
||||
|
||||
/**
|
||||
* Creates the validator.
|
||||
*
|
||||
* @param environment the Spring environment, read for both keys
|
||||
*/
|
||||
public OutboxRelayBrokerRequirementValidator(Environment environment) {
|
||||
this.environment = Objects.requireNonNull(environment, "environment must not be null");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet() {
|
||||
validate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Refuses an enabled relay with no broker configured.
|
||||
*
|
||||
* @throws IllegalStateException naming both keys and both coherent configurations
|
||||
*/
|
||||
public void validate() {
|
||||
// The relay bean's own condition uses matchIfMissing = true, so absent means enabled here too.
|
||||
boolean relayEnabled = environment.getProperty(RELAY_KEY, Boolean.class, Boolean.TRUE);
|
||||
String broker = environment.getProperty(BROKER_KEY, "");
|
||||
if (!relayEnabled || !broker.isBlank()) {
|
||||
return;
|
||||
}
|
||||
throw StartupFailures.requiredAdapterDisabled(
|
||||
RELAY_KEY
|
||||
+ " is enabled but "
|
||||
+ BROKER_KEY
|
||||
+ " is blank, so every claimed outbox row would fail to publish and be exhausted to"
|
||||
+ " DEAD. Either configure a broker, or set "
|
||||
+ RELAY_KEY
|
||||
+ "=false so PENDING rows are preserved until one exists.");
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.outbox;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupFailures;
|
||||
import java.time.Duration;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
-91
@@ -1,91 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.redis;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.SecretSourceValidator;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupPhase;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupValidationContext;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import org.springframework.beans.factory.SmartInitializingSingleton;
|
||||
import org.springframework.core.env.ConfigurableEnvironment;
|
||||
|
||||
/**
|
||||
* Refuses a deployment that selects Redis for a role while Redis itself is switched off.
|
||||
*
|
||||
* <p>{@code app.redis.enabled} is the only global activation authority. A role selector says which
|
||||
* Redis capability should compose, never whether Redis exists, so "off plus a Redis role" is not a
|
||||
* defaulting question with a sensible answer — it is two settings that contradict each other.
|
||||
*
|
||||
* <p>Without this check the contradiction surfaces much later and much worse: composition proceeds,
|
||||
* the conditional Redis configuration creates nothing, and startup dies on whichever provider
|
||||
* selector notices a missing bean first. That failure names a bean the operator never configured
|
||||
* and stays silent about the one line that caused it. Every offending role is listed together so a
|
||||
* misconfigured deployment is fixed in one pass rather than one restart per role.
|
||||
*/
|
||||
public class RedisActivationValidator implements SmartInitializingSingleton {
|
||||
|
||||
/** Role selector property to the value that selects Redis for it. */
|
||||
private static final Map<String, String> REDIS_SELECTING_VALUES =
|
||||
Map.of(
|
||||
"ca-skeleton.capabilities.cache.bindings.default", "redis",
|
||||
"ca-skeleton.capabilities.rate-limit.provider", "redis",
|
||||
"ca-skeleton.capabilities.idempotency.provider", "redis",
|
||||
"ca-skeleton.capabilities.lease.provider", "redis",
|
||||
"ca-skeleton.security.auth-mode", "redis-session");
|
||||
|
||||
private final ConfigurableEnvironment environment;
|
||||
|
||||
public RedisActivationValidator(ConfigurableEnvironment environment) {
|
||||
this.environment = Objects.requireNonNull(environment, "environment must be non-null");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterSingletonsInstantiated() {
|
||||
if (isRedisGloballyEnabled()) {
|
||||
validateIdempotencyKeyVersion();
|
||||
return;
|
||||
}
|
||||
StartupValidationContext contradictions =
|
||||
StartupValidationContext.forPhase(StartupPhase.ADAPTER_ENABLEMENT);
|
||||
REDIS_SELECTING_VALUES.forEach(
|
||||
(property, selectingValue) -> {
|
||||
String configured = environment.getProperty(property);
|
||||
if (selectingValue.equalsIgnoreCase(configured)) {
|
||||
contradictions.reject(property + "=" + configured);
|
||||
}
|
||||
});
|
||||
contradictions
|
||||
.sorted()
|
||||
.failIfViolated(
|
||||
"Redis is disabled ("
|
||||
+ SecretSourceValidator.REDIS_ENABLED_PROPERTY
|
||||
+ "=false, env APP_REDIS_ENABLED) but these roles select it",
|
||||
"set APP_REDIS_ENABLED=true to compose Redis, or point each role at a non-Redis "
|
||||
+ "provider. A role selector never activates Redis on its own.");
|
||||
}
|
||||
|
||||
private void validateIdempotencyKeyVersion() {
|
||||
if (!"redis"
|
||||
.equalsIgnoreCase(
|
||||
environment.getProperty("ca-skeleton.capabilities.idempotency.provider", "disabled"))) {
|
||||
return;
|
||||
}
|
||||
int keyVersion =
|
||||
environment.getProperty(
|
||||
"ca-skeleton.capabilities.idempotency.key-version", Integer.class, 1);
|
||||
if (keyVersion == 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
StartupValidationContext.forPhase(StartupPhase.ADAPTER_ENABLEMENT)
|
||||
.reject("ca-skeleton.capabilities.idempotency.key-version=" + keyVersion)
|
||||
.failIfViolated(
|
||||
"Redis idempotency key-version rotation is unsupported without dual-read",
|
||||
"keep ca-skeleton.capabilities.idempotency.key-version=1 until a migration can read "
|
||||
+ "the previous keyspace during the replay-retention window.");
|
||||
}
|
||||
|
||||
private boolean isRedisGloballyEnabled() {
|
||||
return Boolean.parseBoolean(
|
||||
environment.getProperty(SecretSourceValidator.REDIS_ENABLED_PROPERTY, "false"));
|
||||
}
|
||||
}
|
||||
-59
@@ -1,59 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.redis;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.cache.redis.sdk.config.RedisCorrectnessRoles;
|
||||
import dev.caskeleton.bootstrap.runtime.ReadinessGroup;
|
||||
import dev.caskeleton.bootstrap.runtime.SecretSourceValidator;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupOrder;
|
||||
import org.springframework.boot.EnvironmentPostProcessor;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.core.Ordered;
|
||||
import org.springframework.core.env.ConfigurableEnvironment;
|
||||
|
||||
/**
|
||||
* Adds the Redis readiness contributor to the readiness group, and only when it will exist.
|
||||
*
|
||||
* <p>Boot's {@code validate-group-membership} is on, and it means exactly what it says: a health
|
||||
* group naming a contributor that is not in the context fails startup with {@code Included health
|
||||
* contributor 'redisRequired' in group 'readiness' does not exist}. So a static {@code
|
||||
* readiness.include} listing {@code redisRequired} is not "tolerated when Redis is off" — it is a
|
||||
* deployment that cannot boot at all without Redis, which is the opposite of the optionality the
|
||||
* switch exists to provide.
|
||||
*
|
||||
* <p>Nor is the answer to drop the validation. Without it a misspelled contributor is silently
|
||||
* ignored and readiness reports UP while proving nothing about the dependency it claims to gate on.
|
||||
* Both settings are worth keeping; what has to change is that membership becomes a function of the
|
||||
* same condition that creates the contributor.
|
||||
*
|
||||
* <p>Hence this post-processor. It reads {@link RedisCorrectnessRoles} — the identical predicate
|
||||
* the bean's {@code @Conditional} asks — so the group can only name the contributor in the
|
||||
* deployments that have one. It runs after config data is loaded, so the value it appends to is the
|
||||
* one the deployment actually resolved, and it appends rather than replaces, so an operator who
|
||||
* narrowed the group keeps their narrowing.
|
||||
*/
|
||||
public class RedisReadinessGroupPostProcessor implements EnvironmentPostProcessor, Ordered {
|
||||
|
||||
private static final String PROPERTY_SOURCE = "redisReadinessGroup";
|
||||
|
||||
@Override
|
||||
public void postProcessEnvironment(
|
||||
ConfigurableEnvironment environment, SpringApplication application) {
|
||||
if (!redisEnabled(environment) || !RedisCorrectnessRoles.anySelected(environment)) {
|
||||
return;
|
||||
}
|
||||
ReadinessGroup.include(
|
||||
environment, PROPERTY_SOURCE, RedisCorrectnessRoles.REQUIRED_HEALTH_CONTRIBUTOR);
|
||||
}
|
||||
|
||||
private static boolean redisEnabled(ConfigurableEnvironment environment) {
|
||||
return Boolean.parseBoolean(
|
||||
environment.getProperty(SecretSourceValidator.REDIS_ENABLED_PROPERTY, "false"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getOrder() {
|
||||
// After config data: the readiness group this appends to is defined in application.yml, and
|
||||
// reading it before that file is loaded would append to an empty string and silently drop
|
||||
// readinessState and db from the group.
|
||||
return StartupOrder.READINESS_REDIS;
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.tracing;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.runtime.RuntimeProfileSnapshot;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupOrder;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupOrder;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.springframework.boot.EnvironmentPostProcessor;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.tracing;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.RuntimeWarnings;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.RuntimeWarnings;
|
||||
import io.micrometer.core.instrument.Gauge;
|
||||
import io.micrometer.core.instrument.MeterRegistry;
|
||||
import org.springframework.beans.factory.ObjectProvider;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package dev.caskeleton.bootstrap.autoconfigure.tracing;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupFailures;
|
||||
import java.net.URI;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import ch.qos.logback.classic.Level;
|
||||
import ch.qos.logback.classic.Logger;
|
||||
import ch.qos.logback.classic.turbo.TurboFilter;
|
||||
import ch.qos.logback.core.spi.FilterReply;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailureLogState;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupFailureLogState;
|
||||
import java.util.Set;
|
||||
import org.slf4j.Marker;
|
||||
|
||||
|
||||
+1
-13
@@ -32,19 +32,7 @@ public class ManagementSecurityConfig {
|
||||
auth ->
|
||||
auth
|
||||
// permit-all for probes and Prometheus scrape.
|
||||
//
|
||||
// adapteractivation joins them deliberately. It reports which master switches
|
||||
// resolved on, and nothing else: property names, booleans, and the reasons a
|
||||
// relational connection is required. No address, no credential, no schema — and
|
||||
// AdapterActivationReportShapeTest is what keeps it that way rather than a
|
||||
// promise in this comment.
|
||||
//
|
||||
// The alternative was worse. Authentication here is JWT, so a smoke lane could
|
||||
// only read the report where an identity provider was already running, which
|
||||
// excludes every lane that starts no infrastructure — the all-off lanes, which
|
||||
// are exactly the ones whose claim is hardest to check any other way.
|
||||
.requestMatchers(
|
||||
EndpointRequest.to("health", "info", "prometheus", "adapteractivation"))
|
||||
.requestMatchers(EndpointRequest.to("health", "info", "prometheus"))
|
||||
.permitAll()
|
||||
.requestMatchers(HttpMethod.POST, "/actuator/loggers/**")
|
||||
.denyAll()
|
||||
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
package dev.caskeleton.bootstrap.runtime;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.runtime.RuntimeProfileSnapshot;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupFailures;
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import org.springframework.beans.factory.SmartInitializingSingleton;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Keeps error internals out of production responses. Boot's {@code /error} body can carry the stack
|
||||
* trace, the exception message, binding errors (with the rejected input) and the exception class;
|
||||
* each is an environment override away in {@code application.yml}, so a YAML default alone does not
|
||||
* hold them off in prod.
|
||||
*/
|
||||
public class ErrorDetailExposureSafetyValidator implements SmartInitializingSingleton {
|
||||
|
||||
/** Each key that must stay {@code never}, with the name an operator would have set. */
|
||||
private static final Map<String, String> MUST_BE_NEVER = new LinkedHashMap<>();
|
||||
|
||||
static {
|
||||
MUST_BE_NEVER.put("spring.web.error.include-stacktrace", "APP_SERVER_ERROR_INCLUDE_STACKTRACE");
|
||||
MUST_BE_NEVER.put("spring.web.error.include-message", "APP_SERVER_ERROR_INCLUDE_MESSAGE");
|
||||
MUST_BE_NEVER.put(
|
||||
"spring.web.error.include-binding-errors", "spring.web.error.include-binding-errors");
|
||||
}
|
||||
|
||||
private static final String INCLUDE_EXCEPTION = "spring.web.error.include-exception";
|
||||
|
||||
private final Environment environment;
|
||||
|
||||
public ErrorDetailExposureSafetyValidator(Environment environment) {
|
||||
this.environment = environment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterSingletonsInstantiated() {
|
||||
if (!RuntimeProfileSnapshot.from(environment).isProduction()) {
|
||||
return;
|
||||
}
|
||||
List<String> violations = new ArrayList<>();
|
||||
MUST_BE_NEVER.forEach(
|
||||
(key, shownAs) -> {
|
||||
String value = environment.getProperty(key);
|
||||
if (value != null && !"never".equals(normalized(value))) {
|
||||
violations.add(shownAs + "=" + value.trim());
|
||||
}
|
||||
});
|
||||
String includeException = environment.getProperty(INCLUDE_EXCEPTION);
|
||||
if (includeException != null && "true".equals(normalized(includeException))) {
|
||||
violations.add(INCLUDE_EXCEPTION + "=true");
|
||||
}
|
||||
if (!violations.isEmpty()) {
|
||||
throw StartupFailures.profileMismatch(
|
||||
"prod profile requires error details to stay out of responses (include-* = never, "
|
||||
+ "include-exception = false), but found "
|
||||
+ String.join(", ", violations));
|
||||
}
|
||||
}
|
||||
|
||||
private static String normalized(String value) {
|
||||
return value.trim().toLowerCase(Locale.ROOT);
|
||||
}
|
||||
}
|
||||
-130
@@ -1,130 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupPhase;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupValidationContext;
|
||||
import java.time.temporal.ChronoUnit;
|
||||
import org.springframework.beans.factory.SmartInitializingSingleton;
|
||||
import org.springframework.boot.convert.DurationStyle;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Fail-fast startup guard for HikariCP inter-knob constraints. Reads (never re-binds) resolved
|
||||
* Spring properties as a {@link SmartInitializingSingleton}; an absent property is skipped. See
|
||||
* README for the design rationale.
|
||||
*/
|
||||
public class HikariPoolConstraintValidator implements SmartInitializingSingleton {
|
||||
|
||||
static final String CONNECTION_TIMEOUT_KEY = "spring.datasource.hikari.connection-timeout";
|
||||
static final String VALIDATION_TIMEOUT_KEY = "spring.datasource.hikari.validation-timeout";
|
||||
static final String KEEPALIVE_TIME_KEY = "spring.datasource.hikari.keepalive-time";
|
||||
static final String MAX_LIFETIME_KEY = "spring.datasource.hikari.max-lifetime";
|
||||
static final String LEAK_DETECTION_KEY = "spring.datasource.hikari.leak-detection-threshold";
|
||||
|
||||
// Operator-facing env keys, so a boot failure names the APP_* variable the operator set.
|
||||
// Knobs without a registered env key emit ENV_KEY_PENDING instead of a fabricated name.
|
||||
static final String CONNECTION_TIMEOUT_ENV_KEY = "APP_DATASOURCE_CONNECTION_TIMEOUT";
|
||||
static final String MAX_LIFETIME_ENV_KEY = "APP_DATASOURCE_POOL_MAX_LIFETIME";
|
||||
static final String ENV_KEY_PENDING = "env key pending feature-env-driven-runtime-configuration";
|
||||
|
||||
private final Environment environment;
|
||||
|
||||
public HikariPoolConstraintValidator(Environment environment) {
|
||||
this.environment = environment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterSingletonsInstantiated() {
|
||||
StartupValidationContext violations =
|
||||
StartupValidationContext.forPhase(StartupPhase.ENV_VALIDATION);
|
||||
|
||||
Long connectionTimeout =
|
||||
parseMillis(CONNECTION_TIMEOUT_KEY, environment.getProperty(CONNECTION_TIMEOUT_KEY));
|
||||
Long validationTimeout =
|
||||
parseMillis(VALIDATION_TIMEOUT_KEY, environment.getProperty(VALIDATION_TIMEOUT_KEY));
|
||||
Long keepaliveTime =
|
||||
parseMillis(KEEPALIVE_TIME_KEY, environment.getProperty(KEEPALIVE_TIME_KEY));
|
||||
Long maxLifetime = parseMillis(MAX_LIFETIME_KEY, environment.getProperty(MAX_LIFETIME_KEY));
|
||||
Long leakDetection =
|
||||
parseMillis(LEAK_DETECTION_KEY, environment.getProperty(LEAK_DETECTION_KEY));
|
||||
|
||||
if (connectionTimeout != null && connectionTimeout < 250L) {
|
||||
violations.reject(
|
||||
"D2/HIKARI-CFG-C1: "
|
||||
+ CONNECTION_TIMEOUT_ENV_KEY
|
||||
+ " ("
|
||||
+ CONNECTION_TIMEOUT_KEY
|
||||
+ ") must be >= 250 ms, was "
|
||||
+ connectionTimeout);
|
||||
}
|
||||
|
||||
if (validationTimeout != null
|
||||
&& connectionTimeout != null
|
||||
&& validationTimeout >= connectionTimeout) {
|
||||
violations.reject(
|
||||
"D7/HIKARI-CFG-C6: validation-timeout ("
|
||||
+ VALIDATION_TIMEOUT_KEY
|
||||
+ ", "
|
||||
+ ENV_KEY_PENDING
|
||||
+ ") must be < connection-timeout ("
|
||||
+ CONNECTION_TIMEOUT_ENV_KEY
|
||||
+ " / "
|
||||
+ CONNECTION_TIMEOUT_KEY
|
||||
+ "); was validation-timeout="
|
||||
+ validationTimeout
|
||||
+ ", connection-timeout="
|
||||
+ connectionTimeout);
|
||||
}
|
||||
|
||||
if (keepaliveTime != null && maxLifetime != null && keepaliveTime >= maxLifetime) {
|
||||
violations.reject(
|
||||
"D4/HIKARI-CFG-C4: keepalive-time ("
|
||||
+ KEEPALIVE_TIME_KEY
|
||||
+ ", "
|
||||
+ ENV_KEY_PENDING
|
||||
+ ") must be < max-lifetime ("
|
||||
+ MAX_LIFETIME_ENV_KEY
|
||||
+ " / "
|
||||
+ MAX_LIFETIME_KEY
|
||||
+ "); was keepalive-time="
|
||||
+ keepaliveTime
|
||||
+ ", max-lifetime="
|
||||
+ maxLifetime);
|
||||
}
|
||||
|
||||
if (leakDetection != null && leakDetection != 0L && leakDetection < 2000L) {
|
||||
violations.reject(
|
||||
"D5/HIKARI-CFG-C5: leak-detection-threshold ("
|
||||
+ LEAK_DETECTION_KEY
|
||||
+ ", "
|
||||
+ ENV_KEY_PENDING
|
||||
+ ") must be >= 2000 ms to enable leak detection"
|
||||
+ " (0 = disabled/allowed); was "
|
||||
+ leakDetection);
|
||||
}
|
||||
|
||||
violations.failIfViolated(
|
||||
"invalid HikariCP configuration (feature-database-connection-pool-contract D2/D4/D5/D7)");
|
||||
}
|
||||
|
||||
/**
|
||||
* Parses the same plain-millisecond, simple Duration ({@code 5s}) and ISO-8601 ({@code PT5S})
|
||||
* syntax that Spring Boot accepts for Duration-bound properties. A present invalid value is a
|
||||
* startup error, never an absent-property fallback.
|
||||
*
|
||||
* @return the parsed milliseconds, or {@code null} when absent
|
||||
*/
|
||||
private static Long parseMillis(String propertyKey, String raw) {
|
||||
if (raw == null || raw.isBlank()) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return DurationStyle.detectAndParse(raw.trim(), ChronoUnit.MILLIS).toMillis();
|
||||
} catch (IllegalArgumentException | ArithmeticException e) {
|
||||
throw StartupFailures.envValidation(
|
||||
propertyKey
|
||||
+ " must be a valid duration (plain milliseconds, simple duration such as 5s, "
|
||||
+ "or ISO-8601 such as PT5S)");
|
||||
}
|
||||
}
|
||||
}
|
||||
-54
@@ -1,54 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.runtime.RuntimeProfileSnapshot;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import java.util.Locale;
|
||||
import java.util.Set;
|
||||
import org.springframework.beans.factory.SmartInitializingSingleton;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Prevents Hibernate from becoming a production schema writer. Flyway owns the physical schema;
|
||||
* production may only disable Hibernate DDL or validate the schema.
|
||||
*/
|
||||
public class JpaSchemaSafetyValidator implements SmartInitializingSingleton {
|
||||
|
||||
static final String DDL_AUTO_KEY = "spring.jpa.hibernate.ddl-auto";
|
||||
static final String DDL_AUTO_ENV_KEY = "APP_DATASOURCE_DDL_AUTO";
|
||||
|
||||
private static final Set<String> PROD_ALLOWED_MODES = Set.of("none", "validate");
|
||||
|
||||
private final Environment environment;
|
||||
|
||||
public JpaSchemaSafetyValidator(Environment environment) {
|
||||
this.environment = environment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterSingletonsInstantiated() {
|
||||
if (!isProdActive()) {
|
||||
return;
|
||||
}
|
||||
|
||||
String rawMode = environment.getProperty(DDL_AUTO_KEY);
|
||||
if (rawMode == null) {
|
||||
return;
|
||||
}
|
||||
String mode = rawMode.trim().toLowerCase(Locale.ROOT);
|
||||
if (!PROD_ALLOWED_MODES.contains(mode)) {
|
||||
throw StartupFailures.profileMismatch(
|
||||
"prod profile requires "
|
||||
+ DDL_AUTO_ENV_KEY
|
||||
+ " ("
|
||||
+ DDL_AUTO_KEY
|
||||
+ ") to be none or validate"
|
||||
+ ", but was "
|
||||
+ (mode.isEmpty() ? "<blank>" : mode)
|
||||
+ "; Flyway is the production schema writer");
|
||||
}
|
||||
}
|
||||
|
||||
private boolean isProdActive() {
|
||||
return RuntimeProfileSnapshot.from(environment).isProduction();
|
||||
}
|
||||
}
|
||||
-41
@@ -1,41 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import org.springframework.beans.factory.SmartInitializingSingleton;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Fail-fast startup guard that enforces OSIV (Open Session In View) being OFF. Reads (never
|
||||
* re-binds) the resolved property as a {@link SmartInitializingSingleton}; an absent value is left
|
||||
* to Spring Boot's default and only a present {@code true} is rejected. See README for the design
|
||||
* rationale.
|
||||
*/
|
||||
public class OpenInViewSafetyValidator implements SmartInitializingSingleton {
|
||||
|
||||
static final String OPEN_IN_VIEW_KEY = "spring.jpa.open-in-view";
|
||||
static final String ENV_KEY = "APP_DATASOURCE_OPEN_IN_VIEW";
|
||||
|
||||
private final Environment environment;
|
||||
|
||||
public OpenInViewSafetyValidator(Environment environment) {
|
||||
this.environment = environment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterSingletonsInstantiated() {
|
||||
Boolean openInView = environment.getProperty(OPEN_IN_VIEW_KEY, Boolean.class);
|
||||
if (Boolean.TRUE.equals(openInView)) {
|
||||
throw StartupFailures.envValidation(
|
||||
ENV_KEY
|
||||
+ " ("
|
||||
+ OPEN_IN_VIEW_KEY
|
||||
+ ") must be false "
|
||||
+ "(feature-persistence-failure-baseline D2 — OSIV off baseline): "
|
||||
+ "open-in-view keeps the Hibernate session open through view rendering, "
|
||||
+ "so a lazy association touched in the presentation layer issues a DB query "
|
||||
+ "there, violating the layer boundary. Set "
|
||||
+ ENV_KEY
|
||||
+ "=false.");
|
||||
}
|
||||
}
|
||||
}
|
||||
-84
@@ -1,84 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.runtime.RuntimeProfileSnapshot;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import java.util.Locale;
|
||||
import org.springframework.beans.factory.SmartInitializingSingleton;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Keeps the in-memory development datastore out of production.
|
||||
*
|
||||
* <p>{@code application-prod.yml} already pins {@code ca-skeleton.persistence.vendor=postgresql},
|
||||
* but a YAML default only wins against the property sources quieter than it: an environment
|
||||
* variable or a container override outranks every committed file. The two ways prod could end up on
|
||||
* H2 are therefore checked at startup, where the source of the value no longer matters.
|
||||
*
|
||||
* <p>Both checks are worth having separately, because either one alone leaves a hole:
|
||||
*
|
||||
* <ul>
|
||||
* <li>the <b>vendor</b> selector alone can be right while the URL points at H2 — the adapter
|
||||
* would issue PostgreSQL SQL against an in-memory database;
|
||||
* <li>the <b>URL</b> alone can be PostgreSQL while the vendor selector says H2 — the adapter
|
||||
* would issue H2's MERGE claim against PostgreSQL.
|
||||
* </ul>
|
||||
*
|
||||
* <p>An H2 URL also slips silently past {@link PostgreSqlTransportSecurityValidator}, which only
|
||||
* inspects {@code jdbc:postgresql:} URLs: prod would lose its TLS requirement and its durability in
|
||||
* the same move, and report neither.
|
||||
*
|
||||
* <p>Scoped to H2 by name rather than asserting "must be PostgreSQL", so a fork that adds a third
|
||||
* production-grade vendor is not blocked by this validator.
|
||||
*/
|
||||
public final class PersistenceVendorProdSafetyValidator implements SmartInitializingSingleton {
|
||||
|
||||
static final String VENDOR_KEY = "ca-skeleton.persistence.vendor";
|
||||
static final String JDBC_URL_KEY = "spring.datasource.url";
|
||||
static final String JDBC_URL_ENV_KEY = "APP_DATASOURCE_URL";
|
||||
|
||||
private static final String H2_VENDOR = "h2";
|
||||
private static final String H2_URL_PREFIX = "jdbc:h2:";
|
||||
|
||||
private final Environment environment;
|
||||
|
||||
public PersistenceVendorProdSafetyValidator(Environment environment) {
|
||||
this.environment = environment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterSingletonsInstantiated() {
|
||||
if (!isProdActive()) {
|
||||
return;
|
||||
}
|
||||
|
||||
String vendor = normalized(environment.getProperty(VENDOR_KEY));
|
||||
if (H2_VENDOR.equals(vendor)) {
|
||||
throw StartupFailures.profileMismatch(
|
||||
"prod profile forbids "
|
||||
+ VENDOR_KEY
|
||||
+ "=h2: the H2 composition is the in-memory local datastore and loses every write"
|
||||
+ " when the process restarts");
|
||||
}
|
||||
|
||||
String jdbcUrl = normalized(environment.getProperty(JDBC_URL_KEY));
|
||||
// The URL is never echoed back — it can carry credentials, endpoints and database names
|
||||
// (same reason as PostgreSqlTransportSecurityValidator).
|
||||
if (jdbcUrl != null && jdbcUrl.startsWith(H2_URL_PREFIX)) {
|
||||
throw StartupFailures.profileMismatch(
|
||||
"prod profile forbids an H2 datasource: "
|
||||
+ JDBC_URL_ENV_KEY
|
||||
+ " ("
|
||||
+ JDBC_URL_KEY
|
||||
+ ") resolves to a jdbc:h2: URL, which is the in-memory local datastore and also"
|
||||
+ " bypasses the prod PostgreSQL TLS check");
|
||||
}
|
||||
}
|
||||
|
||||
private static String normalized(String value) {
|
||||
return value == null ? null : value.trim().toLowerCase(Locale.ROOT);
|
||||
}
|
||||
|
||||
private boolean isProdActive() {
|
||||
return RuntimeProfileSnapshot.from(environment).isProduction();
|
||||
}
|
||||
}
|
||||
-89
@@ -1,89 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.runtime.RuntimeProfileSnapshot;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import org.springframework.beans.factory.SmartInitializingSingleton;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Fails production startup unless pgJDBC performs trust-chain and hostname verification.
|
||||
*
|
||||
* <p>The validator never includes a JDBC URL in its failure because URLs can carry credentials,
|
||||
* endpoints, and database names.
|
||||
*/
|
||||
public final class PostgreSqlTransportSecurityValidator implements SmartInitializingSingleton {
|
||||
|
||||
static final String JDBC_URL_KEY = "spring.datasource.url";
|
||||
static final String JDBC_URL_ENV_KEY = "APP_DATASOURCE_URL";
|
||||
static final String HIKARI_SSLMODE_KEY =
|
||||
"spring.datasource.hikari.data-source-properties.sslmode";
|
||||
|
||||
private static final String POSTGRESQL_PREFIX = "jdbc:postgresql:";
|
||||
private static final String VERIFY_FULL = "verify-full";
|
||||
private static final Pattern URL_SSLMODE = Pattern.compile("(?i)(?:[?&])sslmode=([^&]*)");
|
||||
|
||||
private final Environment environment;
|
||||
|
||||
public PostgreSqlTransportSecurityValidator(Environment environment) {
|
||||
this.environment = environment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterSingletonsInstantiated() {
|
||||
if (!isProdActive()) {
|
||||
return;
|
||||
}
|
||||
|
||||
String jdbcUrl = environment.getProperty(JDBC_URL_KEY);
|
||||
if (jdbcUrl == null || !jdbcUrl.trim().toLowerCase(Locale.ROOT).startsWith(POSTGRESQL_PREFIX)) {
|
||||
return;
|
||||
}
|
||||
|
||||
List<String> urlModes = urlSslModes(jdbcUrl);
|
||||
String propertyMode = normalized(environment.getProperty(HIKARI_SSLMODE_KEY));
|
||||
if (urlModes.size() > 1) {
|
||||
reject("prod PostgreSQL transport has ambiguous duplicate sslmode declarations");
|
||||
}
|
||||
String urlMode = urlModes.isEmpty() ? null : urlModes.getFirst();
|
||||
if (urlMode != null && propertyMode != null && !urlMode.equals(propertyMode)) {
|
||||
reject("prod PostgreSQL transport has conflicting sslmode declarations");
|
||||
}
|
||||
|
||||
String effectiveMode = propertyMode != null ? propertyMode : urlMode;
|
||||
if (!VERIFY_FULL.equals(effectiveMode)) {
|
||||
reject(
|
||||
"prod PostgreSQL transport requires pgJDBC sslmode=verify-full through "
|
||||
+ JDBC_URL_ENV_KEY
|
||||
+ " ("
|
||||
+ JDBC_URL_KEY
|
||||
+ ") or "
|
||||
+ HIKARI_SSLMODE_KEY);
|
||||
}
|
||||
}
|
||||
|
||||
private static List<String> urlSslModes(String jdbcUrl) {
|
||||
Matcher matcher = URL_SSLMODE.matcher(jdbcUrl);
|
||||
List<String> modes = new ArrayList<>();
|
||||
while (matcher.find()) {
|
||||
modes.add(normalized(matcher.group(1)));
|
||||
}
|
||||
return modes;
|
||||
}
|
||||
|
||||
private static String normalized(String value) {
|
||||
return value == null ? null : value.trim().toLowerCase(Locale.ROOT);
|
||||
}
|
||||
|
||||
private static void reject(String message) {
|
||||
throw StartupFailures.profileMismatch(message);
|
||||
}
|
||||
|
||||
private boolean isProdActive() {
|
||||
return RuntimeProfileSnapshot.from(environment).isProduction();
|
||||
}
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import org.springframework.core.env.ConfigurableEnvironment;
|
||||
import org.springframework.core.env.MapPropertySource;
|
||||
|
||||
/**
|
||||
* The readiness health group, and the one way a capability adds itself to it.
|
||||
*
|
||||
* <p>Two capability post-processors — Redis and the datasource — each contributed a member by
|
||||
* reading {@code management.endpoint.health.group.readiness.include}, splitting it on commas,
|
||||
* trimming, adding their own contributor, and pushing a new property source to the front. The code
|
||||
* was the same in both, and the property key itself was declared in the Redis one and reached from
|
||||
* the database one, so a package move turned a shared contract into a compile error and revealed
|
||||
* that Redis had never owned the key at all — it had simply declared it first.
|
||||
*
|
||||
* <p>The key belongs to the readiness group, so it lives here, and so does the merge. What stays
|
||||
* with each capability is the only part that is actually theirs: whether they are active, and which
|
||||
* contributor names them.
|
||||
*/
|
||||
public final class ReadinessGroup {
|
||||
|
||||
/** The Spring property naming the health contributors the readiness probe aggregates. */
|
||||
public static final String INCLUDE_PROPERTY =
|
||||
"management.endpoint.health.group.readiness.include";
|
||||
|
||||
private ReadinessGroup() {}
|
||||
|
||||
/**
|
||||
* Adds a contributor to the readiness group unless it is already named.
|
||||
*
|
||||
* <p>Returning without contributing when the member is already present is deliberate and not
|
||||
* merely an optimisation: pushing a source that repeats what the operator wrote would be harmless
|
||||
* at runtime and would hide, in {@code /actuator/configprops}, that they had asked for it
|
||||
* themselves.
|
||||
*
|
||||
* <p>Contributions chain rather than race because the callers declare distinct orders in {@link
|
||||
* dev.caskeleton.bootstrap.runtime.startup.StartupOrder}; each one reads what the previous
|
||||
* contributed.
|
||||
*
|
||||
* @param environment the environment to contribute to
|
||||
* @param propertySourceName a name unique to the contributing capability, so the source is
|
||||
* identifiable in {@code /actuator/env}
|
||||
* @param member the health contributor to include
|
||||
*/
|
||||
public static void include(
|
||||
ConfigurableEnvironment environment, String propertySourceName, String member) {
|
||||
String configured = environment.getProperty(INCLUDE_PROPERTY, "");
|
||||
Set<String> members = new LinkedHashSet<>();
|
||||
Arrays.stream(configured.split(","))
|
||||
.map(String::trim)
|
||||
.filter(existing -> !existing.isEmpty())
|
||||
.forEach(members::add);
|
||||
if (!members.add(member)) {
|
||||
return;
|
||||
}
|
||||
environment
|
||||
.getPropertySources()
|
||||
.addFirst(
|
||||
new MapPropertySource(
|
||||
propertySourceName, Map.of(INCLUDE_PROPERTY, String.join(",", members))));
|
||||
}
|
||||
}
|
||||
+7
-7
@@ -1,8 +1,8 @@
|
||||
package dev.caskeleton.bootstrap.activation;
|
||||
package dev.caskeleton.bootstrap.runtime;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.runtime.RuntimeProfileSnapshot;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupFailures;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupOrder;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupFailures;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupOrder;
|
||||
import dev.caskeleton.shared.runtime.RuntimeEnvironment;
|
||||
import java.util.List;
|
||||
import org.springframework.boot.EnvironmentPostProcessor;
|
||||
@@ -18,9 +18,9 @@ import org.springframework.core.env.ConfigurableEnvironment;
|
||||
* meant an in-memory database that loses every write on restart. The failure had no symptom until
|
||||
* the data was already gone.
|
||||
*
|
||||
* <p>Feature selection is not expressed here. That is what the registered master switches are for,
|
||||
* and a supplementary profile used as a feature flag is how a profile list stops being a statement
|
||||
* about where the application is running.
|
||||
* <p>Feature selection is not expressed here. A capability is selected by adding its module to the
|
||||
* build, and a supplementary profile used as a feature flag is how a profile list stops being a
|
||||
* statement about where the application is running.
|
||||
*
|
||||
* <p>Scoped to the deployable artifact, which means contexts whose main class is {@link
|
||||
* dev.caskeleton.bootstrap.CaSkeletonApplication}. Slice tests boot minimal applications with no
|
||||
@@ -70,7 +70,7 @@ public class RuntimeEnvironmentProfileValidator implements EnvironmentPostProces
|
||||
+ String.join(",", active)
|
||||
+ " names no runtime environment. Set exactly one of "
|
||||
+ RuntimeEnvironment.deployableProfileNames()
|
||||
+ "; a capability is selected with its master switch, never with a profile.");
|
||||
+ "; a capability is selected by adding its module, never with a profile.");
|
||||
}
|
||||
}
|
||||
|
||||
+4
-6
@@ -1,7 +1,7 @@
|
||||
package dev.caskeleton.bootstrap.runtime;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupPhase;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupValidationContext;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupPhase;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupValidationContext;
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.SmartInitializingSingleton;
|
||||
import org.springframework.core.env.Environment;
|
||||
@@ -17,13 +17,11 @@ public class RuntimeNumericBoundsValidator implements SmartInitializingSingleton
|
||||
|
||||
static final List<Bound> BOUNDS =
|
||||
List.of(
|
||||
// positive (>= 1)
|
||||
new Bound(
|
||||
"spring.datasource.hikari.maximum-pool-size", "APP_DATASOURCE_POOL_MAX_SIZE", 1),
|
||||
// positive (>= 1). Pool sizing is checked by the persistence-jpa module that owns the
|
||||
// pool.
|
||||
new Bound("server.tomcat.threads.max", "APP_SERVER_TOMCAT_MAX_THREADS", 1),
|
||||
new Bound("server.tomcat.max-connections", "APP_SERVER_TOMCAT_MAX_CONNECTIONS", 1),
|
||||
// non-negative (>= 0)
|
||||
new Bound("spring.datasource.hikari.minimum-idle", "APP_DATASOURCE_POOL_MIN_IDLE", 0),
|
||||
new Bound("server.tomcat.threads.min-spare", "APP_SERVER_TOMCAT_MIN_SPARE_THREADS", 0),
|
||||
new Bound("server.tomcat.accept-count", "APP_SERVER_TOMCAT_ACCEPT_COUNT", 0));
|
||||
|
||||
|
||||
+4
-25
@@ -8,7 +8,8 @@ import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Wires the runtime-safety startup fail-fast validators into the running application. See README
|
||||
* for the design rationale.
|
||||
* for the design rationale. The relational guards (OSIV, DDL, pool, TLS, vendor) belong to the
|
||||
* persistence-jpa module and arrive with it.
|
||||
*/
|
||||
@Configuration
|
||||
public class RuntimeSafetyConfig {
|
||||
@@ -25,29 +26,7 @@ public class RuntimeSafetyConfig {
|
||||
}
|
||||
|
||||
@Bean
|
||||
OpenInViewSafetyValidator openInViewSafetyValidator(Environment environment) {
|
||||
return new OpenInViewSafetyValidator(environment);
|
||||
}
|
||||
|
||||
@Bean
|
||||
JpaSchemaSafetyValidator jpaSchemaSafetyValidator(Environment environment) {
|
||||
return new JpaSchemaSafetyValidator(environment);
|
||||
}
|
||||
|
||||
@Bean
|
||||
PostgreSqlTransportSecurityValidator postgreSqlTransportSecurityValidator(
|
||||
Environment environment) {
|
||||
return new PostgreSqlTransportSecurityValidator(environment);
|
||||
}
|
||||
|
||||
@Bean
|
||||
PersistenceVendorProdSafetyValidator persistenceVendorProdSafetyValidator(
|
||||
Environment environment) {
|
||||
return new PersistenceVendorProdSafetyValidator(environment);
|
||||
}
|
||||
|
||||
@Bean
|
||||
HikariPoolConstraintValidator hikariPoolConstraintValidator(Environment environment) {
|
||||
return new HikariPoolConstraintValidator(environment);
|
||||
ErrorDetailExposureSafetyValidator errorDetailExposureSafetyValidator(Environment environment) {
|
||||
return new ErrorDetailExposureSafetyValidator(environment);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,85 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime;
|
||||
|
||||
import static net.logstash.logback.argument.StructuredArguments.kv;
|
||||
import static net.logstash.logback.argument.StructuredArguments.v;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* Single source for the two warnings this composition root actually emits.
|
||||
*
|
||||
* <p>{@code StartupFailures} already did this for the failures — one place, fixed structured
|
||||
* fields, an operator who can filter on {@code error.code}. Nothing did it for the warnings, so
|
||||
* seventeen {@code log.warn} calls each invented their own sentence and none of them carried a
|
||||
* field (BOOT-009). Grepping "how often does a meter fail to record?" across a fleet meant matching
|
||||
* prose.
|
||||
*
|
||||
* <p>Both methods below are frames, not wrappers: the fixed part is the field set, and the varying
|
||||
* part is passed in. That is the distinction the review asked for — keep what must differ, fix what
|
||||
* must not.
|
||||
*
|
||||
* <h2>Why these two and no more</h2>
|
||||
*
|
||||
* <p>A warning is not a failure. Everything here describes a runtime that is continuing: a meter
|
||||
* that could not be recorded, a setting that was replaced by its default. Anything that should stop
|
||||
* the process belongs in {@code StartupFailures} instead, and inventing a third frame before a
|
||||
* third shape exists would be the speculative generality this repository's own review argued
|
||||
* against.
|
||||
*/
|
||||
public final class RuntimeWarnings {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger("dev.caskeleton.bootstrap.runtime");
|
||||
|
||||
private RuntimeWarnings() {}
|
||||
|
||||
/**
|
||||
* A meter could not be registered, recorded or refreshed.
|
||||
*
|
||||
* <p>Observability failing is never a reason to fail the operation being observed, so every
|
||||
* caller of this swallows the cause and continues. That is exactly why the warning has to be
|
||||
* findable: it is the only trace that a metric an operator is watching has silently stopped
|
||||
* moving.
|
||||
*
|
||||
* @param capability the capability whose meter failed — {@code outbox}, {@code distributed-lock},
|
||||
* {@code tracing}, {@code background-job}
|
||||
* @param meter the meter name or the operation that failed
|
||||
* @param cause the failure
|
||||
*/
|
||||
public static void meterUnavailable(String capability, String meter, Throwable cause) {
|
||||
// v(), not kv(): both attach the field, but kv() also renders "name=value" into the message
|
||||
// text, which reads as noise in a plain-text console and duplicates what the JSON encoder
|
||||
// already emits. The rendered sentence stays a sentence; the fields are still there.
|
||||
log.warn(
|
||||
"{} metrics: {} could not be recorded",
|
||||
v("capability", capability),
|
||||
v("meter", meter),
|
||||
kv("warning.kind", "meter-unavailable"),
|
||||
cause);
|
||||
}
|
||||
|
||||
/**
|
||||
* A configured value was rejected and its default applied instead.
|
||||
*
|
||||
* <p>Deliberately a warning rather than a startup failure: these settings shape logging, and
|
||||
* refusing to start because a log rotation count was zero would make the observability
|
||||
* configuration able to take the application down. The trade is that the deployment runs with a
|
||||
* value nobody asked for, so the message names the key, what was rejected and what is in force —
|
||||
* an operator reading only the applied value would never know their configuration was ignored.
|
||||
*
|
||||
* @param environmentKey the environment variable an operator would edit
|
||||
* @param rejected the configured value that was refused; may be {@code null} or blank
|
||||
* @param applied the value actually in force
|
||||
* @param reason why the configured value was refused
|
||||
*/
|
||||
public static void settingFallback(
|
||||
String environmentKey, Object rejected, Object applied, String reason) {
|
||||
log.warn(
|
||||
"{} was rejected and its default applied: {} (rejected '{}', in force '{}')",
|
||||
v("env.key", environmentKey),
|
||||
reason,
|
||||
v("setting.rejected", String.valueOf(rejected)),
|
||||
v("setting.applied", String.valueOf(applied)),
|
||||
kv("warning.kind", "setting-fallback"));
|
||||
}
|
||||
}
|
||||
-16
@@ -1,7 +1,6 @@
|
||||
package dev.caskeleton.bootstrap.runtime;
|
||||
|
||||
import dev.caskeleton.application.outbound.SecretSourcePort;
|
||||
import dev.caskeleton.bootstrap.autoconfigure.redis.RedisActivationValidator;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
@@ -26,19 +25,4 @@ public class SecretSourceConfig {
|
||||
ConfigurableEnvironment environment, SecretSourcePort secretSource) {
|
||||
return new SecretSourceValidator(environment, secretSource);
|
||||
}
|
||||
|
||||
/**
|
||||
* Guards the Redis activation contract.
|
||||
*
|
||||
* <p>It lives beside the secret validator because they read the same two inputs — the global
|
||||
* switch and the role selectors — and disagreeing about them is exactly the failure both exist to
|
||||
* prevent.
|
||||
*
|
||||
* @param environment the bound environment
|
||||
* @return the validator
|
||||
*/
|
||||
@Bean
|
||||
RedisActivationValidator redisActivationValidator(ConfigurableEnvironment environment) {
|
||||
return new RedisActivationValidator(environment);
|
||||
}
|
||||
}
|
||||
|
||||
+24
-5
@@ -1,9 +1,9 @@
|
||||
package dev.caskeleton.bootstrap.runtime;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.runtime.RuntimeProfileSnapshot;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupPhase;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupValidationContext;
|
||||
import dev.caskeleton.application.outbound.SecretSourcePort;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupPhase;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupValidationContext;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
@@ -24,8 +24,8 @@ public class SecretSourceValidator implements SmartInitializingSingleton {
|
||||
/**
|
||||
* The one global Redis switch, bound from {@code APP_REDIS_ENABLED}.
|
||||
*
|
||||
* <p>There is deliberately no second master switch. {@code APP_CACHE_REDIS_ENABLED} used to read
|
||||
* like one, which is how a deployment with no Redis at all still had to supply cache Redis
|
||||
* <p>There is deliberately no second capability switch. {@code APP_CACHE_REDIS_ENABLED} used to
|
||||
* read like one, which is how a deployment with no Redis at all still had to supply cache Redis
|
||||
* credentials to reach a running state.
|
||||
*/
|
||||
public static final String REDIS_ENABLED_PROPERTY = "app.redis.enabled";
|
||||
@@ -48,6 +48,17 @@ public class SecretSourceValidator implements SmartInitializingSingleton {
|
||||
"APP_LEASE_REDIS_KEY_HMAC_SECRET",
|
||||
"APP_PRIVACY_PSEUDONYMIZATION_SALT");
|
||||
|
||||
/**
|
||||
* The relational credential, required only while relational persistence is on. The switch is set
|
||||
* by the persistence-jpa module's shipped defaults, so a composition without the module — the
|
||||
* default one — owes no database password, the same way a deployment without Redis owes no Redis
|
||||
* credential.
|
||||
*/
|
||||
private static final String DATASOURCE_PASSWORD = "APP_DATASOURCE_PASSWORD";
|
||||
|
||||
private static final String RELATIONAL_PERSISTENCE_PROPERTY =
|
||||
"ca-skeleton.persistence-jpa.enabled";
|
||||
|
||||
private final ConfigurableEnvironment environment;
|
||||
private final SecretSourcePort secretSource;
|
||||
|
||||
@@ -95,6 +106,9 @@ public class SecretSourceValidator implements SmartInitializingSingleton {
|
||||
if (isRedisMaterial(key) && !isRedisRoleSelected(key)) {
|
||||
continue;
|
||||
}
|
||||
if (DATASOURCE_PASSWORD.equals(key) && !isRelationalPersistenceOn()) {
|
||||
continue;
|
||||
}
|
||||
if (secretSource.resolve(key).isEmpty()) {
|
||||
validation.reject(key + " is missing/blank");
|
||||
}
|
||||
@@ -134,7 +148,7 @@ public class SecretSourceValidator implements SmartInitializingSingleton {
|
||||
return isSelected("ca-skeleton.security.auth-mode", "jwt", "redis-session");
|
||||
}
|
||||
if (key.startsWith("APP_IDEMPOTENCY_REDIS_")) {
|
||||
return isSelected("ca-skeleton.capabilities.idempotency.provider", "jdbc", "redis");
|
||||
return isSelected("ca-skeleton.capabilities.idempotency.provider", "disabled", "redis");
|
||||
}
|
||||
if (key.startsWith("APP_LEASE_REDIS_")) {
|
||||
return isSelected("ca-skeleton.capabilities.lease.provider", "disabled", "redis");
|
||||
@@ -161,4 +175,9 @@ public class SecretSourceValidator implements SmartInitializingSingleton {
|
||||
private boolean isProdActive() {
|
||||
return RuntimeProfileSnapshot.from(environment).isProduction();
|
||||
}
|
||||
|
||||
private boolean isRelationalPersistenceOn() {
|
||||
return Boolean.parseBoolean(
|
||||
environment.getProperty(RELATIONAL_PERSISTENCE_PROPERTY, "false").trim());
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package dev.caskeleton.bootstrap.runtime;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupPhase;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupValidationContext;
|
||||
import dev.caskeleton.application.lock.DistributedLockPort;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupPhase;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupValidationContext;
|
||||
import dev.caskeleton.bootstrap.settings.RuntimeSafetySettings;
|
||||
import org.springframework.beans.factory.ListableBeanFactory;
|
||||
import org.springframework.beans.factory.SmartInitializingSingleton;
|
||||
|
||||
-58
@@ -1,58 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.runtime.RuntimeProfileSnapshot;
|
||||
import org.springframework.beans.factory.SmartInitializingSingleton;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Keeps the Flyway prod safety nets on; raises PROFILE_MISMATCH (exit 71) when an override
|
||||
* re-enables a forbidden option. See README for the design rationale.
|
||||
*/
|
||||
public class FlywayProdSafetyValidator implements SmartInitializingSingleton {
|
||||
|
||||
static final String BASELINE_ON_MIGRATE_KEY = "spring.flyway.baseline-on-migrate";
|
||||
static final String OUT_OF_ORDER_KEY = "spring.flyway.out-of-order";
|
||||
static final String CLEAN_DISABLED_KEY = "spring.flyway.clean-disabled";
|
||||
|
||||
private final Environment environment;
|
||||
|
||||
public FlywayProdSafetyValidator(Environment environment) {
|
||||
this.environment = environment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterSingletonsInstantiated() {
|
||||
if (!isProdActive()) {
|
||||
return;
|
||||
}
|
||||
StartupValidationContext violations =
|
||||
StartupValidationContext.forPhase(StartupPhase.PROFILE_CHECK);
|
||||
if (isTrue(BASELINE_ON_MIGRATE_KEY)) {
|
||||
violations.reject(
|
||||
BASELINE_ON_MIGRATE_KEY + "=true (removes the missing-migration safety net)");
|
||||
}
|
||||
if (isTrue(OUT_OF_ORDER_KEY)) {
|
||||
violations.reject(OUT_OF_ORDER_KEY + "=true (breaks migration ordering consistency)");
|
||||
}
|
||||
if (isFalse(CLEAN_DISABLED_KEY)) {
|
||||
violations.reject(CLEAN_DISABLED_KEY + "=false (re-arms destructive Flyway clean)");
|
||||
}
|
||||
violations.failIfViolated(
|
||||
"prod profile forbids these Flyway options (feature-migration-startup-contract D2/D4)",
|
||||
"partial-schema recovery goes through runbook://migration/manual-recovery, never an"
|
||||
+ " in-prod Flyway repair.");
|
||||
}
|
||||
|
||||
private boolean isTrue(String key) {
|
||||
return Boolean.parseBoolean(environment.getProperty(key));
|
||||
}
|
||||
|
||||
private boolean isFalse(String key) {
|
||||
String value = environment.getProperty(key);
|
||||
return value != null && "false".equalsIgnoreCase(value.trim());
|
||||
}
|
||||
|
||||
private boolean isProdActive() {
|
||||
return RuntimeProfileSnapshot.from(environment).isProduction();
|
||||
}
|
||||
}
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
/**
|
||||
* A Flyway forward-only migration failed during startup (MIGRATION_FAILED, exit 70 — sysexits
|
||||
* {@code EX_SOFTWARE}). Phase: migration. Wraps the underlying {@code FlywayException} as the cause
|
||||
* to preserve the root error for triage.
|
||||
*/
|
||||
public class MigrationFailedException extends StartupFailureException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public MigrationFailedException(String message, Throwable cause) {
|
||||
super(StartupErrorCode.MIGRATION_FAILED, message, cause);
|
||||
}
|
||||
}
|
||||
-53
@@ -1,53 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
import static net.logstash.logback.argument.StructuredArguments.kv;
|
||||
|
||||
import dev.caskeleton.bootstrap.settings.RuntimeSafetySettings;
|
||||
import org.flywaydb.core.Flyway;
|
||||
import org.flywaydb.core.api.FlywayException;
|
||||
import org.flywaydb.core.api.output.MigrateResult;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.boot.flyway.autoconfigure.FlywayMigrationStrategy;
|
||||
|
||||
/**
|
||||
* Runs the Flyway migration during context refresh so it completes before readiness, and translates
|
||||
* a {@link FlywayException} into a {@link MigrationFailedException} (exit 70). See README for the
|
||||
* design rationale.
|
||||
*/
|
||||
public class MigrationStartupRunner implements FlywayMigrationStrategy {
|
||||
|
||||
private static final Logger log =
|
||||
LoggerFactory.getLogger("dev.caskeleton.bootstrap.runtime.startup");
|
||||
|
||||
private final RuntimeSafetySettings settings;
|
||||
|
||||
public MigrationStartupRunner(RuntimeSafetySettings settings) {
|
||||
this.settings = settings;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void migrate(Flyway flyway) {
|
||||
if (!settings.migrationOnStartup()) {
|
||||
log.info(
|
||||
"startup phase {}: in-app Flyway migration is disabled via configuration (ca-skeleton.runtime.migration-on-startup=false)",
|
||||
kv("startup.phase", StartupPhase.MIGRATION.wireName()));
|
||||
return;
|
||||
}
|
||||
log.info(
|
||||
"startup phase {}: applying Flyway forward-only migrations",
|
||||
kv("startup.phase", StartupPhase.MIGRATION.wireName()));
|
||||
try {
|
||||
MigrateResult result = flyway.migrate();
|
||||
int executed = (result != null) ? result.migrationsExecuted : 0;
|
||||
log.info(
|
||||
"startup phase {}: migration complete, {} migration(s) applied",
|
||||
kv("startup.phase", StartupPhase.MIGRATION.wireName()),
|
||||
executed);
|
||||
} catch (FlywayException e) {
|
||||
// StartupFailures emits the structured failure log before constructing the exception.
|
||||
throw StartupFailures.migrationFailed(
|
||||
"Flyway forward-only migration failed during startup", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
/**
|
||||
* An active profile conflicts with an enabled prod-forbidden setting — e.g. a prod-unsafe toggle or
|
||||
* a forbidden Flyway option left on under the {@code prod} profile (PROFILE_MISMATCH, exit 71 —
|
||||
* ca-tmpl internal convention, see {@link StartupErrorCode}). Phase: profile-check.
|
||||
*/
|
||||
public class ProfileMismatchException extends StartupFailureException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public ProfileMismatchException(String message) {
|
||||
super(StartupErrorCode.PROFILE_MISMATCH, message, null);
|
||||
}
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
/**
|
||||
* A required capability adapter / coordination bean is disabled or absent at startup
|
||||
* (REQUIRED_ADAPTER_DISABLED, exit 72 — ca-tmpl internal convention, see {@link StartupErrorCode}).
|
||||
* Phase: adapter-enablement. Distinct from the runtime-lifecycle {@code ADAPTER_DISABLED}: this is
|
||||
* a startup validation, not a runtime invoke against a disabled optional adapter. See README for
|
||||
* the design rationale.
|
||||
*/
|
||||
public class RequiredAdapterDisabledException extends StartupFailureException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public RequiredAdapterDisabledException(String message) {
|
||||
super(StartupErrorCode.REQUIRED_ADAPTER_DISABLED, message, null);
|
||||
}
|
||||
}
|
||||
-45
@@ -1,45 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
import java.util.Map;
|
||||
import org.springframework.beans.factory.SmartInitializingSingleton;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
/**
|
||||
* Raises STARTUP_VALIDATION_FAILED (exit 78) naming every missing operator env key before a
|
||||
* migration fails with an opaque driver error. Absent or blank counts as missing. See README for
|
||||
* the design rationale.
|
||||
*/
|
||||
public class RequiredEnvironmentValidator implements SmartInitializingSingleton {
|
||||
|
||||
/** Spring property key → operator-facing env key (named in the failure message). */
|
||||
static final Map<String, String> REQUIRED_DATASOURCE_ENV =
|
||||
Map.of(
|
||||
"spring.datasource.url", "APP_DATASOURCE_URL",
|
||||
"spring.datasource.username", "APP_DATASOURCE_USERNAME",
|
||||
"spring.datasource.driver-class-name", "APP_DATASOURCE_DRIVER");
|
||||
|
||||
private final Environment environment;
|
||||
|
||||
public RequiredEnvironmentValidator(Environment environment) {
|
||||
this.environment = environment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterSingletonsInstantiated() {
|
||||
StartupValidationContext missing =
|
||||
StartupValidationContext.forPhase(StartupPhase.ENV_VALIDATION);
|
||||
// Sorted for a stable, deterministic message regardless of map iteration order.
|
||||
REQUIRED_DATASOURCE_ENV.entrySet().stream()
|
||||
.sorted(Map.Entry.comparingByValue())
|
||||
.forEach(
|
||||
entry -> {
|
||||
String value = environment.getProperty(entry.getKey());
|
||||
if (value == null || value.isBlank()) {
|
||||
missing.reject(entry.getValue() + " (" + entry.getKey() + ")");
|
||||
}
|
||||
});
|
||||
missing.failIfViolated(
|
||||
"required datasource environment is missing or blank — a Flyway migration"
|
||||
+ " cannot run without it");
|
||||
}
|
||||
}
|
||||
-38
@@ -1,38 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
/**
|
||||
* The four startup-failure causes. Each exit code becomes the JVM exit status only because the
|
||||
* carrying exception implements {@link org.springframework.boot.ExitCodeGenerator} (see {@link
|
||||
* StartupFailureException}). See README for the design rationale.
|
||||
*/
|
||||
public enum StartupErrorCode {
|
||||
STARTUP_VALIDATION_FAILED(78, StartupPhase.ENV_VALIDATION),
|
||||
MIGRATION_FAILED(70, StartupPhase.MIGRATION),
|
||||
PROFILE_MISMATCH(71, StartupPhase.PROFILE_CHECK),
|
||||
REQUIRED_ADAPTER_DISABLED(72, StartupPhase.ADAPTER_ENABLEMENT);
|
||||
|
||||
/** Registry-fixed category for all four codes. */
|
||||
private static final String CATEGORY = "INTERNAL";
|
||||
|
||||
private final int exitCode;
|
||||
private final StartupPhase phase;
|
||||
|
||||
StartupErrorCode(int exitCode, StartupPhase phase) {
|
||||
this.exitCode = exitCode;
|
||||
this.phase = phase;
|
||||
}
|
||||
|
||||
public int exitCode() {
|
||||
return exitCode;
|
||||
}
|
||||
|
||||
/** The startup phase this cause belongs to ({@code startup.phase} log field). */
|
||||
public StartupPhase phase() {
|
||||
return phase;
|
||||
}
|
||||
|
||||
/** Registry category — always {@code INTERNAL} ({@code error.category} log field). */
|
||||
public String category() {
|
||||
return CATEGORY;
|
||||
}
|
||||
}
|
||||
-31
@@ -1,31 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
import org.springframework.boot.ExitCodeGenerator;
|
||||
|
||||
/**
|
||||
* Base type for the four startup-failure causes. Implementing {@link ExitCodeGenerator} turns the
|
||||
* cause's {@link StartupErrorCode#exitCode()} into the JVM exit status when context refresh fails.
|
||||
* Extends {@link IllegalStateException} for source/behaviour compatibility with the prior {@code
|
||||
* IllegalStateException}-based startup validation. See README for the design rationale.
|
||||
*/
|
||||
public abstract class StartupFailureException extends IllegalStateException
|
||||
implements ExitCodeGenerator {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private final transient StartupErrorCode errorCode;
|
||||
|
||||
protected StartupFailureException(StartupErrorCode errorCode, String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public StartupErrorCode errorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getExitCode() {
|
||||
return errorCode.exitCode();
|
||||
}
|
||||
}
|
||||
+3
@@ -1,6 +1,9 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
import dev.caskeleton.adapter.outbound.support.CapabilityStartupValidationException;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupErrorCode;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupFailureException;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupFailures;
|
||||
import org.springframework.boot.SpringBootExceptionReporter;
|
||||
|
||||
/**
|
||||
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
import ch.qos.logback.core.Context;
|
||||
import java.util.Objects;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/** Logger-context-local marker that the canonical startup failure log has already been emitted. */
|
||||
public final class StartupFailureLogState {
|
||||
|
||||
private static final String CONTEXT_KEY =
|
||||
StartupFailureLogState.class.getName() + ".startupFailureReported";
|
||||
|
||||
private StartupFailureLogState() {}
|
||||
|
||||
/** Marks the current Logback context when Logback is the active SLF4J provider. */
|
||||
public static void markStartupFailureReported() {
|
||||
Object loggerFactory = LoggerFactory.getILoggerFactory();
|
||||
if (loggerFactory instanceof Context context) {
|
||||
markStartupFailureReported(context);
|
||||
}
|
||||
}
|
||||
|
||||
/** Marks one explicit logging context. */
|
||||
public static void markStartupFailureReported(Context context) {
|
||||
Objects.requireNonNull(context, "context").putObject(CONTEXT_KEY, true);
|
||||
}
|
||||
|
||||
/** Whether the canonical startup failure has been emitted in this logging context. */
|
||||
public static boolean startupFailureReported(Context context) {
|
||||
return context != null && Boolean.TRUE.equals(context.getObject(CONTEXT_KEY));
|
||||
}
|
||||
}
|
||||
-86
@@ -1,86 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
import static net.logstash.logback.argument.StructuredArguments.kv;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* Single source for raising a startup failure. Every factory method emits the structured failure
|
||||
* log (with the {@code startup.phase} / {@code error.code} / {@code error.category} fields) before
|
||||
* returning the exception to throw. See README for the design rationale.
|
||||
*/
|
||||
public final class StartupFailures {
|
||||
|
||||
private static final Logger log =
|
||||
LoggerFactory.getLogger("dev.caskeleton.bootstrap.runtime.startup");
|
||||
|
||||
private StartupFailures() {}
|
||||
|
||||
public static StartupValidationException envValidation(String detail) {
|
||||
return envValidation(detail, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Raises an environment/configuration validation failure that a lower-level exception proved.
|
||||
*
|
||||
* @param detail the operator-facing detail
|
||||
* @param cause the failure that proved the configuration wrong; may be {@code null}
|
||||
* @return the exception to throw
|
||||
*/
|
||||
public static StartupValidationException envValidation(String detail, Throwable cause) {
|
||||
emit(StartupErrorCode.STARTUP_VALIDATION_FAILED, detail, cause);
|
||||
return new StartupValidationException(detail, cause);
|
||||
}
|
||||
|
||||
public static ProfileMismatchException profileMismatch(String detail) {
|
||||
emit(StartupErrorCode.PROFILE_MISMATCH, detail, null);
|
||||
return new ProfileMismatchException(detail);
|
||||
}
|
||||
|
||||
public static RequiredAdapterDisabledException requiredAdapterDisabled(String detail) {
|
||||
emit(StartupErrorCode.REQUIRED_ADAPTER_DISABLED, detail, null);
|
||||
return new RequiredAdapterDisabledException(detail);
|
||||
}
|
||||
|
||||
public static MigrationFailedException migrationFailed(String detail, Throwable cause) {
|
||||
emit(StartupErrorCode.MIGRATION_FAILED, detail, cause);
|
||||
return new MigrationFailedException(detail, cause);
|
||||
}
|
||||
|
||||
/** Emits the structured startup-failure log. {@code cause} may be {@code null}. */
|
||||
static void emit(StartupErrorCode code, String detail, Throwable cause) {
|
||||
StartupFailureLogState.markStartupFailureReported();
|
||||
if (cause == null) {
|
||||
log.error(
|
||||
"startup failure in phase {}: {}",
|
||||
kv("startup.phase", code.phase().wireName()),
|
||||
detail,
|
||||
kv("error.code", code.name()),
|
||||
kv("error.category", code.category()));
|
||||
} else {
|
||||
Throwable rootCause = rootCause(cause);
|
||||
log.error(
|
||||
"startup failure in phase {}: {} (root cause {}: {})",
|
||||
kv("startup.phase", code.phase().wireName()),
|
||||
detail,
|
||||
kv("error.root_cause.class", rootCause.getClass().getName()),
|
||||
kv("error.root_cause.message", safeMessage(rootCause)),
|
||||
kv("error.code", code.name()),
|
||||
kv("error.category", code.category()));
|
||||
}
|
||||
}
|
||||
|
||||
private static Throwable rootCause(Throwable cause) {
|
||||
Throwable current = cause;
|
||||
while (current.getCause() != null && current.getCause() != current) {
|
||||
current = current.getCause();
|
||||
}
|
||||
return current;
|
||||
}
|
||||
|
||||
private static String safeMessage(Throwable cause) {
|
||||
String message = cause.getMessage();
|
||||
return message == null ? "" : message;
|
||||
}
|
||||
}
|
||||
-66
@@ -1,66 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
import org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor;
|
||||
import org.springframework.core.Ordered;
|
||||
|
||||
/**
|
||||
* The order every {@code EnvironmentPostProcessor} in this composition root runs in, in one place.
|
||||
*
|
||||
* <p>Six post-processors are registered in {@code META-INF/spring.factories} and their relative
|
||||
* order is part of how they work — a capability violation reported against a key the master switch
|
||||
* was about to rewrite sends an operator somewhere useless. Three of them nonetheless returned the
|
||||
* same value, {@code Ordered.LOWEST_PRECEDENCE}, and a fourth declared no order at all (BOOT-005).
|
||||
* The sequence held only because Spring sorts stably and {@code spring.factories} happened to list
|
||||
* them in the intended order: reordering four lines in a text file would have silently changed
|
||||
* behaviour, and nothing would have failed.
|
||||
*
|
||||
* <p>{@link dev.caskeleton.bootstrap.activation.CapabilityDependencyEnvironmentValidator} even
|
||||
* documented the constraint in its {@code getOrder()} Javadoc — "after {@code
|
||||
* MasterSwitchEnvironmentPostProcessor} has rejected legacy switch spellings" — while returning a
|
||||
* value that could not express it. A comment stating an ordering its return value does not enforce
|
||||
* is the shape this class exists to remove.
|
||||
*
|
||||
* <h2>Two bands, and why</h2>
|
||||
*
|
||||
* <p>The readiness post-processors contribute property sources and run immediately after config
|
||||
* data, so they are expressed relative to {@link ConfigDataEnvironmentPostProcessor#ORDER}. The
|
||||
* validators must observe the environment the application will actually run with — every
|
||||
* contributed source included — so they stay at the {@code LOWEST_PRECEDENCE} end and are separated
|
||||
* from each other by single steps. Keeping the last of them at exactly {@code LOWEST_PRECEDENCE}
|
||||
* preserves this repository's existing position relative to any third-party post-processor at that
|
||||
* value, so this change makes an undefined order deterministic without moving the whole band.
|
||||
*/
|
||||
public final class StartupOrder {
|
||||
|
||||
private StartupOrder() {}
|
||||
|
||||
/** Redis readiness group contribution — a property source, immediately after config data. */
|
||||
public static final int READINESS_REDIS = ConfigDataEnvironmentPostProcessor.ORDER + 1;
|
||||
|
||||
/** Database readiness group contribution — a property source, immediately after config data. */
|
||||
public static final int READINESS_DATABASE = ConfigDataEnvironmentPostProcessor.ORDER + 2;
|
||||
|
||||
/**
|
||||
* Master-switch normalisation. First of the validators, because it rewrites and rejects legacy
|
||||
* switch spellings; every rule after it reads the keys an operator will actually be told about.
|
||||
*/
|
||||
public static final int MASTER_SWITCH_NORMALISATION = Ordered.LOWEST_PRECEDENCE - 3;
|
||||
|
||||
/**
|
||||
* Runtime environment profile rule. After master-switch normalisation and before capability
|
||||
* checks: which environment this is decides which capability combinations are even legal.
|
||||
*/
|
||||
public static final int RUNTIME_ENVIRONMENT_PROFILE = Ordered.LOWEST_PRECEDENCE - 2;
|
||||
|
||||
/**
|
||||
* Capability dependency graph. Last of the fail-closed rules, so its message names post-migration
|
||||
* keys under a runtime environment that has already been established as valid.
|
||||
*/
|
||||
public static final int CAPABILITY_DEPENDENCY = Ordered.LOWEST_PRECEDENCE - 1;
|
||||
|
||||
/**
|
||||
* Tracing sample-rate defaulting. Runs after every rule that can refuse the boot outright — there
|
||||
* is no value in defaulting a sample rate for a process that is about to exit.
|
||||
*/
|
||||
public static final int TRACING_SAMPLING = Ordered.LOWEST_PRECEDENCE;
|
||||
}
|
||||
-29
@@ -1,29 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
/**
|
||||
* The startup lifecycle phase a fail-fast guard belongs to, written to the {@code startup.phase}
|
||||
* structured-log field so an operator can tell the four failure causes apart in the logs. See
|
||||
* README for the design rationale.
|
||||
*/
|
||||
public enum StartupPhase {
|
||||
|
||||
/** Required environment / configuration value missing or malformed (exit 78). */
|
||||
ENV_VALIDATION("env-validation"),
|
||||
/** Flyway forward-only migration failed (exit 70). */
|
||||
MIGRATION("migration"),
|
||||
/** A required capability adapter/bean was disabled or absent (exit 72). */
|
||||
ADAPTER_ENABLEMENT("adapter-enablement"),
|
||||
/** An active profile conflicts with an enabled prod-forbidden setting (exit 71). */
|
||||
PROFILE_CHECK("profile-check");
|
||||
|
||||
private final String wireName;
|
||||
|
||||
StartupPhase(String wireName) {
|
||||
this.wireName = wireName;
|
||||
}
|
||||
|
||||
/** The verbatim value written to the {@code startup.phase} structured-log field. */
|
||||
public String wireName() {
|
||||
return wireName;
|
||||
}
|
||||
}
|
||||
-173
@@ -1,173 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* Collects every violation a startup guard finds, then raises them as one typed failure.
|
||||
*
|
||||
* <p>Fifteen guards in this leaf wrote the same shape by hand: a {@code new ArrayList<>()}, a
|
||||
* series of {@code if (...) list.add(...)}, and a closing {@code if (!list.isEmpty()) throw ...}
|
||||
* (BOOT-004). They did not even agree on what to call it — {@code violations}, {@code missing},
|
||||
* {@code offenders}, {@code contradictions}, {@code unsafe}, {@code reasons}, {@code modes} — so
|
||||
* the fact that they were one pattern was invisible in the code, and each copy independently chose
|
||||
* how to join the messages and which exception to throw.
|
||||
*
|
||||
* <h2>Accumulate, do not fail fast</h2>
|
||||
*
|
||||
* <p>Collecting every violation before failing is the point, and it is worth stating because the
|
||||
* opposite is the more common instinct. An operator fixing a misconfigured deployment works in
|
||||
* cycles of edit, restart, read the error. Reporting one problem at a time turns a single bad
|
||||
* configuration into as many restarts as it has mistakes; reporting all of them costs nothing and
|
||||
* ends the loop in one pass. This is also why Bean Validation's {@code @GroupSequence} was the
|
||||
* wrong instrument here — group sequencing short-circuits, which is precisely the behaviour that
|
||||
* must not happen inside one phase.
|
||||
*
|
||||
* <h2>The phase chooses the exception</h2>
|
||||
*
|
||||
* <p>A context is opened for a {@link StartupPhase}, and the phase decides which {@link
|
||||
* StartupFailures} factory raises the result — so the exit code, the {@code error.code} field and
|
||||
* the {@code startup.phase} log field follow from one declaration at the top of the guard instead
|
||||
* of being restated at the throw site. Before this, {@code StartupPhase} existed but was only ever
|
||||
* written into a log message; nothing read it, and nothing derived behaviour from it (BOOT-005).
|
||||
*/
|
||||
public final class StartupValidationContext {
|
||||
|
||||
private final StartupPhase phase;
|
||||
private final List<String> violations = new ArrayList<>();
|
||||
|
||||
private StartupValidationContext(StartupPhase phase) {
|
||||
this.phase = Objects.requireNonNull(phase, "phase");
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens a context for the given phase.
|
||||
*
|
||||
* <p>{@link StartupPhase#MIGRATION} is refused here rather than at the failure site. A migration
|
||||
* failure always carries the Flyway exception that caused it and is raised through {@link
|
||||
* StartupFailures#migrationFailed}; a context cannot invent that cause. Rejecting the phase at
|
||||
* construction puts the error where the mistake is — the guard that opened the wrong context —
|
||||
* instead of surfacing it only on the day something actually goes wrong.
|
||||
*
|
||||
* @param phase the startup phase whose rules this context collects
|
||||
* @return a new, empty context
|
||||
* @throws IllegalArgumentException when the phase is {@code MIGRATION}
|
||||
*/
|
||||
public static StartupValidationContext forPhase(StartupPhase phase) {
|
||||
if (phase == StartupPhase.MIGRATION) {
|
||||
throw new IllegalArgumentException(
|
||||
"StartupPhase.MIGRATION cannot be accumulated: a migration failure carries the exception "
|
||||
+ "that caused it and is raised through StartupFailures.migrationFailed(detail, cause)");
|
||||
}
|
||||
return new StartupValidationContext(phase);
|
||||
}
|
||||
|
||||
/** The phase this context collects for. */
|
||||
public StartupPhase phase() {
|
||||
return phase;
|
||||
}
|
||||
|
||||
/**
|
||||
* Records a violation unless the condition holds.
|
||||
*
|
||||
* @param satisfied the rule's outcome — {@code true} means nothing to record
|
||||
* @param violation the operator-facing description of what is wrong, evaluated eagerly
|
||||
* @return this context, so rules can be chained
|
||||
*/
|
||||
public StartupValidationContext require(boolean satisfied, String violation) {
|
||||
if (!satisfied) {
|
||||
reject(violation);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Records a violation unconditionally.
|
||||
*
|
||||
* @param violation the operator-facing description of what is wrong
|
||||
* @return this context, so rules can be chained
|
||||
*/
|
||||
public StartupValidationContext reject(String violation) {
|
||||
violations.add(Objects.requireNonNull(violation, "violation"));
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Records every given violation.
|
||||
*
|
||||
* @param found violations produced elsewhere — a shared rule evaluated by another class
|
||||
* @return this context, so rules can be chained
|
||||
*/
|
||||
public StartupValidationContext rejectAll(List<String> found) {
|
||||
for (String violation : found) {
|
||||
reject(violation);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sorts the collected violations so the message is the same on every host.
|
||||
*
|
||||
* <p>For a guard that walks a {@code Map}, insertion order is iteration order and iteration order
|
||||
* is not a contract — the same misconfiguration would otherwise produce a different message from
|
||||
* one JVM to the next, which is exactly the kind of difference that makes an operator wonder
|
||||
* whether they are looking at two problems.
|
||||
*
|
||||
* @return this context, so rules can be chained
|
||||
*/
|
||||
public StartupValidationContext sorted() {
|
||||
violations.sort(String::compareTo);
|
||||
return this;
|
||||
}
|
||||
|
||||
/** Reports whether anything was recorded. */
|
||||
public boolean hasViolations() {
|
||||
return !violations.isEmpty();
|
||||
}
|
||||
|
||||
/** Everything recorded so far, in the order it was found. */
|
||||
public List<String> violations() {
|
||||
return List.copyOf(violations);
|
||||
}
|
||||
|
||||
/**
|
||||
* Raises the collected violations as the failure this phase corresponds to, or returns quietly.
|
||||
*
|
||||
* <p>The summary is what an operator reads first, so it should name the thing being validated
|
||||
* rather than repeat that validation failed; the violations follow it, semicolon-separated.
|
||||
*
|
||||
* @param summary a short lead-in naming what was being validated
|
||||
*/
|
||||
public void failIfViolated(String summary) {
|
||||
failIfViolated(summary, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Raises the collected violations, followed by what the operator should do about them.
|
||||
*
|
||||
* <p>The remedy is a separate parameter rather than part of the summary because it belongs after
|
||||
* the list: "these options are forbidden: a; b — recovery goes through runbook://…" reads as
|
||||
* instructions, while the same sentence before the list reads as a description of the list.
|
||||
*
|
||||
* @param summary a short lead-in naming what was being validated
|
||||
* @param remedy what to do instead; may be {@code null}
|
||||
*/
|
||||
public void failIfViolated(String summary, String remedy) {
|
||||
if (violations.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
String detail =
|
||||
summary + ": " + String.join("; ", violations) + (remedy == null ? "" : " — " + remedy);
|
||||
throw switch (phase) {
|
||||
case ENV_VALIDATION -> StartupFailures.envValidation(detail);
|
||||
case PROFILE_CHECK -> StartupFailures.profileMismatch(detail);
|
||||
case ADAPTER_ENABLEMENT -> StartupFailures.requiredAdapterDisabled(detail);
|
||||
// Unreachable: forPhase refuses MIGRATION. The arm exists so the switch stays exhaustive
|
||||
// without a `default`, which is what makes the compiler object if a fifth phase is added
|
||||
// without deciding how it fails.
|
||||
case MIGRATION ->
|
||||
throw new AssertionError("forPhase rejects MIGRATION; collected: " + detail);
|
||||
};
|
||||
}
|
||||
}
|
||||
-29
@@ -1,29 +0,0 @@
|
||||
package dev.caskeleton.bootstrap.runtime.startup;
|
||||
|
||||
/**
|
||||
* A required environment / configuration value is missing or malformed (STARTUP_VALIDATION_FAILED,
|
||||
* exit 78 — sysexits {@code EX_CONFIG}). Phase: env-validation.
|
||||
*/
|
||||
public class StartupValidationException extends StartupFailureException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public StartupValidationException(String message) {
|
||||
this(message, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Carries the underlying failure alongside the message.
|
||||
*
|
||||
* <p>Some configuration is only provably wrong by trying it — a datasource URL is valid text
|
||||
* until a connection attempt refuses it. Those checks hold a {@code SQLException} whose message
|
||||
* names the host, the port and the refusal, and dropping it would leave an operator with "could
|
||||
* not open a connection" and nothing to act on.
|
||||
*
|
||||
* @param message the operator-facing detail
|
||||
* @param cause the failure that proved the configuration wrong; may be {@code null}
|
||||
*/
|
||||
public StartupValidationException(String message, Throwable cause) {
|
||||
super(StartupErrorCode.STARTUP_VALIDATION_FAILED, message, cause);
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package dev.caskeleton.bootstrap.security;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupPhase;
|
||||
import dev.caskeleton.bootstrap.runtime.startup.StartupValidationContext;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupPhase;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.StartupValidationContext;
|
||||
import org.springframework.beans.factory.ListableBeanFactory;
|
||||
import org.springframework.beans.factory.SmartInitializingSingleton;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package dev.caskeleton.bootstrap.settings;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.RuntimeWarnings;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.RuntimeWarnings;
|
||||
import java.time.ZoneId;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package dev.caskeleton.bootstrap.settings;
|
||||
|
||||
import dev.caskeleton.bootstrap.runtime.RuntimeWarnings;
|
||||
import dev.caskeleton.adapter.outbound.support.startup.RuntimeWarnings;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
|
||||
+3
-4
@@ -1,14 +1,13 @@
|
||||
package dev.caskeleton.bootstrap.settings;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.bind.DefaultValue;
|
||||
|
||||
/**
|
||||
* Operational runtime settings bound from {@code ca-skeleton.runtime.*}.
|
||||
*
|
||||
* <p>Only implemented controls belong here. Internal error-detail exposure and HTTP body logging
|
||||
* have no runtime implementation and therefore no reserved configuration switch.
|
||||
* have no runtime implementation and therefore no reserved configuration switch. {@code
|
||||
* migration-on-startup} is read by the JPA module that runs the migration, not here.
|
||||
*/
|
||||
@ConfigurationProperties(prefix = "ca-skeleton.runtime")
|
||||
public record RuntimeSafetySettings(
|
||||
boolean multiInstanceEnabled, @DefaultValue("true") boolean migrationOnStartup) {}
|
||||
public record RuntimeSafetySettings(boolean multiInstanceEnabled) {}
|
||||
|
||||
@@ -1,17 +1,10 @@
|
||||
org.springframework.boot.EnvironmentPostProcessor=\
|
||||
dev.caskeleton.bootstrap.activation.MasterSwitchEnvironmentPostProcessor,\
|
||||
dev.caskeleton.bootstrap.activation.RuntimeEnvironmentProfileValidator,\
|
||||
dev.caskeleton.bootstrap.activation.CapabilityDependencyEnvironmentValidator,\
|
||||
dev.caskeleton.bootstrap.autoconfigure.tracing.TracingSamplingEnvironmentPostProcessor,\
|
||||
dev.caskeleton.bootstrap.autoconfigure.redis.RedisReadinessGroupPostProcessor,\
|
||||
dev.caskeleton.bootstrap.autoconfigure.jpa.DatabaseReadinessGroupPostProcessor
|
||||
dev.caskeleton.bootstrap.runtime.RuntimeEnvironmentProfileValidator,\
|
||||
dev.caskeleton.bootstrap.autoconfigure.tracing.TracingSamplingEnvironmentPostProcessor
|
||||
|
||||
org.springframework.boot.SpringBootExceptionReporter=\
|
||||
dev.caskeleton.bootstrap.runtime.startup.StartupFailureExceptionReporter
|
||||
|
||||
org.springframework.boot.autoconfigure.AutoConfigurationImportFilter=\
|
||||
dev.caskeleton.bootstrap.autoconfigure.jpa.JpaOffAutoConfigurationImportFilter
|
||||
|
||||
# Corrects the structured log's profile field once the environment has resolved. An
|
||||
# ApplicationListener, not a bean: this event fires before there is a context to hold one.
|
||||
org.springframework.context.ApplicationListener=\
|
||||
|
||||
-5
@@ -1,9 +1,4 @@
|
||||
dev.caskeleton.bootstrap.autoconfigure.common.BootstrapClockAutoConfiguration
|
||||
dev.caskeleton.bootstrap.autoconfigure.jpa.PersistenceJpaRootAutoConfiguration
|
||||
dev.caskeleton.bootstrap.autoconfigure.messaging.DisabledMessagingSentinelAutoConfiguration
|
||||
dev.caskeleton.bootstrap.activation.AdapterActivationAutoConfiguration
|
||||
dev.caskeleton.bootstrap.autoconfigure.notification.NotificationApplicationCompositionAutoConfiguration
|
||||
dev.caskeleton.bootstrap.autoconfigure.outbox.OutboxConfig
|
||||
dev.caskeleton.bootstrap.autoconfigure.lock.DistributedLockConfig
|
||||
dev.caskeleton.bootstrap.autoconfigure.idempotency.IdempotencyProviderSelectionConfig
|
||||
dev.caskeleton.bootstrap.autoconfigure.tracing.TracingConfig
|
||||
|
||||
@@ -167,8 +167,6 @@ ca-skeleton:
|
||||
# keeps the local pseudonymization stable across runs and keeps the warning for deployments
|
||||
# that really did forget to supply one.
|
||||
pseudonymization-salt: __LOCAL_DEV_pseudonymization_salt
|
||||
idempotency:
|
||||
ttl: 24h
|
||||
security:
|
||||
# Placeholders for the reason above: the two blocks must agree, and a literal in either one is
|
||||
# a value a deployment cannot correct.
|
||||
@@ -203,16 +201,3 @@ ca-skeleton:
|
||||
logger-name-length: 0
|
||||
# Keep every log line locally; prod samples <=INFO down to 10%.
|
||||
sampling-rate: 1.0
|
||||
|
||||
app:
|
||||
messaging:
|
||||
# Blank selects no transport, which is right for a default local run — but as a literal it also
|
||||
# outranked every environment a caller supplied, so a lane that started Kafka and set
|
||||
# APP_MESSAGING_BROKER was refused by the dependency validator for a value it had actually
|
||||
# provided. The switch decides whether there is a broker; this decides which one.
|
||||
broker: ${APP_MESSAGING_BROKER:}
|
||||
notification:
|
||||
slack-webhook:
|
||||
enabled: ${APP_NOTIFICATION_SLACK_WEBHOOK_ENABLED:false}
|
||||
google-email:
|
||||
enabled: ${APP_NOTIFICATION_GOOGLE_EMAIL_ENABLED:false}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# JpaSchemaSafetyValidator ddl-auto must be none|validate (exit 71)
|
||||
# FlywayProdSafetyValidator baseline-on-migrate / out-of-order / clean stay disarmed
|
||||
# StartupSafetyValidator error-detail exposure and body-capture logging stay off
|
||||
# ErrorDetailExposureSafetyValidator spring.web.error.include-* stay never/false (exit 71)
|
||||
# PostgreSqlTransportSecurityValidator pgJDBC sslmode=verify-full
|
||||
# PersistenceVendorProdSafetyValidator neither the vendor selector nor the URL may be H2
|
||||
#
|
||||
|
||||
@@ -35,141 +35,6 @@ spring:
|
||||
# with a message about a missing value, and what an operator needs to read is
|
||||
# RuntimeEnvironmentProfileValidator saying which three profiles are permitted.
|
||||
active: ${SPRING_PROFILES_ACTIVE:}
|
||||
datasource:
|
||||
# jdbc URL: jdbc:postgresql://host:5432/db
|
||||
url: ${APP_DATASOURCE_URL}
|
||||
username: ${APP_DATASOURCE_USERNAME}
|
||||
password: ${APP_DATASOURCE_PASSWORD}
|
||||
driver-class-name: ${APP_DATASOURCE_DRIVER:org.postgresql.Driver}
|
||||
hikari:
|
||||
# D1 (feature-database-connection-pool-contract): small-pool axiom + PostgreSQL formula
|
||||
# starting point (maximumPoolSize = cores * 2 + effective_spindle_count, adjust via load
|
||||
# test). Fixed-size pool recommended (minimumIdle = maximumPoolSize). Must satisfy
|
||||
# application-port D12 REQUIRES_NEW lower bound:
|
||||
# maxPoolSize >= concurrent_threads * (1 + max_inNew_depth) + 1
|
||||
# Value owner: feature-env-driven-runtime-configuration (APP_DATASOURCE_POOL_MAX_SIZE).
|
||||
# integer >= 1
|
||||
maximum-pool-size: ${APP_DATASOURCE_POOL_MAX_SIZE:10}
|
||||
# D1: fixed-size pool recommended (minimumIdle = maximumPoolSize per HikariCP #HIKARI-CFG-C8).
|
||||
# Current registry value min-idle=2 is a MIN_IDLE_POLICY_DRIFT vs the fixed-size
|
||||
# recommendation; value alignment is delegated to feature-env-driven-runtime-configuration.
|
||||
# integer >= 0
|
||||
minimum-idle: ${APP_DATASOURCE_POOL_MIN_IDLE:2}
|
||||
# D2 (HIKARI-CFG-C1): fail-fast pin — reject pool-starved threads quickly rather than
|
||||
# holding them for 30 s (HikariCP default). Must be >= 250 ms (enforced at startup by
|
||||
# HikariPoolConstraintValidator). Typical synchronous HTTP path value: a few seconds.
|
||||
# PLAIN MILLISECONDS ONLY. This key binds onto HikariConfig#setConnectionTimeout, which takes
|
||||
# a long, so the binder rejects "5s" outright: `failed to convert java.lang.String to long`.
|
||||
# It shipped as "5s" and every prod and dev deployment failed to start on it, while local
|
||||
# passed because application-local.yml overrides the value — so only a prod lane could find
|
||||
# it. HikariPoolConstraintValidator reads this key with DurationStyle and therefore accepts
|
||||
# "5s" happily; that tolerance is what made the wrong default look supported, and it is
|
||||
# recorded as an open Section A finding rather than quietly changed here.
|
||||
connection-timeout: ${APP_DATASOURCE_CONNECTION_TIMEOUT:5000}
|
||||
# milliseconds
|
||||
idle-timeout: ${APP_DATASOURCE_POOL_IDLE_TIMEOUT:600000}
|
||||
# D3 (HIKARI-CFG-C2): must be several seconds shorter than the DB/infrastructure idle
|
||||
# timeout (DB wait_timeout, PgBouncer idle_transaction_timeout, firewall NAT timeout).
|
||||
# Current default (30 min) is a placeholder until the actual DB wait_timeout is confirmed
|
||||
# (see §Claims "DB wait_timeout 미확인" — needs-confirmation). Recommended: DB_idle_limit
|
||||
# minus at least 60 s as a conservative margin. Value owner: feature-env-driven.
|
||||
# milliseconds
|
||||
max-lifetime: ${APP_DATASOURCE_POOL_MAX_LIFETIME:1800000}
|
||||
# D4 (HIKARI-CFG-C4): greenfield — ping idle connections to prevent NAT/firewall/DB
|
||||
# idle-kill from silently dropping them. Constraint: keepalive-time < max-lifetime
|
||||
# (enforced by HikariPoolConstraintValidator). Provisional literal 120 000 ms (2 min);
|
||||
# adjust once actual DB/firewall idle timeout is confirmed (§Claims).
|
||||
# UNSUPPORTED_IMPL_DECISION: literal value is a provisional policy default.
|
||||
# New env key APP_DATASOURCE_KEEPALIVE_TIME registration delegated to
|
||||
# feature-env-driven-runtime-configuration.
|
||||
keepalive-time: 120000
|
||||
# D5 (HIKARI-CFG-C5): greenfield — enable connection leak early warning. Value must be
|
||||
# >= 2000 ms to activate (enforced by HikariPoolConstraintValidator; 0 = disabled).
|
||||
# Provisional literal 30 000 ms (30 s) — chosen well above the estimated longest normal
|
||||
# transaction (~5 s) to avoid false positives on legitimate slow operations.
|
||||
# UNSUPPORTED_IMPL_DECISION: literal value is a provisional policy default.
|
||||
# New env key APP_DATASOURCE_LEAK_DETECTION_THRESHOLD delegated to
|
||||
# feature-env-driven-runtime-configuration.
|
||||
leak-detection-threshold: 30000
|
||||
# D7 (HIKARI-CFG-C6): greenfield — must be < connection-timeout (HIKARI-CFG-C6),
|
||||
# enforced by HikariPoolConstraintValidator. Resolves VALIDATION_TIMEOUT_CONFLICT:
|
||||
# HikariCP default 5000 ms equals connection-timeout 5 s / 5000 ms → constraint
|
||||
# violation. Provisional literal 3000 ms satisfies the constraint for connection-timeout
|
||||
# values >= 3001 ms.
|
||||
# UNSUPPORTED_IMPL_DECISION: literal value is a provisional policy default.
|
||||
# New env key APP_DATASOURCE_VALIDATION_TIMEOUT delegated to
|
||||
# feature-env-driven-runtime-configuration.
|
||||
validation-timeout: 3000
|
||||
# D6 (HIKARI-CFG-C7): greenfield — keep positive (default = 1 ms) to fail fast when DB
|
||||
# is unavailable at startup. Aligns with runtime-health startup validation and project-note
|
||||
# §9 "잘못된 env 값 startup fail-fast" policy. Negative value disables fail-fast (allowed
|
||||
# only in orchestration environments where DB may start after the app — coordinate with
|
||||
# runtime-health-lifecycle branch).
|
||||
# UNSUPPORTED_IMPL_DECISION: literal value is a provisional policy default.
|
||||
# New env key APP_DATASOURCE_INIT_FAIL_TIMEOUT delegated to
|
||||
# feature-env-driven-runtime-configuration.
|
||||
initialization-fail-timeout: 1
|
||||
# ---------------------------------------------------------------------------
|
||||
# D8 (feature-database-connection-pool-contract) — SLOW QUERY DETECTION
|
||||
# POLICY ONLY — no library dependency added here. Implementation is DEFERRED
|
||||
# pending local verification (TODO #3: confirm ParameterTransformer masking
|
||||
# applies to slow-query listener output).
|
||||
#
|
||||
# Baseline (app layer, param-safe):
|
||||
# datasource-proxy SlowQueryListener + ParameterTransformer ([REDACTED] masking).
|
||||
# Requires the datasource-proxy / spring-boot-data-source-decorator dependency
|
||||
# and a @Bean ParameterTransformer; deferred until masking behavior on slow-query
|
||||
# output is locally verified.
|
||||
#
|
||||
# Production augment (DBA-owned):
|
||||
# DB-side log_min_duration_statement — parameters included in extended-protocol
|
||||
# output (PostgreSQL official security warning). DBA controls and redacts.
|
||||
#
|
||||
# Dev only (PROD-FORBIDDEN):
|
||||
# Hibernate SQL_SLOW (LOG_QUERIES_SLOWER_THAN_MS) logs materialized SQL with
|
||||
# substituted parameters — violates the "SQL/param 로그 금지" hard rule from
|
||||
# feature-persistence-failure-baseline. NEVER enable in prod.
|
||||
#
|
||||
# Rejected:
|
||||
# P6Spy — no built-in masking API; effective SQL exposes parameters by default
|
||||
# with no safe override. Rejected per D8 (#C3/#C4).
|
||||
# ---------------------------------------------------------------------------
|
||||
# ---------------------------------------------------------------------------
|
||||
# Flyway forward-only migration (feature-migration-startup-contract D1/D2/D4).
|
||||
# Flyway runs during context refresh (Spring Boot autoconfig + the
|
||||
# migrationStartupRunner FlywayMigrationStrategy), BEFORE the app reports
|
||||
# readiness — so migration is inherently readiness-gated (D5): a failed or
|
||||
# in-progress migration can never serve traffic.
|
||||
#
|
||||
# The three options below are PINNED, not env-driven: they are forbidden under
|
||||
# prod (D2/D4) and a static pin means a future Flyway/Spring Boot default flip
|
||||
# cannot silently re-enable them (same reasoning as spring.mvc.problemdetails.
|
||||
# enabled above). FlywayProdSafetyValidator fails the boot (exit 71) if any
|
||||
# per-environment override re-enables them under the prod profile.
|
||||
# ---------------------------------------------------------------------------
|
||||
flyway:
|
||||
# false: never auto-baseline an existing schema — keep the missing-migration
|
||||
# safety net (FLYWAY-C6). Enabling under prod is forbidden (D4).
|
||||
baseline-on-migrate: false
|
||||
# false: reject out-of-order migrations — preserve cross-developer ordering
|
||||
# consistency (FLYWAY-C5). Enabling under prod is forbidden (D4).
|
||||
out-of-order: false
|
||||
# true: keep Flyway `clean` (drops the whole schema) disarmed. Disabling this
|
||||
# under prod is forbidden — clean is destructive.
|
||||
clean-disabled: true
|
||||
jpa:
|
||||
hibernate:
|
||||
# none | validate | update | create | create-drop
|
||||
# prod accepts only none|validate; JpaSchemaSafetyValidator rejects schema-writing modes.
|
||||
ddl-auto: ${APP_DATASOURCE_DDL_AUTO:validate}
|
||||
# true | false
|
||||
show-sql: ${APP_DATASOURCE_SHOW_SQL:false}
|
||||
# true | false (don't enable in prod)
|
||||
open-in-view: ${APP_DATASOURCE_OPEN_IN_VIEW:false}
|
||||
properties:
|
||||
hibernate:
|
||||
# true | false (paired with show-sql)
|
||||
format_sql: ${APP_DATASOURCE_FORMAT_SQL:false}
|
||||
security:
|
||||
oauth2:
|
||||
resourceserver:
|
||||
@@ -190,19 +55,9 @@ spring:
|
||||
virtual:
|
||||
# true | false (Java 21 virtual threads for Tomcat request handlers)
|
||||
enabled: ${SPRING_THREADS_VIRTUAL_ENABLED:true}
|
||||
servlet:
|
||||
multipart:
|
||||
# feature-api-contract-baseline D8: bound request body size so an oversized
|
||||
# upload classifies as 413 PAYLOAD_TOO_LARGE inside the envelope (via
|
||||
# GlobalExceptionHandler#handleMaxUploadSizeExceededException), never a raw 500.
|
||||
# Multipart-specific upload limits (UPLOAD_SIZE_EXCEEDED) are refined by
|
||||
# feature-file-resource-handling-contract.
|
||||
# Same placeholders as app.fileserver-platform.upload.*, deliberately. Two independent
|
||||
# ceilings meant the servlet container rejected at 10MB whatever the Fileserver policy said,
|
||||
# so a 100MB upload failed before any Fileserver code — including its error mapping — ran,
|
||||
# and the configured limit described a policy nobody could reach.
|
||||
max-file-size: ${APP_FILESERVER_PLATFORM_UPLOAD_MAX_FILE_SIZE:100MB}
|
||||
max-request-size: ${APP_FILESERVER_PLATFORM_UPLOAD_MAX_REQUEST_SIZE:110MB}
|
||||
# spring.servlet.multipart: Spring's bounded defaults apply (an oversized upload is still a 413
|
||||
# inside the envelope via GlobalExceptionHandler). The Fileserver capability ships its own ceiling
|
||||
# in its module settings, tied to app.fileserver-platform.upload.*, when a service selects it.
|
||||
# Jackson deserialization policy and the single runtime JsonMapper SSOT (feature-boundary-validation-mapping-contract B1).
|
||||
# Every request DTO crosses this boundary; the switches make malformed payloads
|
||||
# fail at the edge rather than silently coercing or dropping fields.
|
||||
@@ -233,16 +88,6 @@ spring:
|
||||
import:
|
||||
- classpath:config/server.yml
|
||||
- classpath:config/observability.yml
|
||||
- classpath:config/persistence.yml
|
||||
- classpath:config/capabilities.yml
|
||||
- classpath:config/runtime.yml
|
||||
- classpath:config/notification.yml
|
||||
- classpath:config/idempotency.yml
|
||||
- classpath:config/outbox.yml
|
||||
- classpath:config/security.yml
|
||||
- classpath:config/redis.yml
|
||||
- classpath:config/fileserver.yml
|
||||
- classpath:config/httpclient.yml
|
||||
- classpath:config/ratelimit.yml
|
||||
- classpath:config/messaging.yml
|
||||
- classpath:config/graphql.yml
|
||||
|
||||
@@ -1,75 +1,18 @@
|
||||
# 능력별 제공자 선택(cache/rate-limit/lease/idempotency).
|
||||
# 멱등성 제공자 선택과 수명 정책. Redis 역할(cache/rate-limit/lease)과 Redis 저장소 튜닝은
|
||||
# cache-redis 모듈이 config/module-defaults/cache-redis.yml 로 가져온다.
|
||||
#
|
||||
# application.yml 이 spring.config.import 로 취합한다. 이 파일의 값은 application.yml 보다
|
||||
# 낮고 application-{profile}.yml 보다도 낮으므로, 배포별 오버라이드는 그대로 우선한다.
|
||||
ca-skeleton:
|
||||
capabilities:
|
||||
# Every capability below renders its keys under one namespace — app.redis.namespace, which is
|
||||
# {environment}:{service}:{domain}. The per-capability namespace-application /
|
||||
# namespace-environment pairs that used to live here are gone: four capabilities each joining
|
||||
# two free-form tokens in their own order produced four different key prefixes, and the ACL
|
||||
# pattern meant to fence the deployment in matched none of them.
|
||||
cache:
|
||||
# Canonical semantic cache activation. Disabled by default; "redis" composes
|
||||
# RedisCacheRegionAdapter for the region named below and resolves HMAC material by reference.
|
||||
bindings:
|
||||
default: ${APP_CACHE_CANONICAL_DEFAULT_PROVIDER:disabled}
|
||||
semantic-region: ${APP_CACHE_REDIS_SEMANTIC_REGION:default}
|
||||
key-version: 1
|
||||
key-hmac-secret-reference: secret://environment/APP_CACHE_REDIS_KEY_HMAC_SECRET
|
||||
command-timeout: ${APP_CACHE_REDIS_COMMAND_TIMEOUT:200ms}
|
||||
positive-soft-ttl: ${APP_CACHE_REDIS_POSITIVE_SOFT_TTL:30s}
|
||||
positive-hard-ttl: ${APP_CACHE_REDIS_POSITIVE_HARD_TTL:5m}
|
||||
negative-ttl: ${APP_CACHE_REDIS_NEGATIVE_TTL:10s}
|
||||
# Floor on the hard TTL. Below it, entries expire faster than the round trip that wrote them:
|
||||
# every read misses and every miss writes.
|
||||
minimum-hard-ttl: ${APP_CACHE_REDIS_MINIMUM_HARD_TTL:1s}
|
||||
idempotency:
|
||||
# disabled | jdbc | redis | postgresql. JDBC is the existing V1 provider; Redis and
|
||||
# PostgreSQL are owner-safe V2 providers. They are mutually exclusive.
|
||||
# disabled | redis | postgresql. Exactly one store; the executor is built once over it from
|
||||
# the lifecycle keys below, whichever provider is selected.
|
||||
provider: ${APP_IDEMPOTENCY_PROVIDER:disabled}
|
||||
key-version: 1
|
||||
command-timeout: ${APP_IDEMPOTENCY_REDIS_COMMAND_TIMEOUT:200ms}
|
||||
# Lifecycle policy (IdempotencySettings), the same whichever provider holds the records.
|
||||
processing-lease: ${APP_IDEMPOTENCY_PROCESSING_LEASE:30s}
|
||||
replay-ttl: ${APP_IDEMPOTENCY_TTL:24h}
|
||||
failure-retention: ${APP_IDEMPOTENCY_FAILURE_RETENTION:24h}
|
||||
# Redis V2 codec identity. PostgreSQL V2 currently owns its json.v1 codec in its provider
|
||||
# composition and does not consume this Redis-specific setting.
|
||||
response-codec-id: json-v2
|
||||
# Numeric: the owner-safe claim writes this into the record and compares it there.
|
||||
policy-revision: 2
|
||||
lease:
|
||||
# disabled | redis. This is EFFICIENCY_ONLY and never supplies fencing.
|
||||
provider: ${APP_LEASE_PROVIDER:disabled}
|
||||
key-version: 1
|
||||
command-timeout: ${APP_LEASE_REDIS_COMMAND_TIMEOUT:200ms}
|
||||
contention-retry-after: ${APP_LEASE_REDIS_CONTENTION_RETRY_AFTER:50ms}
|
||||
# How much shorter than the server's TTL this holder considers its lease valid. The two
|
||||
# clocks are not the same clock, and a holder that measured the full TTL locally would still
|
||||
# believe it held a lease the server had already handed to somebody else.
|
||||
drift-budget: ${APP_LEASE_REDIS_DRIFT_BUDGET:10ms}
|
||||
rate-limit:
|
||||
# disabled | redis. This is the sole outbound provider activation selector.
|
||||
provider: ${APP_RATE_LIMIT_PROVIDER:disabled}
|
||||
failure-policy: ${APP_RATE_LIMIT_FAILURE_POLICY:fail-closed}
|
||||
default-policy-id: ${APP_RATE_LIMIT_DEFAULT_POLICY_ID:api-default}
|
||||
failure-retry-after: ${APP_RATE_LIMIT_FAILURE_RETRY_AFTER:100ms}
|
||||
key-version: ${APP_RATE_LIMIT_KEY_VERSION:1}
|
||||
command-timeout: ${APP_RATE_LIMIT_REDIS_COMMAND_TIMEOUT:200ms}
|
||||
policies:
|
||||
api-default:
|
||||
revision: ${APP_RATE_LIMIT_POLICY_REVISION:v1}
|
||||
algorithm: ${APP_RATE_LIMIT_ALGORITHM:sliding-counter}
|
||||
limit: ${APP_RATE_LIMIT_LIMIT:100}
|
||||
window: ${APP_RATE_LIMIT_WINDOW:1s}
|
||||
capacity: ${APP_RATE_LIMIT_CAPACITY:100}
|
||||
refill-tokens: ${APP_RATE_LIMIT_REFILL_TOKENS:100}
|
||||
refill-period: ${APP_RATE_LIMIT_REFILL_PERIOD:1s}
|
||||
maximum-cost: ${APP_RATE_LIMIT_MAXIMUM_COST:10}
|
||||
cleanup-grace: ${APP_RATE_LIMIT_CLEANUP_GRACE:5s}
|
||||
realtime:
|
||||
replay:
|
||||
# PostgreSQL-backed retained event history. Disabled unless a composition actually publishes
|
||||
# events into the store and exposes replay/resume semantics.
|
||||
enabled: ${APP_REALTIME_REPLAY_ENABLED:false}
|
||||
retention: ${APP_REALTIME_REPLAY_RETENTION:1h}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user