File tree Expand file tree Collapse file tree
synthtool/gcp/templates/java_library
tests/fixtures/java_templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ Java idiomatic client for [{{metadata['repo']['name_pretty']}}][product-docs].
2020
2121## Quickstart
2222
23- {% if 'snippets' in metadata and metadata[ 'snippets'] [ metadata[ 'repo'] [ 'name ' ] + '_ install_with_bom'] -%}
23+ {% if 'snippets' in metadata and metadata[ 'snippets'] [ metadata[ 'repo'] [ 'api_shortname ' ] + '_ install_with_bom'] -%}
2424If you are using Maven with [ BOM] [ libraries-bom ] , add this to your pom.xml file
2525
2626``` xml
27- {{ metadata['snippets'][metadata['repo']['name '] + '_install_with_bom'] }}
27+ {{ metadata['snippets'][metadata['repo']['api_shortname '] + '_install_with_bom'] }}
2828```
2929
3030If you are using Maven without BOM, add this to your dependencies:
@@ -33,8 +33,8 @@ If you are using Maven, add this to your pom.xml file:
3333{% endif %}
3434
3535``` xml
36- {% if 'snippets' in metadata and metadata['snippets'][metadata['repo']['name '] + '_install_without_bom'] -%}
37- {{ metadata['snippets'][metadata['repo']['name '] + '_install_without_bom'] }}
36+ {% if 'snippets' in metadata and metadata['snippets'][metadata['repo']['api_shortname '] + '_install_without_bom'] -%}
37+ {{ metadata['snippets'][metadata['repo']['api_shortname '] + '_install_without_bom'] }}
3838{% else -%}
3939<dependency >
4040 <groupId >{{ group_id }}</groupId >
@@ -44,7 +44,7 @@ If you are using Maven, add this to your pom.xml file:
4444{% endif -%}
4545```
4646
47- {% if 'snippets' in metadata and metadata[ 'snippets'] [ metadata[ 'repo'] [ 'name ' ] + '_ install_with_bom'] -%}
47+ {% if 'snippets' in metadata and metadata[ 'snippets'] [ metadata[ 'repo'] [ 'api_shortname ' ] + '_ install_with_bom'] -%}
4848If you are using Gradle 5.x or later, add this to your dependencies
4949
5050``` Groovy
Original file line number Diff line number Diff line change 11{
2- "name " : " cloudasset" ,
2+ "api_shortname " : " cloudasset" ,
33 "name_pretty" : " Cloud Asset Inventory" ,
44 "product_documentation" : " https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview" ,
55 "api_reference" : " https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview" ,
Original file line number Diff line number Diff line change 11{
2- "name " : " cloudasset" ,
2+ "api_shortname " : " cloudasset" ,
33 "name_pretty" : " Cloud Asset Inventory" ,
44 "product_documentation" : " https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview" ,
55 "api_reference" : " https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview" ,
You can’t perform that action at this time.
0 commit comments