Skip to content

Commit 5fd8f9e

Browse files
committed
1 parent 80e008d commit 5fd8f9e

File tree

1 file changed

+3
-0
lines changed
  • library_generation/owlbot/synthtool/languages

1 file changed

+3
-0
lines changed

library_generation/owlbot/synthtool/languages/java.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
LIBRARIES_BOM_VERSION = "libraries_bom_version"
7070
LIBRARIES_BOM_VERSION_ENV_KEY = "SYNTHTOOL_LIBRARIES_BOM_VERSION"
7171
HEADER_REGEX = re.compile("\\* Copyright \\d{4} Google LLC")
72+
LIBRARY_VERSION = "library_version"
73+
LIBRARY_VERSION_ENV_KEY = "SYNTHTOOL_LIBRARY_VERSION"
7274

7375

7476
def _file_has_header(path: Path) -> bool:
@@ -325,6 +327,7 @@ def common_templates(
325327
kwargs[METADATA][LIBRARIES_BOM_VERSION] = os.getenv(
326328
LIBRARIES_BOM_VERSION_ENV_KEY
327329
)
330+
kwargs[METADATA][LIBRARY_VERSION] = os.getenv(LIBRARY_VERSION_ENV_KEY)
328331
# Special libraries that are not GAPIC_AUTO but in the monorepo
329332
special_libs_in_monorepo = [
330333
"java-translate",

0 commit comments

Comments
 (0)