diff --git a/project/CopyrightHeader.scala b/project/CopyrightHeader.scala index 844bc844f3..6338c52287 100644 --- a/project/CopyrightHeader.scala +++ b/project/CopyrightHeader.scala @@ -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