diff --git a/.github/release-please.yml b/.github/release-please.yml index 243d3a1071..e7749f0846 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -3,6 +3,7 @@ handleGHRelease: true releaseType: java-yoshi extraFiles: - README.md + - .readme-partials.yaml branches: - bumpMinorPreMajor: true handleGHRelease: true diff --git a/.readme-partials.yaml b/.readme-partials.yaml index ab591da18a..5f1cc7ed03 100644 --- a/.readme-partials.yaml +++ b/.readme-partials.yaml @@ -5,6 +5,48 @@ custom_content: | The Storage Control API creates one space to perform metadata-specific, control plane, and long-running operations apart from the Storage API. Separating these operations from the Storage API improves API standardization and lets you run faster releases. + If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: + ```xml + + + + com.google.cloud + libraries-bom + 26.37.0 + pom + import + + + + + + + com.google.cloud + google-cloud-storage-control + + ``` + + If you are using Maven without the BOM, add this to your dependencies: + + ```xml + + com.google.cloud + google-cloud-storage-control + 2.36.1-alpha + + ``` + + If you are using Gradle 5.x or later, add this to your dependencies: + ```Groovy + implementation platform('com.google.cloud:libraries-bom:26.37.0') + implementation 'com.google.cloud:google-cloud-storage-control' + ``` + If you are using Gradle without BOM, add this to your dependencies: + + ```Groovy + implementation 'com.google.cloud:google-cloud-storage-control:2.36.1-alpha' + ``` + #### Creating an authorized service object To make authenticated requests to Google Cloud Storage, you must create a service object with credentials. You can diff --git a/README.md b/README.md index 46e6873aa6..4cabaedc6f 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,48 @@ The [Storage Control API](https://cloud.google.com/storage/docs/reference/rpc/) The Storage Control API creates one space to perform metadata-specific, control plane, and long-running operations apart from the Storage API. Separating these operations from the Storage API improves API standardization and lets you run faster releases. +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: +```xml + + + + com.google.cloud + libraries-bom + 26.37.0 + pom + import + + + + + + + com.google.cloud + google-cloud-storage-control + +``` + +If you are using Maven without the BOM, add this to your dependencies: + +```xml + + com.google.cloud + google-cloud-storage-control + 2.36.1-alpha + +``` + +If you are using Gradle 5.x or later, add this to your dependencies: +```Groovy +implementation platform('com.google.cloud:libraries-bom:26.37.0') +implementation 'com.google.cloud:google-cloud-storage-control' +``` +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.cloud:google-cloud-storage-control:2.36.1-alpha' +``` + #### Creating an authorized service object To make authenticated requests to Google Cloud Storage, you must create a service object with credentials. You can