Don't be too clever with the copyright year (#26169)

This commit is contained in:
Arnout Engelen 2019-01-02 16:21:01 +01:00 committed by GitHub
parent 1cae9b0d44
commit 6cca1a0ee3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,9 @@ trait CopyrightHeader extends AutoPlugin {
}
)
val CurrentYear = java.time.Year.now.getValue.toString
// We hard-code this so PR's created in year X will not suddenly fail in X+1.
// Of course we should remember to update it early in the year.
val CurrentYear = "2019"
val CopyrightPattern = "Copyright \\([Cc]\\) (\\d{4}([-]\\d{4})?) (Lightbend|Typesafe) Inc. <.*>".r
val CopyrightHeaderPattern = s"(?s).*${CopyrightPattern}.*".r