File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 65
65
METADATA = "metadata"
66
66
LIBRARIES_BOM_VERSION = "libraries_bom_version"
67
67
LIBRARIES_BOM_VERSION_ENV_KEY = "SYNTHTOOL_LIBRARIES_BOM_VERSION"
68
+ LIBRARY_VERSION = "library_version"
69
+ LIBRARY_VERSION_ENV_KEY = "SYNTHTOOL_LIBRARY_VERSION"
68
70
69
71
70
72
def format_code (
@@ -477,7 +479,7 @@ def _common_template_metadata() -> Dict[str, Any]:
477
479
478
480
479
481
def common_templates (
480
- excludes : List [str ] = [] ,
482
+ excludes : List [str ] = None ,
481
483
template_path : Optional [Path ] = None ,
482
484
** kwargs ,
483
485
) -> None :
@@ -492,6 +494,8 @@ def common_templates(
492
494
:param template_path:
493
495
:param kwargs: Additional options for CommonTemplates.java_library()
494
496
"""
497
+ if not excludes :
498
+ excludes = []
495
499
metadata = _common_template_metadata ()
496
500
kwargs [METADATA ] = metadata
497
501
@@ -506,6 +510,7 @@ def common_templates(
506
510
kwargs [METADATA ][LIBRARIES_BOM_VERSION ] = os .getenv (
507
511
LIBRARIES_BOM_VERSION_ENV_KEY
508
512
)
513
+ kwargs [METADATA ][LIBRARY_VERSION ] = os .getenv (LIBRARY_VERSION_ENV_KEY )
509
514
# Special libraries that are not GAPIC_AUTO but in the monorepo
510
515
special_libs_in_monorepo = [
511
516
"java-translate" ,
You can’t perform that action at this time.
0 commit comments