Skip to content

Commit ea53f06

Browse files
committed
add instructions for libraries-bom
1 parent 3db0e34 commit ea53f06

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,29 @@ credentials as well as utility methods to create them and to get Application Def
5050

5151
## Quickstart
5252

53+
### Alternative: using `java-libraries-bom`
54+
If your use case is to enable authentication for a GAPIC library such as `google-cloud-datastore`,
55+
you may want simply add `libraries-bom`, which automatically imports the auth bom, to your pom.xml
56+
as follows:
57+
58+
[//]: # ({x-version-update-start:google-auth-library-bom:released})
59+
```xml
60+
<dependencyManagement>
61+
<dependencies>
62+
<dependency>
63+
<groupId>com.google.cloud</groupId>
64+
<artifactId>libraries-bom</artifactId>
65+
<version>26.53.0</version>
66+
<type>pom</type>
67+
<scope>import</scope>
68+
</dependency>
69+
</dependencies>
70+
</dependencyManagement>
71+
```
72+
73+
Otherwise, if you don't plan using libraries-bom, see the next section on
74+
_Google Auth Library Bill of Materials_.
75+
5376
### Using Maven
5477

5578
#### Google Auth Library Bill of Materials

0 commit comments

Comments
 (0)