문제: 앞 커밋이 Gradle 루트를 저장소 루트로 옮기고 계층 폴더를 묶었다.
빌드 스크립트·build-logic·시험·workflow·스크립트·문서가 아직 옛 배치
(Gradle 루트 = src/)를 가정해 빌드가 되지 않는다.
고른 방법:
- Gradle 경로와 registry id는 그대로 둔다(:app-bootstrap, :application-core,
:composition:*). registry의 source_path만 새 폴더를 가리킨다. 폴더에 맞춘
이름(:domain:core, :application:core)은 프로젝트 이름 core가 둘이 되어
boot jar의 BOOT-INF/lib와 기본 capability가 겹치고, 파생 서비스의 모든
project(':…') 줄을 바꾸게 한다.
- registry는 gradle/modules.json, 시험 이미지 목록은
gradle/container-images.properties: 버전 카탈로그 옆, 빌드가 고정하는 것.
config/는 코드 검사 도구 설정만 둔다.
- build-logic: settings·architecture 플러그인의 저장소 루트를 Gradle 루트로
(getParentFile 제거). config contract의 파일 트리는 src/만 훑는다(루트를
훑으면 docs·.claude/worktrees까지 줍는다).
- 빌드 스크립트: rootProject.projectDir.parentFile → rootProject.projectDir,
rootProject.file('../…') → rootProject.file('…'), 옛 src 기준 include에
src/를 붙인다. notification API surface의 application-notification 소스
루트를 새 폴더로(놓치면 272개 타입이 surface에서 말없이 빠진다).
- 시험: 옛 src 기준 모듈 목록과 ../ 개수를 고친다. 없는 폴더를 말없이
건너뛰던 목록(MessagingAuthority, NotificationPayloadAtRest 등)을 새
폴더로, FileserverDocumentationCoverageTest는 Gradle 경로 → 폴더를
registry로 찾는다. Docker 계약은 WORKDIR /build, 새 jar 경로.
- Docker: 빌드 context를 저장소 루트로, .dockerignore는 허용 목록으로 다시
써서 전에 context였던 것만 들어가게 한다. compose의 build.context는 .,
env_file은 ./.env.
- workflow: working-directory: src 기본값과 그것을 되돌리던 줄을 지운다.
- scripts: verify.sh, ci/*, bootstrap-local, new-feature,
verify-feature-scaffold, mongo 검증, hooks, check-repo-layout 허용 목록.
check-docs의 경로 검사는 build-logic/·gradle/로 시작하는 경로도 본다.
- 문서: AGENTS.md 지도, README 구조 표, leaf AGENTS.md의 cd src, gates·
operate·결정 색인, src/bootstrap/AGENTS.md를 조립 계층 family 규칙으로
다시 쓴다. 기록 문서(docs/design·history·reviews, 지난 upgrade 안내,
capability-status 제거 표)는 머리 블록만 고친다. 파생 서비스용 안내
docs/upgrade/2026-11-relayout.md를 더한다.
위험: bootRun working dir가 저장소 루트가 되어 .env와 상대 경로 설정이
루트 기준이다. 루트 .env는 compose 보간에도 읽힌다(upgrade 안내 5절).
파생 서비스는 태그 pre-relayout-2026-11까지 받은 뒤 이 묶음을 받는다.
검증: desktop에서 캐시 없이 scripts/verify.sh docs·pr·main·release,
compose smoke 18 lane, 빠른 시작(scripts/verify.sh app). 결과는 PR 본문.
구조 리뷰(arch-reviewer) 지적 5건을 반영했다.
BREAKING CHANGE: Gradle은 저장소 루트에서 돈다(cd src 없음). registry는
gradle/modules.json, 이미지 빌드 context는 저장소 루트다. 옛 경로 → 새 경로
표는 docs/upgrade/2026-11-relayout.md.
Refs: design-docs repo-structure/01-backend-layout.md 6.1절 가-2·가-3
397 lines
12 KiB
JSON
397 lines
12 KiB
JSON
{
|
|
"library_groups": [
|
|
"dev.cakit"
|
|
],
|
|
"modules": [
|
|
{
|
|
"id": "domain-core",
|
|
"gradle_path": ":domain-core",
|
|
"source_path": "src/domain/core",
|
|
"allowed_dependencies": []
|
|
},
|
|
{
|
|
"id": "shared-contract",
|
|
"gradle_path": ":shared-contract",
|
|
"source_path": "src/shared-contract",
|
|
"allowed_dependencies": []
|
|
},
|
|
{
|
|
"id": "application-core",
|
|
"gradle_path": ":application-core",
|
|
"source_path": "src/application/core",
|
|
"allowed_dependencies": [
|
|
"domain-core",
|
|
"shared-contract"
|
|
]
|
|
},
|
|
{
|
|
"id": "application-notification",
|
|
"gradle_path": ":application-notification",
|
|
"source_path": "src/application/notification",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"shared-contract"
|
|
]
|
|
},
|
|
{
|
|
"id": "application-fileserver",
|
|
"gradle_path": ":application-fileserver",
|
|
"source_path": "src/application/fileserver",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"shared-contract"
|
|
]
|
|
},
|
|
{
|
|
"id": "application-objectstorage",
|
|
"gradle_path": ":application-objectstorage",
|
|
"source_path": "src/application/objectstorage",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"shared-contract"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-outbound-support",
|
|
"gradle_path": ":adapter:outbound:support",
|
|
"source_path": "src/adapter/outbound/support",
|
|
"allowed_dependencies": [
|
|
"domain-core",
|
|
"application-core",
|
|
"shared-contract"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-outbound-persistence-jpa",
|
|
"gradle_path": ":adapter:outbound:persistence-jpa",
|
|
"source_path": "src/adapter/outbound/persistence-jpa",
|
|
"allowed_dependencies": [
|
|
"domain-core",
|
|
"application-core",
|
|
"shared-contract",
|
|
"adapter-outbound-support"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-outbound-persistence-fileserver",
|
|
"gradle_path": ":adapter:outbound:persistence-fileserver",
|
|
"source_path": "src/adapter/outbound/persistence-fileserver",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"application-fileserver",
|
|
"adapter-outbound-persistence-jpa"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-outbound-persistence-notification",
|
|
"gradle_path": ":adapter:outbound:persistence-notification",
|
|
"source_path": "src/adapter/outbound/persistence-notification",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"application-notification",
|
|
"adapter-outbound-persistence-jpa"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-outbound-persistence-mongo",
|
|
"gradle_path": ":adapter:outbound:persistence-mongo",
|
|
"source_path": "src/adapter/outbound/persistence-mongo",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"shared-contract"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-outbound-identifier",
|
|
"gradle_path": ":adapter:outbound:identifier",
|
|
"source_path": "src/adapter/outbound/identifier",
|
|
"allowed_dependencies": [
|
|
"domain-core",
|
|
"application-core",
|
|
"shared-contract"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-outbound-fileserver",
|
|
"gradle_path": ":adapter:outbound:fileserver",
|
|
"source_path": "src/adapter/outbound/fileserver",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"shared-contract",
|
|
"application-fileserver",
|
|
"adapter-outbound-support"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-outbound-objectstorage",
|
|
"gradle_path": ":adapter:outbound:objectstorage",
|
|
"source_path": "src/adapter/outbound/objectstorage",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"shared-contract",
|
|
"application-objectstorage",
|
|
"adapter-outbound-support"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-outbound-redis-runtime",
|
|
"gradle_path": ":adapter:outbound:redis-runtime",
|
|
"source_path": "src/adapter/outbound/redis-runtime",
|
|
"allowed_dependencies": []
|
|
},
|
|
{
|
|
"id": "adapter-outbound-redis-sdk",
|
|
"gradle_path": ":adapter:outbound:redis-sdk",
|
|
"source_path": "src/adapter/outbound/redis-sdk",
|
|
"allowed_dependencies": [
|
|
"adapter-outbound-redis-runtime",
|
|
"shared-contract"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-outbound-cache-redis",
|
|
"gradle_path": ":adapter:outbound:cache-redis",
|
|
"source_path": "src/adapter/outbound/cache-redis",
|
|
"allowed_dependencies": [
|
|
"domain-core",
|
|
"application-core",
|
|
"shared-contract",
|
|
"adapter-outbound-support",
|
|
"adapter-outbound-redis-runtime"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-outbound-httpclient",
|
|
"gradle_path": ":adapter:outbound:httpclient",
|
|
"source_path": "src/adapter/outbound/httpclient",
|
|
"allowed_dependencies": [
|
|
"domain-core",
|
|
"application-core",
|
|
"shared-contract",
|
|
"adapter-outbound-support"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-inbound-messaging",
|
|
"gradle_path": ":adapter:inbound:messaging",
|
|
"source_path": "src/adapter/inbound/messaging",
|
|
"allowed_dependencies": [
|
|
"application-core"
|
|
],
|
|
"allowed_libraries": [
|
|
"dev.cakit.messaging:messaging-core-api",
|
|
"dev.cakit.messaging:messaging-reliability",
|
|
"dev.cakit.messaging:messaging-reliability-api",
|
|
"dev.cakit.messaging:messaging-reliability-jdbc-postgresql"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-outbound-messaging",
|
|
"gradle_path": ":adapter:outbound:messaging",
|
|
"source_path": "src/adapter/outbound/messaging",
|
|
"allowed_dependencies": [
|
|
"domain-core",
|
|
"application-core",
|
|
"shared-contract",
|
|
"adapter-outbound-support"
|
|
],
|
|
"allowed_libraries": [
|
|
"dev.cakit.messaging:messaging-core-api"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-outbound-messaging-kafka",
|
|
"gradle_path": ":adapter:outbound:messaging-kafka",
|
|
"source_path": "src/adapter/outbound/messaging-kafka",
|
|
"allowed_dependencies": [
|
|
"adapter-outbound-messaging"
|
|
],
|
|
"allowed_libraries": [
|
|
"dev.cakit.messaging:messaging-spring-boot-starter-kafka"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-outbound-notification",
|
|
"gradle_path": ":adapter:outbound:notification",
|
|
"source_path": "src/adapter/outbound/notification",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"shared-contract",
|
|
"adapter-outbound-support",
|
|
"application-notification"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-inbound-web",
|
|
"gradle_path": ":adapter:inbound:web",
|
|
"source_path": "src/adapter/inbound/web",
|
|
"allowed_dependencies": [
|
|
"domain-core",
|
|
"application-core",
|
|
"shared-contract",
|
|
"adapter-outbound-support"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-inbound-web-notification",
|
|
"gradle_path": ":adapter:inbound:web-notification",
|
|
"source_path": "src/adapter/inbound/web-notification",
|
|
"allowed_dependencies": [
|
|
"adapter-inbound-web",
|
|
"application-core",
|
|
"application-notification",
|
|
"shared-contract"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-inbound-web-fileserver",
|
|
"gradle_path": ":adapter:inbound:web-fileserver",
|
|
"source_path": "src/adapter/inbound/web-fileserver",
|
|
"allowed_dependencies": [
|
|
"adapter-inbound-web",
|
|
"application-core",
|
|
"application-fileserver",
|
|
"shared-contract"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-inbound-web-advanced",
|
|
"gradle_path": ":adapter:inbound:web-advanced",
|
|
"source_path": "src/adapter/inbound/web-advanced",
|
|
"allowed_dependencies": [
|
|
"adapter-inbound-web",
|
|
"application-core",
|
|
"shared-contract"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-inbound-grpc",
|
|
"gradle_path": ":adapter:inbound:grpc",
|
|
"source_path": "src/adapter/inbound/grpc",
|
|
"allowed_dependencies": [
|
|
"domain-core",
|
|
"application-core",
|
|
"shared-contract"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-inbound-graphql",
|
|
"gradle_path": ":adapter:inbound:graphql",
|
|
"source_path": "src/adapter/inbound/graphql",
|
|
"allowed_dependencies": [
|
|
"domain-core",
|
|
"application-core",
|
|
"shared-contract"
|
|
]
|
|
},
|
|
{
|
|
"id": "adapter-inbound-websocket",
|
|
"gradle_path": ":adapter:inbound:websocket",
|
|
"source_path": "src/adapter/inbound/websocket",
|
|
"allowed_dependencies": [
|
|
"domain-core",
|
|
"application-core",
|
|
"shared-contract"
|
|
]
|
|
},
|
|
{
|
|
"id": "composition-fileserver-platform",
|
|
"gradle_path": ":composition:fileserver-platform",
|
|
"source_path": "src/bootstrap/fileserver-platform",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"application-fileserver",
|
|
"shared-contract",
|
|
"adapter-outbound-fileserver",
|
|
"adapter-outbound-support",
|
|
"adapter-outbound-persistence-fileserver",
|
|
"adapter-outbound-persistence-jpa",
|
|
"adapter-inbound-web-fileserver",
|
|
"adapter-inbound-web"
|
|
]
|
|
},
|
|
{
|
|
"id": "composition-notification-platform",
|
|
"gradle_path": ":composition:notification-platform",
|
|
"source_path": "src/bootstrap/notification-platform",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"application-notification",
|
|
"adapter-outbound-notification",
|
|
"adapter-outbound-persistence-notification",
|
|
"adapter-outbound-persistence-jpa",
|
|
"adapter-inbound-web-notification"
|
|
]
|
|
},
|
|
{
|
|
"id": "composition-outbox-relay",
|
|
"gradle_path": ":composition:outbox-relay",
|
|
"source_path": "src/bootstrap/outbox-relay",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"adapter-outbound-support"
|
|
]
|
|
},
|
|
{
|
|
"id": "composition-durable-operation",
|
|
"gradle_path": ":composition:durable-operation",
|
|
"source_path": "src/bootstrap/durable-operation",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"adapter-outbound-support",
|
|
"adapter-inbound-web",
|
|
"adapter-outbound-identifier"
|
|
]
|
|
},
|
|
{
|
|
"id": "composition-idempotency",
|
|
"gradle_path": ":composition:idempotency",
|
|
"source_path": "src/bootstrap/idempotency",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"adapter-outbound-support"
|
|
]
|
|
},
|
|
{
|
|
"id": "composition-service-runtime",
|
|
"gradle_path": ":composition:service-runtime",
|
|
"source_path": "src/bootstrap/service-runtime",
|
|
"allowed_dependencies": [
|
|
"application-core",
|
|
"shared-contract",
|
|
"adapter-outbound-support",
|
|
"adapter-outbound-identifier"
|
|
]
|
|
},
|
|
{
|
|
"id": "app-bootstrap",
|
|
"gradle_path": ":app-bootstrap",
|
|
"source_path": "src/bootstrap/app",
|
|
"allowed_dependencies": [
|
|
"domain-core",
|
|
"application-core",
|
|
"adapter-outbound-support",
|
|
"adapter-outbound-persistence-jpa",
|
|
"adapter-outbound-cache-redis",
|
|
"composition-notification-platform",
|
|
"adapter-outbound-identifier",
|
|
"adapter-inbound-web",
|
|
"shared-contract",
|
|
"adapter-outbound-messaging-kafka",
|
|
"adapter-inbound-messaging",
|
|
"adapter-outbound-persistence-mongo",
|
|
"adapter-inbound-graphql",
|
|
"adapter-outbound-httpclient",
|
|
"adapter-outbound-objectstorage",
|
|
"adapter-inbound-websocket",
|
|
"adapter-inbound-grpc",
|
|
"composition-fileserver-platform",
|
|
"composition-outbox-relay",
|
|
"composition-idempotency",
|
|
"composition-service-runtime",
|
|
"composition-durable-operation"
|
|
]
|
|
}
|
|
]
|
|
}
|