Skip to content

Commit

Permalink
chore(gradle): Configure tz of sdf using apply in build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
guicamest authored and steve-todorov committed Sep 26, 2023
1 parent 4c97ed0 commit 38cc62a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ tasks {
}

named<Jar>("jar") {
val sdf = SimpleDateFormat("yyyy-MM-dd HH:mm:ss zzz").apply { timeZone = TimeZone.getTimeZone("UTC") }
val attrs = HashMap<String, String?>()
val sdf = SimpleDateFormat("yyyy-MM-dd HH:mm:ss zzz")
sdf.timeZone = TimeZone.getTimeZone("UTC")
attrs["Build-Date"] = sdf.format(Date())
attrs["Build-JDK"] = System.getProperty("java.version")
attrs["Build-Gradle"] = project.gradle.gradleVersion
Expand Down

0 comments on commit 38cc62a

Please sign in to comment.