51 lines
1.5 KiB
Groovy
51 lines
1.5 KiB
Groovy
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
|
|
groupId = 'com.kri.common'
|
|
artifactId = 'starter' // 소비 프로젝트에서 쓰는 artifactId
|
|
version = '1.0.0'
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
name = "gitea"
|
|
url = uri("http://10.10.10.11:3000/api/packages/KRi/maven") // owner=KRi
|
|
allowInsecureProtocol = true
|
|
credentials {
|
|
username = "gitadmin" // 또는 본인 계정
|
|
password = "8faa3eb482aafec11539696fbcee95604c6b93ee"
|
|
}
|
|
}
|
|
}
|
|
} |