Skip to content

Commit

Permalink
add instructions for libraries-bom
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomarquezp committed Jan 17, 2025
1 parent 3db0e34 commit ea53f06
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,29 @@ credentials as well as utility methods to create them and to get Application Def

## Quickstart

### Alternative: using `java-libraries-bom`
If your use case is to enable authentication for a GAPIC library such as `google-cloud-datastore`,
you may want simply add `libraries-bom`, which automatically imports the auth bom, to your pom.xml
as follows:

[//]: # ({x-version-update-start:google-auth-library-bom:released})
```xml
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.53.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
```

Otherwise, if you don't plan using libraries-bom, see the next section on
_Google Auth Library Bill of Materials_.

### Using Maven

#### Google Auth Library Bill of Materials
Expand Down

0 comments on commit ea53f06

Please sign in to comment.