diff --git a/build.gradle b/build.gradle index ef2f1d4..e969894 100644 --- a/build.gradle +++ b/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 } }