Skip to content

Commit

Permalink
Use ARTIFACTORY_URL variable
Browse files Browse the repository at this point in the history
  • Loading branch information
elx-cbrandom committed Jan 24, 2024
1 parent 0dad4a8 commit 976d8be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/java-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ jobs:
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }}
URL: ${{ vars.ARTIFACTORY_URL }}
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ ext {
if (gitBranch == 'master') {
println 'Building master branch'
project.version = getMasterVersion()
artifactoryRepo = 'libs-release-local'
} else {
branchVersionIdentifier = gitBranch.replaceAll("[\\W]", "_")
println 'Building branch: ' + branchVersionIdentifier
project.version = getBranchVersion(branchVersionIdentifier)
artifactoryRepo = 'libs-snapshot-local'
}

println 'Version: ' + project.version
Expand Down Expand Up @@ -156,7 +158,7 @@ publishing {
}
repositories {
maven {
url = 'https://artifactory.elyxor.com/artifactory/libs-snapshot-local'
url = System.getenv('URL') + '/' + artifactoryRepo
credentials(HttpHeaderCredentials) {
name = "X-JFrog-Art-API"
value = System.getenv('TOKEN')
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
artifactMajorVersion = 0
artifactMinorVersion = 1
artifactPatchVersion = 3
artifactPatchVersion = 11

applicationGroupId = com.elyxor.cachethq
applicationTitle = Cachet HQ okhttp-gson API Client (java)
Expand All @@ -10,4 +10,4 @@ licenseName = Apache 2.0
specVendor = Elyxor, Inc.
url = https://github.com/ElyxorInc/cachethq-swagger
licenseUrl = https://github.com/ElyxorInc/cachethq-swagger/blob/master/LICENSE
scmUrl = scm:git:https://github.com/ElyxorInc/cachethq-swagger.git
scmUrl = scm:git:https://github.com/ElyxorInc/cachethq-swagger.git

0 comments on commit 976d8be

Please sign in to comment.