Skip to content

Commit 86b9411

Browse files
chore: update java template license header year (#1917)
* chore: update java template's license header year * update year in test files * remove unwanted file * compute license year dynamically
1 parent fac8444 commit 86b9411

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

docker/owlbot/java/tests/new-client-maps/golden/grpc-google-maps-foo-v1/src/main/java/com/google/maps/foo/SomeService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

docker/owlbot/java/tests/new-client-maps/golden/proto-google-maps-foo-v1/src/main/java/com/google/maps/foo/SomeMessage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

docker/owlbot/java/tests/new-client/golden/grpc-google-cloud-foo-v1/src/main/java/com/google/cloud/foo/SomeService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

docker/owlbot/java/tests/new-client/golden/proto-google-cloud-foo-v1/src/main/java/com/google/cloud/foo/SomeMessage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

synthtool/languages/java.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@
2525
from synthtool.log import logger
2626
from pathlib import Path
2727
from typing import Any, Optional, Dict, Iterable, List
28+
from datetime import date
2829

2930
JAR_DOWNLOAD_URL = "https://github.com/google/google-java-format/releases/download/google-java-format-{version}/google-java-format-{version}-all-deps.jar"
3031
DEFAULT_FORMAT_VERSION = "1.7"
31-
GOOD_LICENSE = """/*
32-
* Copyright 2023 Google LLC
32+
CURRENT_YEAR = date.today().year
33+
GOOD_LICENSE = f"""/*
34+
* Copyright {CURRENT_YEAR} Google LLC
3335
*
3436
* Licensed under the Apache License, Version 2.0 (the "License");
3537
* you may not use this file except in compliance with the License.

tests/testdata/FooGrpcGolden.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

tests/testdata/FooProtoGolden.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)