We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80e008d commit 5fd8f9eCopy full SHA for 5fd8f9e
library_generation/owlbot/synthtool/languages/java.py
@@ -69,6 +69,8 @@
69
LIBRARIES_BOM_VERSION = "libraries_bom_version"
70
LIBRARIES_BOM_VERSION_ENV_KEY = "SYNTHTOOL_LIBRARIES_BOM_VERSION"
71
HEADER_REGEX = re.compile("\\* Copyright \\d{4} Google LLC")
72
+LIBRARY_VERSION = "library_version"
73
+LIBRARY_VERSION_ENV_KEY = "SYNTHTOOL_LIBRARY_VERSION"
74
75
76
def _file_has_header(path: Path) -> bool:
@@ -325,6 +327,7 @@ def common_templates(
325
327
kwargs[METADATA][LIBRARIES_BOM_VERSION] = os.getenv(
326
328
LIBRARIES_BOM_VERSION_ENV_KEY
329
)
330
+ kwargs[METADATA][LIBRARY_VERSION] = os.getenv(LIBRARY_VERSION_ENV_KEY)
331
# Special libraries that are not GAPIC_AUTO but in the monorepo
332
special_libs_in_monorepo = [
333
"java-translate",
0 commit comments