260605_01_ENH: gitea 웹훅을 적용하여 jenkins로 패키지 배포 자동화
This commit is contained in:
16
build.gradle
16
build.gradle
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user