Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a6d204b
tests: Used fixed copyright year in tests.
blakeli0 Jan 2, 2026
0559cb1
chore: generate libraries at Fri Jan 2 15:31:08 UTC 2026
cloud-java-bot Jan 2, 2026
fa6a501
chore: format
blakeli0 Jan 2, 2026
1421a00
chore: fix python unit tests
blakeli0 Jan 2, 2026
8938dd6
chore: set bazel test environment variable.
blakeli0 Jan 2, 2026
7c8cb3e
Merge branch 'main' into use_fixed_copyright
blakeli0 Jan 2, 2026
23ad9b0
chore: fix python unit tests
blakeli0 Jan 2, 2026
507ebcb
chore: fix python unit tests
blakeli0 Jan 2, 2026
38e0ca6
chore: Update tests
blakeli0 Jan 2, 2026
f62aee7
chore: Update showcase scripts to use TEST_CURRENT_YEAR=2025
blakeli0 Jan 2, 2026
34cefeb
chore: Update tests
blakeli0 Jan 2, 2026
d89df74
chore: Update tests
blakeli0 Jan 2, 2026
f9e00a4
chore: Use environment variable in python tests for getting current y…
blakeli0 Jan 2, 2026
1fce5f0
chore: Update tests
blakeli0 Jan 2, 2026
9097e11
chore: Update tests
blakeli0 Jan 2, 2026
38d90a9
chore: Update java.py
blakeli0 Jan 2, 2026
e7022df
chore: Update java.py
blakeli0 Jan 2, 2026
f9b953f
chore: Update java.py
blakeli0 Jan 2, 2026
f1db946
chore: Update java.py
blakeli0 Jan 2, 2026
3b39da7
chore: Dedent
blakeli0 Jan 2, 2026
31c4de6
chore: Dedent
blakeli0 Jan 3, 2026
3957c6a
Revert "chore: Dedent"
blakeli0 Jan 3, 2026
06c3616
chore: Dedent
blakeli0 Jan 3, 2026
60ad11c
chore: Re-generate golden integration tests.
blakeli0 Jan 5, 2026
9ac79fc
chore: reformat
blakeli0 Jan 5, 2026
35f6d73
chore: Address review comments.
blakeli0 Jan 5, 2026
b45c185
chore: Add comments.
blakeli0 Jan 5, 2026
674dd9e
chore: Add comments.
blakeli0 Jan 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions gapic-generator-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@
target/generated-test-resources/protobuf/descriptor-sets
</additionalClasspathElement>
</additionalClasspathElements>
<environmentVariables>
<test_current_year>2025</test_current_year>
</environmentVariables>
</configuration>
</plugin>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import com.google.api.generator.engine.ast.CommentStatement;
import com.google.api.generator.engine.ast.LineComment;
import com.google.api.generator.engine.ast.Statement;
import com.google.common.base.Strings;

import java.util.Arrays;
import java.util.Calendar;
import java.util.List;
Expand All @@ -35,7 +37,7 @@ public class CommentComposer {
+ "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n"
+ "See the License for the specific language governing permissions and\n"
+ "limitations under the License.",
Calendar.getInstance().get(Calendar.YEAR));
getCurrentYear());

private static final String AUTO_GENERATED_CLASS_DISCLAIMER_STRING =
"AUTO-GENERATED DOCUMENTATION AND CLASS.";
Expand Down Expand Up @@ -78,4 +80,10 @@ public class CommentComposer {
CommentStatement.withComment(
LineComment.withComment(
"https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library")));

private static String getCurrentYear() {
String testCurrentYear = System.getenv("test_current_year");
int currentYearFromCalendar = Calendar.getInstance().get(Calendar.YEAR);
return Strings.isNullOrEmpty(testCurrentYear) ? String.valueOf(currentYearFromCalendar) : testCurrentYear;
}
}
Loading