From e3fcf8f2176c3813a65ac95195064c0da55b50c0 Mon Sep 17 00:00:00 2001 From: blakeli Date: Tue, 23 Dec 2025 15:34:04 -0500 Subject: [PATCH 1/3] chore: Only generate BOM section for cloud libraries in README. --- .../library_generation/owlbot/templates/java_library/README.md | 2 +- .../library_generation/tests/owlbot/java_unit_tests.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hermetic_build/library_generation/owlbot/templates/java_library/README.md b/hermetic_build/library_generation/owlbot/templates/java_library/README.md index 35b1b34492..21baa91871 100644 --- a/hermetic_build/library_generation/owlbot/templates/java_library/README.md +++ b/hermetic_build/library_generation/owlbot/templates/java_library/README.md @@ -36,7 +36,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: ``` If you are using Maven without the BOM, add this to your dependencies: -{% elif monorepo %} +{% elif monorepo and group_id == "com.google.cloud" %} If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: ```xml diff --git a/hermetic_build/library_generation/tests/owlbot/java_unit_tests.py b/hermetic_build/library_generation/tests/owlbot/java_unit_tests.py index 91a827725c..6f1d07966b 100644 --- a/hermetic_build/library_generation/tests/owlbot/java_unit_tests.py +++ b/hermetic_build/library_generation/tests/owlbot/java_unit_tests.py @@ -276,6 +276,7 @@ def test_render_readme_success(self): # This method needs read .repo-metadata.json to render templates. # The file is located in FIXTURES/java_templates/render-readme. java.common_templates( + monorepo=True, template_path=TEMPLATES_PATH, ) self.assertTrue(os.path.isfile("README.md")) From 4bcfce1001bb4c2db2941ac7de7a140bd7cceebb Mon Sep 17 00:00:00 2001 From: blakeli Date: Tue, 23 Dec 2025 16:08:29 -0500 Subject: [PATCH 2/3] chore: Revert unit test changes. --- .../library_generation/tests/owlbot/java_unit_tests.py | 1 - 1 file changed, 1 deletion(-) diff --git a/hermetic_build/library_generation/tests/owlbot/java_unit_tests.py b/hermetic_build/library_generation/tests/owlbot/java_unit_tests.py index 6f1d07966b..91a827725c 100644 --- a/hermetic_build/library_generation/tests/owlbot/java_unit_tests.py +++ b/hermetic_build/library_generation/tests/owlbot/java_unit_tests.py @@ -276,7 +276,6 @@ def test_render_readme_success(self): # This method needs read .repo-metadata.json to render templates. # The file is located in FIXTURES/java_templates/render-readme. java.common_templates( - monorepo=True, template_path=TEMPLATES_PATH, ) self.assertTrue(os.path.isfile("README.md")) From daea2811e3988ef504279acc185df8d072951115 Mon Sep 17 00:00:00 2001 From: blakeli Date: Fri, 26 Dec 2025 13:15:15 -0500 Subject: [PATCH 3/3] chore: Add com.google.analytics and com.google.area120 to the inclusion list. --- .../library_generation/owlbot/templates/java_library/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermetic_build/library_generation/owlbot/templates/java_library/README.md b/hermetic_build/library_generation/owlbot/templates/java_library/README.md index 21baa91871..65f3c09d32 100644 --- a/hermetic_build/library_generation/owlbot/templates/java_library/README.md +++ b/hermetic_build/library_generation/owlbot/templates/java_library/README.md @@ -36,7 +36,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: ``` If you are using Maven without the BOM, add this to your dependencies: -{% elif monorepo and group_id == "com.google.cloud" %} +{% elif monorepo and (group_id == "com.google.cloud" or group_id == "com.google.analytics" or group_id == "com.google.area120") %} If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: ```xml