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'
|
group = 'com.kri.common'
|
||||||
version = commonVer
|
version = commonVer
|
||||||
@@ -71,24 +71,26 @@ dependencies {
|
|||||||
compileOnly 'org.springframework.boot:spring-boot-starter-data-redis'
|
compileOnly 'org.springframework.boot:spring-boot-starter-data-redis'
|
||||||
}
|
}
|
||||||
|
|
||||||
def giteaUser = findProperty("giteaUser") ?: ""
|
def giteaUser = findProperty("giteaUser") ?: System.getenv("GITEA_USER") ?: ""
|
||||||
def giteaToken = findProperty("giteaToken") ?: ""
|
def giteaToken = findProperty("giteaToken") ?: System.getenv("GITEA_TOKEN") ?: ""
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
release(MavenPublication) {
|
release(MavenPublication) {
|
||||||
from components.java
|
from components.java
|
||||||
groupId = 'com.kri.common'
|
groupId = 'com.kri.common'
|
||||||
artifactId = 'starter' // 소비 프로젝트에서 쓰는 artifactId
|
artifactId = 'starter'
|
||||||
version = commonVer
|
version = commonVer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = "gitea"
|
name = "gitea"
|
||||||
url = uri("https://gitea.kric.com/api/packages/KRi/maven") // owner=KRi
|
url = uri("https://gitea.kric.com/api/packages/KRi/maven")
|
||||||
//allowInsecureProtocol = true
|
|
||||||
credentials {
|
credentials {
|
||||||
username = giteaUser // 또는 본인 계정
|
username = giteaUser
|
||||||
password = giteaToken
|
password = giteaToken
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user