Skip to content

Commit

Permalink
Update README to suggest importing BOM (#3269)
Browse files Browse the repository at this point in the history
* Import BOM

@garrettjonesgoogle

* google-cloud-bom

* Update README.md
  • Loading branch information
elharo authored and chingor13 committed Nov 9, 2018
1 parent c6e2d63 commit c43e377
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,35 @@ This library supports the following Google Cloud Platform services with clients
Quickstart
----------

To call any of the supported Google Cloud Services simply add a corresponding client library artifact as a dependency to your project. The following instructions use `google-cloud-storage` as an example (specific instructions can be found in the README of each client).
To call any of the supported Google Cloud Services simply add a corresponding client library
artifact as a dependency to your project. The following instructions use `google-cloud-storage`
as an example (specific instructions can be found in the README of each client).

[//]: # ({x-version-update-start:google-cloud-storage:released})
[//]: # ({x-version-update-start:google-cloud-bom:released})
If you are using Maven, add this to your pom.xml file
```xml
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
<version>1.52.0</version>
</dependency>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-bom</artifactId>
<version>0.70.0-alpha</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
</dependency>
...
```
[//]: # ({x-version-update-end})

[//]: # ({x-version-update-start:google-cloud-storage:released})
If you are using Gradle, add this to your dependencies
```Groovy
compile 'com.google.cloud:google-cloud-storage:1.52.0'
Expand Down

0 comments on commit c43e377

Please sign in to comment.