Skip to content

Commit c89fbe3

Browse files
authored
docs: README.md to have Libraries BOM usage guide (#9301)
The README files to have Libraries BOM instruction.
1 parent 7ec9e27 commit c89fbe3

151 files changed

Lines changed: 3991 additions & 658 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

java-accessapproval/README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,31 @@ Java idiomatic client for [Access Approval][product-docs].
1212
## Quickstart
1313

1414

15-
If you are using Maven, add this to your pom.xml file:
16-
<!-- {x-version-update-start:google-cloud-accessapproval:released} -->
15+
If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
16+
17+
```xml
18+
<dependencyManagement>
19+
<dependencies>
20+
<dependency>
21+
<groupId>com.google.cloud</groupId>
22+
<artifactId>libraries-bom</artifactId>
23+
<version>26.11.0</version>
24+
<type>pom</type>
25+
<scope>import</scope>
26+
</dependency>
27+
</dependencies>
28+
</dependencyManagement>
29+
30+
<dependencies>
31+
<dependency>
32+
<groupId>com.google.cloud</groupId>
33+
<artifactId>google-cloud-accessapproval</artifactId>
34+
</dependency>
35+
```
36+
37+
If you are using Maven without the BOM, add this to your dependencies:
1738

39+
<!-- {x-version-update-start:google-cloud-accessapproval:released} -->
1840

1941
```xml
2042
<dependency>
@@ -173,15 +195,15 @@ Java is a registered trademark of Oracle and/or its affiliates.
173195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
174196
[stability-image]: https://img.shields.io/badge/stability-stable-green
175197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg
176-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.14.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.15.0
177199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
178200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
179201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
180202
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
181203
[developer-console]: https://console.developers.google.com/
182204
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
183205
[cloud-cli]: https://cloud.google.com/cli
184-
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting
206+
[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md
185207
[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md
186208
[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
187209
[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE

java-accesscontextmanager/README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,31 @@ Java idiomatic client for [Identity Access Context Manager][product-docs].
1212
## Quickstart
1313

1414

15-
If you are using Maven, add this to your pom.xml file:
16-
<!-- {x-version-update-start:google-identity-accesscontextmanager:released} -->
15+
If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
16+
17+
```xml
18+
<dependencyManagement>
19+
<dependencies>
20+
<dependency>
21+
<groupId>com.google.cloud</groupId>
22+
<artifactId>libraries-bom</artifactId>
23+
<version>26.11.0</version>
24+
<type>pom</type>
25+
<scope>import</scope>
26+
</dependency>
27+
</dependencies>
28+
</dependencyManagement>
29+
30+
<dependencies>
31+
<dependency>
32+
<groupId>com.google.cloud</groupId>
33+
<artifactId>google-identity-accesscontextmanager</artifactId>
34+
</dependency>
35+
```
36+
37+
If you are using Maven without the BOM, add this to your dependencies:
1738

39+
<!-- {x-version-update-start:google-identity-accesscontextmanager:released} -->
1840

1941
```xml
2042
<dependency>
@@ -173,15 +195,15 @@ Java is a registered trademark of Oracle and/or its affiliates.
173195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
174196
[stability-image]: https://img.shields.io/badge/stability-stable-green
175197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg
176-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.14.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.15.0
177199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
178200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
179201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
180202
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
181203
[developer-console]: https://console.developers.google.com/
182204
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
183205
[cloud-cli]: https://cloud.google.com/cli
184-
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting
206+
[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md
185207
[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md
186208
[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
187209
[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE

java-advisorynotifications/README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,31 @@ Java idiomatic client for [Advisory Notifications API][product-docs].
1515
## Quickstart
1616

1717

18-
If you are using Maven, add this to your pom.xml file:
19-
<!-- {x-version-update-start:google-cloud-advisorynotifications:released} -->
18+
If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
19+
20+
```xml
21+
<dependencyManagement>
22+
<dependencies>
23+
<dependency>
24+
<groupId>com.google.cloud</groupId>
25+
<artifactId>libraries-bom</artifactId>
26+
<version>26.11.0</version>
27+
<type>pom</type>
28+
<scope>import</scope>
29+
</dependency>
30+
</dependencies>
31+
</dependencyManagement>
32+
33+
<dependencies>
34+
<dependency>
35+
<groupId>com.google.cloud</groupId>
36+
<artifactId>google-cloud-advisorynotifications</artifactId>
37+
</dependency>
38+
```
39+
40+
If you are using Maven without the BOM, add this to your dependencies:
2041

42+
<!-- {x-version-update-start:google-cloud-advisorynotifications:released} -->
2143

2244
```xml
2345
<dependency>
@@ -179,15 +201,15 @@ Java is a registered trademark of Oracle and/or its affiliates.
179201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-advisorynotifications/java11.html
180202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
181203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg
182-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.2.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.3.0
183205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
184206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
185207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
186208
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
187209
[developer-console]: https://console.developers.google.com/
188210
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
189211
[cloud-cli]: https://cloud.google.com/cli
190-
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting
212+
[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md
191213
[contributing]: https://github.com/googleapis/java-advisorynotifications/blob/main/CONTRIBUTING.md
192214
[code-of-conduct]: https://github.com/googleapis/java-advisorynotifications/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
193215
[license]: https://github.com/googleapis/java-advisorynotifications/blob/main/LICENSE

java-aiplatform/README.md

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,52 @@ Java idiomatic client for [Vertex AI][product-docs].
1212
## Quickstart
1313

1414

15-
If you are using Maven, add this to your pom.xml file:
15+
If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
1616

17+
```xml
18+
<dependencyManagement>
19+
<dependencies>
20+
<dependency>
21+
<groupId>com.google.cloud</groupId>
22+
<artifactId>libraries-bom</artifactId>
23+
<version>26.11.0</version>
24+
<type>pom</type>
25+
<scope>import</scope>
26+
</dependency>
27+
</dependencies>
28+
</dependencyManagement>
29+
30+
<dependencies>
31+
<dependency>
32+
<groupId>com.google.cloud</groupId>
33+
<artifactId>google-cloud-aiplatform</artifactId>
34+
</dependency>
35+
```
36+
37+
If you are using Maven without the BOM, add this to your dependencies:
38+
39+
<!-- {x-version-update-start:google-cloud-aiplatform:released} -->
1740

1841
```xml
1942
<dependency>
2043
<groupId>com.google.cloud</groupId>
2144
<artifactId>google-cloud-aiplatform</artifactId>
22-
<version>3.14.0</version>
45+
<version>3.15.0</version>
2346
</dependency>
2447
```
2548

2649
If you are using Gradle without BOM, add this to your dependencies:
2750

2851
```Groovy
29-
implementation 'com.google.cloud:google-cloud-aiplatform:3.14.0'
52+
implementation 'com.google.cloud:google-cloud-aiplatform:3.15.0'
3053
```
3154

3255
If you are using SBT, add this to your dependencies:
3356

3457
```Scala
35-
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.14.0"
58+
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.15.0"
3659
```
60+
<!-- {x-version-update-end} -->
3761

3862
## Authentication
3963

@@ -171,15 +195,15 @@ Java is a registered trademark of Oracle and/or its affiliates.
171195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
172196
[stability-image]: https://img.shields.io/badge/stability-stable-green
173197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg
174-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.14.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.15.0
175199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
176200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
177201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
178202
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
179203
[developer-console]: https://console.developers.google.com/
180204
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
181205
[cloud-cli]: https://cloud.google.com/cli
182-
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting
206+
[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md
183207
[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md
184208
[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
185209
[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE

java-alloydb/README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,31 @@ Java idiomatic client for [AlloyDB][product-docs].
1515
## Quickstart
1616

1717

18-
If you are using Maven, add this to your pom.xml file:
19-
<!-- {x-version-update-start:google-cloud-alloydb:released} -->
18+
If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
19+
20+
```xml
21+
<dependencyManagement>
22+
<dependencies>
23+
<dependency>
24+
<groupId>com.google.cloud</groupId>
25+
<artifactId>libraries-bom</artifactId>
26+
<version>26.11.0</version>
27+
<type>pom</type>
28+
<scope>import</scope>
29+
</dependency>
30+
</dependencies>
31+
</dependencyManagement>
32+
33+
<dependencies>
34+
<dependency>
35+
<groupId>com.google.cloud</groupId>
36+
<artifactId>google-cloud-alloydb</artifactId>
37+
</dependency>
38+
```
39+
40+
If you are using Maven without the BOM, add this to your dependencies:
2041

42+
<!-- {x-version-update-start:google-cloud-alloydb:released} -->
2143

2244
```xml
2345
<dependency>
@@ -179,15 +201,15 @@ Java is a registered trademark of Oracle and/or its affiliates.
179201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-alloydb/java11.html
180202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
181203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg
182-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.2.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.3.0
183205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
184206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
185207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
186208
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
187209
[developer-console]: https://console.developers.google.com/
188210
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
189211
[cloud-cli]: https://cloud.google.com/cli
190-
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting
212+
[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md
191213
[contributing]: https://github.com/googleapis/java-alloydb/blob/main/CONTRIBUTING.md
192214
[code-of-conduct]: https://github.com/googleapis/java-alloydb/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
193215
[license]: https://github.com/googleapis/java-alloydb/blob/main/LICENSE

java-analytics-admin/README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,31 @@ Java idiomatic client for [Analytics Admin][product-docs].
1515
## Quickstart
1616

1717

18-
If you are using Maven, add this to your pom.xml file:
19-
<!-- {x-version-update-start:google-analytics-admin:released} -->
18+
If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
19+
20+
```xml
21+
<dependencyManagement>
22+
<dependencies>
23+
<dependency>
24+
<groupId>com.google.cloud</groupId>
25+
<artifactId>libraries-bom</artifactId>
26+
<version>26.11.0</version>
27+
<type>pom</type>
28+
<scope>import</scope>
29+
</dependency>
30+
</dependencies>
31+
</dependencyManagement>
32+
33+
<dependencies>
34+
<dependency>
35+
<groupId>com.google.analytics</groupId>
36+
<artifactId>google-analytics-admin</artifactId>
37+
</dependency>
38+
```
39+
40+
If you are using Maven without the BOM, add this to your dependencies:
2041

42+
<!-- {x-version-update-start:google-analytics-admin:released} -->
2143

2244
```xml
2345
<dependency>
@@ -179,15 +201,15 @@ Java is a registered trademark of Oracle and/or its affiliates.
179201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
180202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
181203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg
182-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.23.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.24.0
183205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
184206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
185207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
186208
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
187209
[developer-console]: https://console.developers.google.com/
188210
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
189211
[cloud-cli]: https://cloud.google.com/cli
190-
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting
212+
[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md
191213
[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md
192214
[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
193215
[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE

java-analytics-data/README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,31 @@ Java idiomatic client for [Analytics Data][product-docs].
1515
## Quickstart
1616

1717

18-
If you are using Maven, add this to your pom.xml file:
19-
<!-- {x-version-update-start:google-analytics-data:released} -->
18+
If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
19+
20+
```xml
21+
<dependencyManagement>
22+
<dependencies>
23+
<dependency>
24+
<groupId>com.google.cloud</groupId>
25+
<artifactId>libraries-bom</artifactId>
26+
<version>26.11.0</version>
27+
<type>pom</type>
28+
<scope>import</scope>
29+
</dependency>
30+
</dependencies>
31+
</dependencyManagement>
32+
33+
<dependencies>
34+
<dependency>
35+
<groupId>com.google.analytics</groupId>
36+
<artifactId>google-analytics-data</artifactId>
37+
</dependency>
38+
```
39+
40+
If you are using Maven without the BOM, add this to your dependencies:
2041

42+
<!-- {x-version-update-start:google-analytics-data:released} -->
2143

2244
```xml
2345
<dependency>
@@ -179,15 +201,15 @@ Java is a registered trademark of Oracle and/or its affiliates.
179201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
180202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
181203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg
182-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.24.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.25.0
183205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
184206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
185207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
186208
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
187209
[developer-console]: https://console.developers.google.com/
188210
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
189211
[cloud-cli]: https://cloud.google.com/cli
190-
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting
212+
[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md
191213
[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md
192214
[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
193215
[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE

0 commit comments

Comments
 (0)