39 lines
1.0 KiB
Markdown
39 lines
1.0 KiB
Markdown
# domain-core — pure domain layer
|
|
|
|
## Registered identity
|
|
|
|
- Module ID: `domain-core`
|
|
- Gradle path: `:domain-core`
|
|
- Focused test (derived from Gradle path): `./gradlew :domain-core:test --console=plain`
|
|
- Runtime baseline: Java 21; repository framework baseline: Spring Boot 4.0.0.
|
|
- Registry SSOT: `src/config/architecture/modules.json`.
|
|
|
|
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
|
|
```
|