Skip to content

Commit 253f170

Browse files
athakorelharo
authored andcommitted
docs: reference libraries-bom in docs (googleapis#6758)
1 parent e4ff58b commit 253f170

File tree

1 file changed

+19
-1
lines changed
  • google-cloud-clients/google-cloud-spanner

1 file changed

+19
-1
lines changed

google-cloud-clients/google-cloud-spanner/README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,27 @@ Java idiomatic client for [Cloud Spanner][cloud-spanner].
1010
- [Client Library Documentation][spanner-client-lib-docs]
1111

1212
## Quickstart
13+
If you are using Maven with a BOM, add this to your pom.xml file.
14+
```xml
15+
<dependencyManagement>
16+
<dependencies>
17+
<dependency>
18+
<groupId>com.google.cloud</groupId>
19+
<artifactId>libraries-bom</artifactId>
20+
<version>2.8.0</version>
21+
<type>pom</type>
22+
<scope>import</scope>
23+
</dependency>
24+
</dependencies>
25+
</dependencyManagement>
1326

27+
<dependency>
28+
<groupId>com.google.cloud</groupId>
29+
<artifactId>google-cloud-spanner</artifactId>
30+
</dependency>
31+
```
1432
[//]: # ({x-version-update-start:google-cloud-spanner:released})
15-
If you are using Maven, add this to your pom.xml file
33+
If you are using Maven without a BOM, add this to your dependencies.
1634
```xml
1735
<dependency>
1836
<groupId>com.google.cloud</groupId>

0 commit comments

Comments
 (0)