251114_01_ENH : JWT, API-Key 기능 추가, README 작성
This commit is contained in:
47
build.gradle
47
build.gradle
@@ -3,8 +3,11 @@ plugins {
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
//버전 변경은 여기서
|
||||
def commonVer = "1.0.2"
|
||||
|
||||
group = 'com.kri.common'
|
||||
version = '1.0.0'
|
||||
version = commonVer
|
||||
|
||||
java {
|
||||
toolchain { languageVersion = JavaLanguageVersion.of(17) }
|
||||
@@ -15,26 +18,52 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// Spring BOM (버전 정합성)
|
||||
api platform('org.springframework.boot:spring-boot-dependencies:3.5.7')
|
||||
// 공통 BOM 객체 하나 잡아두고
|
||||
def springBootBom = platform('org.springframework.boot:spring-boot-dependencies:3.5.7')
|
||||
|
||||
// ★ 자동구성/웹/검증/AOP는 컴파일만 (전이 방지)
|
||||
// 여기까지가 BOM 적용 구간
|
||||
api springBootBom
|
||||
compileOnly springBootBom
|
||||
annotationProcessor springBootBom
|
||||
|
||||
// ==== 여기부터는 버전 안 써도 됨 (BOM이 버전 정해줌) ====
|
||||
|
||||
// JWT
|
||||
api 'io.jsonwebtoken:jjwt-api:0.11.5'
|
||||
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
|
||||
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
|
||||
|
||||
// Security Core
|
||||
api 'org.springframework.security:spring-security-core'
|
||||
|
||||
// Swagger / OpenAPI 어노테이션 (@Schema 등) - 컴파일용
|
||||
compileOnly 'io.swagger.core.v3:swagger-annotations:2.2.25'
|
||||
|
||||
// Lombok
|
||||
compileOnly 'org.projectlombok:lombok'
|
||||
annotationProcessor 'org.projectlombok:lombok'
|
||||
|
||||
// ConfigurationProperties 메타데이터
|
||||
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
|
||||
compileOnly 'org.springframework.boot:spring-boot-autoconfigure'
|
||||
|
||||
// 자동구성/웹/검증/AOP/Redis는 컴파일만 (전이 방지)
|
||||
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'
|
||||
}
|
||||
|
||||
def giteaUser = findProperty("giteaUser") ?: ""
|
||||
def giteaToken = findProperty("giteaToken") ?: ""
|
||||
publishing {
|
||||
publications {
|
||||
release(MavenPublication) {
|
||||
from components.java
|
||||
groupId = 'com.kri.common'
|
||||
artifactId = 'starter' // 소비 프로젝트에서 쓰는 artifactId
|
||||
version = '1.0.0'
|
||||
version = commonVer
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
@@ -43,8 +72,8 @@ publishing {
|
||||
url = uri("http://10.10.10.11:3000/api/packages/KRi/maven") // owner=KRi
|
||||
allowInsecureProtocol = true
|
||||
credentials {
|
||||
username = "gitadmin" // 또는 본인 계정
|
||||
password = "8faa3eb482aafec11539696fbcee95604c6b93ee"
|
||||
username = giteaUser // 또는 본인 계정
|
||||
password = giteaToken
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user