@@ -34,11 +34,35 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
34
34
{{ metadata['snippets'][metadata['repo']['api_shortname'] + '_install_with_bom'] }}
35
35
```
36
36
37
- If you are using Maven without BOM, add this to your dependencies:
37
+ If you are using Maven without the BOM, add this to your dependencies:
38
+ {% elif monorepo %}
39
+ If you are using Maven with [ BOM] [ libraries-bom ] , add this to your pom.xml file:
40
+
41
+ ``` xml
42
+ <dependencyManagement >
43
+ <dependencies >
44
+ <dependency >
45
+ <groupId >com.google.cloud</groupId >
46
+ <artifactId >libraries-bom</artifactId >
47
+ <version >{{ metadata['latest_bom_version'] }}</version >
48
+ <type >pom</type >
49
+ <scope >import</scope >
50
+ </dependency >
51
+ </dependencies >
52
+ </dependencyManagement >
53
+
54
+ <dependencies >
55
+ <dependency >
56
+ <groupId >{{ group_id }}</groupId >
57
+ <artifactId >{{ artifact_id }}</artifactId >
58
+ </dependency >
59
+ ```
60
+
61
+ If you are using Maven without the BOM, add this to your dependencies:
38
62
{% else %}
39
63
If you are using Maven, add this to your pom.xml file:
40
- <!-- {x-version-update-start:{{ artifact_id }}:released} -->
41
64
{% endif %}
65
+ <!-- {x-version-update-start:{{ artifact_id }}:released} -->
42
66
43
67
``` xml
44
68
{% if 'snippets' in metadata and metadata['snippets'][metadata['repo']['api_shortname'] + '_install_without_bom'] -%}
@@ -248,7 +272,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
248
272
[ developer-console ] : https://console.developers.google.com/
249
273
[ create-project ] : https://cloud.google.com/resource-manager/docs/creating-managing-projects
250
274
[ cloud-cli ] : https://cloud.google.com/cli
251
- [ troubleshooting ] : https://github.com/googleapis/google-cloud-common /blob/main/troubleshooting/readme .md#troubleshooting
275
+ [ troubleshooting ] : https://github.com/googleapis/google-cloud-java /blob/main/TROUBLESHOOTING .md
252
276
[ contributing ] : https://github.com/{{metadata['repo']['repo']}}/blob/main/CONTRIBUTING.md
253
277
[ code-of-conduct ] : https://github.com/{{metadata['repo']['repo']}}/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
254
278
[ license ] : https://github.com/{{metadata['repo']['repo']}}/blob/main/LICENSE
0 commit comments