Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
rlreamy committed Apr 11, 2024
1 parent 459a83e commit fc0fce3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ apply plugin: 'com.palantir.docker'

group = 'kingstonduo'

bootJar {
archiveBaseName = 'cassiopeia-data'
archiveVersion = '1.5'
jar {
baseName = 'cassiopeia-data'
version = '1.5'
}

repositories {
Expand Down Expand Up @@ -72,7 +72,7 @@ def getTagInfo() {
} catch (e) {
}
if (gitBranch == "develop" || gitBranch == "master"){
return "${bootJar.archiveVersion}"
return "${jar.version}"
}else{
return gitBranch
}
Expand All @@ -81,7 +81,7 @@ def getTagInfo() {
}

docker {
name "${project.group}/${bootJar.archiveBaseName}:" + getTagInfo()
name "${project.group}/${jar.baseName}:" + getTagInfo()
copySpec.from(tasks.unpack.outputs).into("dependency")
buildArgs(['DEPENDENCY': "dependency"])
}

0 comments on commit fc0fce3

Please sign in to comment.