From e25456c7129c603284e5899d94cfbd0f1994d4c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Kleinb=C3=B6lting?= Date: Mon, 15 Jul 2024 10:12:56 +0200 Subject: [PATCH] chore: Determine the year automatically for copyright headers (#3316) --- build.sbt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 7ef7c83059..b4830ef7b7 100644 --- a/build.sbt +++ b/build.sbt @@ -40,14 +40,15 @@ lazy val buildTime = Instant.now.toString lazy val aggregatedProjects: Seq[ProjectReference] = Seq(webapi, sipi, integration) +lazy val year = java.time.LocalDate.now().getYear lazy val buildSettings = Seq( organization := "org.knora", version := (ThisBuild / version).value, headerLicense := Some( HeaderLicense.Custom( - """|Copyright © 2021 - 2024 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors. - |SPDX-License-Identifier: Apache-2.0 - |""".stripMargin, + s"""|Copyright © 2021 - $year Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors. + |SPDX-License-Identifier: Apache-2.0 + |""".stripMargin, ), ), )