Skip to content

Commit

Permalink
chore: Determine the year automatically for copyright headers (#3316)
Browse files Browse the repository at this point in the history
  • Loading branch information
seakayone authored Jul 15, 2024
1 parent 26dba9a commit e25456c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
),
)
Expand Down

0 comments on commit e25456c

Please sign in to comment.