Skip to content

Commit 4892e67

Browse files
authored
Set up copyright year ratcheting (#5)
When files get updated, update the copyright year range as well. Also, update copyright year for NOTICE.txt
1 parent 85e5397 commit 4892e67

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

NOTICE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2024 Apple Inc. and the Pkl project authors
1+
Copyright © 2024-2025 Apple Inc. and the Pkl project authors
22

33
Portions of this software includes code from "Gradle" by Gradle, Inc.
44

build.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ plugins {
1515
alias(libs.plugins.spotless)
1616
}
1717

18+
val originalRemoteName = System.getenv("PKL_ORIGINAL_REMOTE_NAME") ?: "origin"
19+
1820
spotless {
21+
ratchetFrom = "$originalRemoteName/main"
22+
1923
kotlin {
2024
licenseHeader("""
2125
/**
22-
* Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
26+
* Copyright © ${'$'}YEAR Apple Inc. and the Pkl project authors. All rights reserved.
2327
*
2428
* Licensed under the Apache License, Version 2.0 (the "License");
2529
* you may not use this file except in compliance with the License.
@@ -38,7 +42,7 @@ spotless {
3842
format("pkl") {
3943
licenseHeader("""
4044
//===----------------------------------------------------------------------===//
41-
// Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
45+
// Copyright © ${'$'}YEAR Apple Inc. and the Pkl project authors. All rights reserved.
4246
//
4347
// Licensed under the Apache License, Version 2.0 (the "License");
4448
// you may not use this file except in compliance with the License.

packages/pkl.impl.circleci/PklProject.deps.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
}
1010
}
1111
}
12-
}
12+
}

0 commit comments

Comments
 (0)