260605_01_ENH: gitea 웹훅을 적용하여 jenkins로 패키지 배포 자동화

This commit is contained in:
2026-06-05 11:25:39 +09:00
parent 29b1fa1e97
commit 621679af58

View File

@@ -4,7 +4,7 @@ plugins {
}
//버전 변경은 여기서
def commonVer = "beta.1.1.20"
def commonVer = "beta.1.1.21"
group = 'com.kri.common'
version = commonVer
@@ -71,24 +71,26 @@ dependencies {
compileOnly 'org.springframework.boot:spring-boot-starter-data-redis'
}
def giteaUser = findProperty("giteaUser") ?: ""
def giteaToken = findProperty("giteaToken") ?: ""
def giteaUser = findProperty("giteaUser") ?: System.getenv("GITEA_USER") ?: ""
def giteaToken = findProperty("giteaToken") ?: System.getenv("GITEA_TOKEN") ?: ""
publishing {
publications {
release(MavenPublication) {
from components.java
groupId = 'com.kri.common'
artifactId = 'starter' // 소비 프로젝트에서 쓰는 artifactId
artifactId = 'starter'
version = commonVer
}
}
repositories {
maven {
name = "gitea"
url = uri("https://gitea.kric.com/api/packages/KRi/maven") // owner=KRi
//allowInsecureProtocol = true
url = uri("https://gitea.kric.com/api/packages/KRi/maven")
credentials {
username = giteaUser // 또는 본인 계정
username = giteaUser
password = giteaToken
}
}