Skip to content

Commit 774fe6e

Browse files
authored
feat(generator): add extra allowed modules that will not be removed from the monorepo if they are present (googleapis#4124)
This is needed for the auth-library and sdk-platform-java migration into the monorepo
1 parent 4b3dbe2 commit 774fe6e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

hermetic_build/library_generation/utils/pom_generator.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,23 @@ def get_version_from(
6767
return line.split(":")[index].strip()
6868

6969

70+
MODULE_ALLOWLIST = set(
71+
[
72+
"google-auth-library-java",
73+
"sdk-platform-java",
74+
]
75+
)
76+
77+
7078
def __search_for_java_modules(
7179
repository_path: str,
7280
) -> List[str]:
7381
repo = Path(repository_path).resolve()
7482
modules = []
7583
for sub_dir in repo.iterdir():
76-
if sub_dir.is_dir() and sub_dir.name.startswith("java-"):
84+
if sub_dir.is_dir() and (
85+
sub_dir.name.startswith("java-") or sub_dir.name in MODULE_ALLOWLIST
86+
):
7787
modules.append(sub_dir.name)
7888
return sorted(modules)
7989

0 commit comments

Comments
 (0)