|
76 | 76 |
|
77 | 77 | s.remove_staging_dirs() |
78 | 78 |
|
79 | | -java.common_templates(excludes=[ |
80 | | - # firestore uses a different project for its integration tests |
81 | | - # due to the default project running datastore |
82 | | - '.kokoro/presubmit/integration.cfg', |
83 | | - '.kokoro/presubmit/graalvm-native-a.cfg', |
84 | | - '.kokoro/presubmit/graalvm-native-b.cfg', |
85 | | - '.kokoro/presubmit/graalvm-native-c.cfg', |
86 | | - '.kokoro/presubmit/samples.cfg', |
87 | | - '.kokoro/nightly/integration.cfg', |
88 | | - '.kokoro/nightly/java11-integration.cfg', |
89 | | - '.kokoro/nightly/samples.cfg', |
90 | | - '.kokoro/build.sh', |
91 | | - 'samples/snapshot/pom.xml', |
92 | | - '.kokoro/release/publish_javadoc.sh', |
93 | | - '.kokoro/release/publish_javadoc11.sh', |
94 | | - '.kokoro/release/stage.sh', |
95 | | - '.kokoro/requirements.in', |
96 | | - '.kokoro/requirements.txt', |
97 | | - '.github/CODEOWNERS', |
98 | | - '.github/workflows/samples.yaml', |
99 | | - 'renovate.json' |
| 79 | +java.common_templates(monorepo=True, excludes=[ |
| 80 | + ".github/*", |
| 81 | + ".kokoro/*", |
| 82 | + "samples/*", |
| 83 | + "CODE_OF_CONDUCT.md", |
| 84 | + "CONTRIBUTING.md", |
| 85 | + "LICENSE", |
| 86 | + "SECURITY.md", |
| 87 | + "java.header", |
| 88 | + "license-checks.xml", |
| 89 | + "renovate.json", |
| 90 | + ".gitignore" |
100 | 91 | ]) |
101 | | - |
102 | | -# Fix for b/442875200: Inject library_path_overrides for FirestoreAdminClient |
103 | | -# This ensures the doclet links to the correct source directory (google-cloud-firestore-admin) |
104 | | -# instead of the default artifactId (google-cloud-firestore). |
105 | | -metadata_path = ".repo-metadata.json" |
106 | | -try: |
107 | | - with open(metadata_path, "r") as f: |
108 | | - metadata = json.load(f) |
109 | | - |
110 | | - # Add the override map if it doesn't exist or update it |
111 | | - if "library_path_overrides" not in metadata: |
112 | | - metadata["library_path_overrides"] = {} |
113 | | - |
114 | | - metadata["library_path_overrides"]["FirestoreAdminClient"] = "google-cloud-firestore-admin" |
115 | | - |
116 | | - # Write the updated metadata back to the file |
117 | | - with open(metadata_path, "w") as f: |
118 | | - json.dump(metadata, f, indent=2) |
119 | | - f.write("\n") |
120 | | -except Exception as e: |
121 | | - print(f"Failed to update .repo-metadata.json: {e}") |
0 commit comments