Skip to content

Commit 07f6176

Browse files
committed
fix: import Calendar for copyright field in JReleaser config
1 parent 89f2402 commit 07f6176

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ plugins {
66

77
import org.jreleaser.model.Active
88
import org.jreleaser.model.Signing
9+
import java.util.Calendar
910

1011
afterEvaluate {
1112
jreleaser {
@@ -16,7 +17,7 @@ afterEvaluate {
1617
description.set("Java Library for Apple PassKit Web Service")
1718
license.set("Apache-2.0")
1819
authors.set(listOf("Patrice Brend'amour"))
19-
copyright.set("2012-${java.util.Calendar.getInstance().get(java.util.Calendar.YEAR)} Patrice Brend'amour")
20+
copyright.set("2012-${Calendar.getInstance().get(Calendar.YEAR)} Patrice Brend'amour")
2021
}
2122

2223
release {

0 commit comments

Comments
 (0)