plugins { id 'java-library' id 'maven-publish' } group = 'com.kri.common' version = '1.0.0' java { toolchain { languageVersion = JavaLanguageVersion.of(17) } } repositories { mavenCentral() } dependencies { // Spring BOM (버전 정합성) api platform('org.springframework.boot:spring-boot-dependencies:3.5.7') // ★ 자동구성/웹/검증/AOP는 컴파일만 (전이 방지) compileOnly 'org.springframework.boot:spring-boot-autoconfigure' compileOnly 'org.springframework.boot:spring-boot-starter-web' compileOnly 'org.springframework.boot:spring-boot-starter-validation' compileOnly 'org.springframework.boot:spring-boot-starter-aop' // ★ Redis 자동구성용 (원하면 끌 수 있게) — 런타임은 소비 앱이 책임 compileOnly 'org.springframework.boot:spring-boot-starter-data-redis' } publishing { publications { release(MavenPublication) { from components.java artifactId = 'starter' // 소비 앱에서 com.kri.common:starter:1.0.0 로 의존 } } // repositories { maven { url = uri('https://your-internal-registry') } } }