Skip to content

Commit

Permalink
Fix: imageName에서 version을 가져오도록 수정 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaewon-pro authored Jul 22, 2024
1 parent 57ba668 commit 530b2ae
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ plugins {
}

group = "com.dnd"
version = "0.0.1-SNAPSHOT"

java {
toolchain {
Expand Down Expand Up @@ -53,16 +52,14 @@ tasks.withType<Test> {

tasks.bootBuildImage {
createdDate = "now"
}

springBoot {
buildInfo {
properties {
setVersion(System.getProperty("WAS_TAG") ?: "Unknown")
}
doFirst {
version = imageName.get().substringAfterLast(":", "Unknown")
println("Setting version to: $version")
}
}

springBoot.buildInfo { properties {} }

spotless {
encoding = Charsets.UTF_8

Expand Down

0 comments on commit 530b2ae

Please sign in to comment.