From 8132f9fd2e502898d5d3db8f14250cb60b8be071 Mon Sep 17 00:00:00 2001 From: Andrew Valencik Date: Mon, 8 Jul 2024 09:48:47 -0400 Subject: [PATCH] Add template variable `year` --- src/main/g8/NOTICE | 2 +- src/main/g8/build.sbt | 2 +- src/main/g8/core/src/main/scala/$package$/Main.scala | 2 +- src/main/g8/core/src/test/scala/$package$/MainSuite.scala | 2 +- src/main/g8/default.properties | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/g8/NOTICE b/src/main/g8/NOTICE index 9c04398..1942385 100644 --- a/src/main/g8/NOTICE +++ b/src/main/g8/NOTICE @@ -1,3 +1,3 @@ $name$ -Copyright 2023 $organization_name$ +Copyright $year$ $organization_name$ Licensed under Apache License 2.0 (see LICENSE) diff --git a/src/main/g8/build.sbt b/src/main/g8/build.sbt index 8a85f65..1bf2720 100644 --- a/src/main/g8/build.sbt +++ b/src/main/g8/build.sbt @@ -3,7 +3,7 @@ ThisBuild / tlBaseVersion := "0.0" // your current series x.y ThisBuild / organization := "$organization$" ThisBuild / organizationName := "$organization_name$" -ThisBuild / startYear := Some(2024) +ThisBuild / startYear := Some($year$) ThisBuild / licenses := Seq(License.Apache2) ThisBuild / developers := List( // your GitHub handle and name diff --git a/src/main/g8/core/src/main/scala/$package$/Main.scala b/src/main/g8/core/src/main/scala/$package$/Main.scala index 22ff91d..e81bc29 100644 --- a/src/main/g8/core/src/main/scala/$package$/Main.scala +++ b/src/main/g8/core/src/main/scala/$package$/Main.scala @@ -1,5 +1,5 @@ /* - * Copyright 2023 $organization_name$ + * Copyright $year$ $organization_name$ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/g8/core/src/test/scala/$package$/MainSuite.scala b/src/main/g8/core/src/test/scala/$package$/MainSuite.scala index 82f9bd4..88e86d2 100644 --- a/src/main/g8/core/src/test/scala/$package$/MainSuite.scala +++ b/src/main/g8/core/src/test/scala/$package$/MainSuite.scala @@ -1,5 +1,5 @@ /* - * Copyright 2023 $organization_name$ + * Copyright $year$ $organization_name$ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/g8/default.properties b/src/main/g8/default.properties index a5e8893..ba083e6 100644 --- a/src/main/g8/default.properties +++ b/src/main/g8/default.properties @@ -3,6 +3,7 @@ description = Template using sbt-typelevel organization = com.example package = $organization$.$name;format="norm,word"$ organization_name = Example +year = 2024 scala_version = 2.13.14 other_scala_version = 3.3.3