From 6cca1a0ee35dcd1220c69e8567368f2d04fc3d0b Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Wed, 2 Jan 2019 16:21:01 +0100 Subject: [PATCH] Don't be too clever with the copyright year (#26169) --- project/CopyrightHeader.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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