260806_01_ENH: Agent Harness 연동 및 KriCommon 버전 고정

This commit is contained in:
2026-08-06 17:03:20 +09:00
parent 951801eb9c
commit 9ea7944414
17 changed files with 605 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ KRI 표준 Spring Boot 프로젝트 생성 CLI입니다.
- Java 17
- Spring Boot 3.5.7
- Gradle Groovy DSL / Gradle Wrapper 8.14.3
- `com.kri.common:starter:latest.release`
- `com.kri.common:starter:beta.1.6.3`
- JPA + QueryDSL + JdbcTemplate 벌크 처리 예제
- EmbeddedId 복합키 예제
- MyBatis 선택 설치
@@ -47,6 +47,9 @@ npx @kri/create-spring-app sample-server
```text
--base-package <package> 기본 패키지
--description <text> 프로젝트 설명
--project-type <type> requested-project|internal-service|shared-service
--agent-project-id <id> 하네스 프로젝트 ID (기본: 프로젝트명 slug)
--harness-root <path> 중앙 Agent Harness 저장소 경로
--port <number> 서버 포트 (기본 8080)
--database mysql|mssql DB 종류 (기본 mysql)
--mybatis MyBatis 예제 포함
@@ -59,11 +62,26 @@ npx @kri/create-spring-app sample-server
--target-dir <path> 생성 경로
--yes, -y 질문 없이 기본값 사용
--skip-build Gradle build 생략
--skip-agent-compose 하네스 자동 등록·합성·검증 생략
--no-jenkins Jenkinsfile 생성 안 함
--force 비어 있지 않은 대상 폴더 사용
--help, -h 도움말
```
`--yes` 사용 시 프로젝트 유형은 `requested-project`입니다.
## Agent Harness
생성 프로젝트에는 `.agent/profile.yml`, `.agent/project.md`, `.gitattributes`가 항상 포함됩니다.
중앙 하네스는 다음 순서로 탐색합니다.
1. `--harness-root`
2. `KRI_AGENT_HARNESS_ROOT` 환경변수
3. 생성 경로의 상위 디렉터리
하네스를 발견하면 프로젝트를 `workspace.local.yml`에 등록하고 `compose`, `verify`를 실행합니다. 하네스를 찾지 못해도 프로젝트 생성은 완료되며, 이 경우 `.agent` 원본을 중앙 하네스에서 나중에 등록·합성해야 합니다.
## Gitea Maven 인증
개발자 PC의 `%USERPROFILE%\.gradle\gradle.properties`: