init: 클린 아키텍처 백엔드
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# domain-core — pure domain layer
|
||||
|
||||
## Registered identity
|
||||
|
||||
- Module ID: `domain-core`
|
||||
- Gradle path: `:domain-core`
|
||||
- Focused test: `./gradlew :domain-core:test --console=plain`
|
||||
- Runtime baseline: Java 21; repository framework baseline: Spring Boot 4.0.0.
|
||||
- Registry SSOT: `.harness/project/modules.yaml`.
|
||||
|
||||
Package root: `dev.caskeleton.domain`.
|
||||
|
||||
코드 주석에서 덜어낸 **설계 결정의 근거**는 [README.md](README.md) 가 모아둔다 (이 문서는 모듈 규칙 SSOT).
|
||||
|
||||
## Responsibility
|
||||
|
||||
- Business concepts, entities, value objects, enums, domain events, domain services.
|
||||
- Repository ports where this reference implementation still keeps domain-owned persistence contracts.
|
||||
- Domain invariants and core rules.
|
||||
|
||||
## Allowed
|
||||
|
||||
- Java standard library.
|
||||
- Value-only shared operational types only if truly needed.
|
||||
|
||||
## Forbidden
|
||||
|
||||
- Spring annotations.
|
||||
- JPA annotations.
|
||||
- Servlet/HTTP types.
|
||||
- Adapter, application, bootstrap, or presentation DTO dependencies.
|
||||
|
||||
## Test
|
||||
|
||||
```bash
|
||||
cd src
|
||||
./gradlew :domain-core:test
|
||||
```
|
||||
Reference in New Issue
Block a user