File tree 1 file changed +5
-1
lines changed 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 62
62
\\ */
63
63
"""
64
64
DEFAULT_MIN_SUPPORTED_JAVA_VERSION = 8
65
+ METADATA = "metadata"
66
+ LIBRARIES_BOM_VERSION = "libraries_bom_version"
65
67
66
68
67
69
def format_code (
@@ -490,7 +492,7 @@ def common_templates(
490
492
:param kwargs: Additional options for CommonTemplates.java_library()
491
493
"""
492
494
metadata = _common_template_metadata ()
493
- kwargs ["metadata" ] = metadata
495
+ kwargs [METADATA ] = metadata
494
496
495
497
# Generate flat to tell this repository is a split repo that have migrated
496
498
# to monorepo. The owlbot.py in the monorepo sets monorepo=True.
@@ -499,6 +501,8 @@ def common_templates(
499
501
split_repo = not monorepo
500
502
repo_metadata = metadata ["repo" ]
501
503
repo_short = repo_metadata ["repo_short" ]
504
+ if LIBRARIES_BOM_VERSION in kwargs :
505
+ kwargs [METADATA ][LIBRARIES_BOM_VERSION ] = kwargs .get (LIBRARIES_BOM_VERSION )
502
506
# Special libraries that are not GAPIC_AUTO but in the monorepo
503
507
special_libs_in_monorepo = [
504
508
"java-translate" ,
You can’t perform that action at this time.
0 commit comments