diff --git a/docker/owlbot/java/tests/new-client-maps/golden/grpc-google-maps-foo-v1/src/main/java/com/google/maps/foo/SomeService.java b/docker/owlbot/java/tests/new-client-maps/golden/grpc-google-maps-foo-v1/src/main/java/com/google/maps/foo/SomeService.java index d0a3ed300..9dc9d67de 100644 --- a/docker/owlbot/java/tests/new-client-maps/golden/grpc-google-maps-foo-v1/src/main/java/com/google/maps/foo/SomeService.java +++ b/docker/owlbot/java/tests/new-client-maps/golden/grpc-google-maps-foo-v1/src/main/java/com/google/maps/foo/SomeService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * 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/docker/owlbot/java/tests/new-client-maps/golden/proto-google-maps-foo-v1/src/main/java/com/google/maps/foo/SomeMessage.java b/docker/owlbot/java/tests/new-client-maps/golden/proto-google-maps-foo-v1/src/main/java/com/google/maps/foo/SomeMessage.java index 8bf43cda5..2980af9db 100644 --- a/docker/owlbot/java/tests/new-client-maps/golden/proto-google-maps-foo-v1/src/main/java/com/google/maps/foo/SomeMessage.java +++ b/docker/owlbot/java/tests/new-client-maps/golden/proto-google-maps-foo-v1/src/main/java/com/google/maps/foo/SomeMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * 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/docker/owlbot/java/tests/new-client/golden/grpc-google-cloud-foo-v1/src/main/java/com/google/cloud/foo/SomeService.java b/docker/owlbot/java/tests/new-client/golden/grpc-google-cloud-foo-v1/src/main/java/com/google/cloud/foo/SomeService.java index c2b90c39f..2a07c8de4 100644 --- a/docker/owlbot/java/tests/new-client/golden/grpc-google-cloud-foo-v1/src/main/java/com/google/cloud/foo/SomeService.java +++ b/docker/owlbot/java/tests/new-client/golden/grpc-google-cloud-foo-v1/src/main/java/com/google/cloud/foo/SomeService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * 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/docker/owlbot/java/tests/new-client/golden/proto-google-cloud-foo-v1/src/main/java/com/google/cloud/foo/SomeMessage.java b/docker/owlbot/java/tests/new-client/golden/proto-google-cloud-foo-v1/src/main/java/com/google/cloud/foo/SomeMessage.java index 80c4c497a..9ff3db8b8 100644 --- a/docker/owlbot/java/tests/new-client/golden/proto-google-cloud-foo-v1/src/main/java/com/google/cloud/foo/SomeMessage.java +++ b/docker/owlbot/java/tests/new-client/golden/proto-google-cloud-foo-v1/src/main/java/com/google/cloud/foo/SomeMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * 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/synthtool/languages/java.py b/synthtool/languages/java.py index 3ae198c09..90bd0eb8f 100644 --- a/synthtool/languages/java.py +++ b/synthtool/languages/java.py @@ -25,11 +25,13 @@ from synthtool.log import logger from pathlib import Path from typing import Any, Optional, Dict, Iterable, List +from datetime import date JAR_DOWNLOAD_URL = "https://github.com/google/google-java-format/releases/download/google-java-format-{version}/google-java-format-{version}-all-deps.jar" DEFAULT_FORMAT_VERSION = "1.7" -GOOD_LICENSE = """/* - * Copyright 2023 Google LLC +CURRENT_YEAR = date.today().year +GOOD_LICENSE = f"""/* + * Copyright {CURRENT_YEAR} Google LLC * * 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/tests/testdata/FooGrpcGolden.java b/tests/testdata/FooGrpcGolden.java index 26adcb544..64f7bb90e 100644 --- a/tests/testdata/FooGrpcGolden.java +++ b/tests/testdata/FooGrpcGolden.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * 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/tests/testdata/FooProtoGolden.java b/tests/testdata/FooProtoGolden.java index afc75914d..75bfe578b 100644 --- a/tests/testdata/FooProtoGolden.java +++ b/tests/testdata/FooProtoGolden.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.