diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 1830d09a..b6721276 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -1,3 +1,3 @@
docker:
image: gcr.io/repo-automation-bots/owlbot-java:latest
- digest: sha256:8e27e5a7297b40eca3ab46ae67f10c575813a85c673839030aa161d0818f3a24
+ digest: sha256:8c50e7bab0ae5ad41ee29420b558542637104500f6256b8fe74282b0cf6144db
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 30fdb7b9..af6322b0 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -4,7 +4,9 @@
# For syntax help see:
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
-* @googleapis/yoshi-java
+# The @googleapis/cicd is the default owner for changes in this repo
+* @googleapis/yoshi-java @googleapis/cicd
+**/*.java @googleapis/cicd
# The java-samples-reviewers team is the default owner for samples changes
samples/**/*.java @googleapis/java-samples-reviewers
diff --git a/.github/readme/synth.py b/.github/readme/synth.py
deleted file mode 100644
index 7b48cc28..00000000
--- a/.github/readme/synth.py
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright 2020 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This script is used to synthesize generated the README for this library."""
-
-from synthtool.languages import java
-
-java.custom_templates(["java_library/README.md"])
diff --git a/.github/release-trigger.yml b/.github/release-trigger.yml
new file mode 100644
index 00000000..d4ca9418
--- /dev/null
+++ b/.github/release-trigger.yml
@@ -0,0 +1 @@
+enabled: true
diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml
index ffd39f6f..32e0ea5a 100644
--- a/.github/sync-repo-settings.yaml
+++ b/.github/sync-repo-settings.yaml
@@ -10,7 +10,6 @@ branchProtectionRules:
requiredStatusCheckContexts:
- dependencies (8)
- dependencies (11)
- - linkage-monitor
- lint
- clirr
- units (8)
@@ -26,7 +25,6 @@ branchProtectionRules:
requiredStatusCheckContexts:
- dependencies (8)
- dependencies (11)
- - linkage-monitor
- lint
- clirr
- units (7)
diff --git a/.github/trusted-contribution.yml b/.github/trusted-contribution.yml
index f247d5c7..a0ba1f7d 100644
--- a/.github/trusted-contribution.yml
+++ b/.github/trusted-contribution.yml
@@ -1,2 +1,3 @@
trustedContributors:
-- renovate-bot
\ No newline at end of file
+- renovate-bot
+- gcf-owl-bot[bot]
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 65ae6ecd..3becb5c0 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -12,6 +12,9 @@ jobs:
java: [8, 11]
steps:
- uses: actions/checkout@v2
+ - uses: stCarolas/setup-maven@v4
+ with:
+ maven-version: 3.8.1
- uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}
@@ -23,6 +26,9 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
+ - uses: stCarolas/setup-maven@v4
+ with:
+ maven-version: 3.8.1
- uses: actions/setup-java@v1
with:
java-version: 8
@@ -37,28 +43,21 @@ jobs:
java: [8, 11]
steps:
- uses: actions/checkout@v2
+ - uses: stCarolas/setup-maven@v4
+ with:
+ maven-version: 3.8.1
- uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}
- run: java -version
- run: .kokoro/dependencies.sh
- linkage-monitor:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-java@v1
- with:
- java-version: 8
- - run: java -version
- - name: Install artifacts to local Maven repository
- run: .kokoro/build.sh
- shell: bash
- - name: Validate any conflicts with regard to com.google.cloud:libraries-bom (latest release)
- uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+ - uses: stCarolas/setup-maven@v4
+ with:
+ maven-version: 3.8.1
- uses: actions/setup-java@v1
with:
java-version: 8
@@ -70,6 +69,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+ - uses: stCarolas/setup-maven@v4
+ with:
+ maven-version: 3.8.1
- uses: actions/setup-java@v1
with:
java-version: 8
diff --git a/.kokoro/continuous/readme.cfg b/.kokoro/continuous/readme.cfg
deleted file mode 100644
index 84ce0f09..00000000
--- a/.kokoro/continuous/readme.cfg
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 2020 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# Format: //devtools/kokoro/config/proto/build.proto
-
-env_vars: {
- key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
-}
-
-env_vars: {
- key: "TRAMPOLINE_BUILD_FILE"
- value: "github/java-binary-authorization/.kokoro/readme.sh"
-}
-
-# Build logs will be here
-action {
- define_artifacts {
- regex: "**/*sponge_log.xml"
- regex: "**/*sponge_log.log"
- }
-}
-
-# The github token is stored here.
-before_action {
- fetch_keystore {
- keystore_resource {
- keystore_config_id: 73713
- keyname: "yoshi-automation-github-key"
- # TODO(theacodes): remove this after secrets have globally propagated
- backend_type: FASTCONFIGPUSH
- }
- }
-}
-
-# Common env vars for all repositories and builds.
-env_vars: {
- key: "GITHUB_USER"
- value: "yoshi-automation"
-}
-env_vars: {
- key: "GITHUB_EMAIL"
- value: "yoshi-automation@google.com"
-}
diff --git a/.kokoro/release/common.sh b/.kokoro/release/common.sh
index 6e3f6599..7f78ee41 100755
--- a/.kokoro/release/common.sh
+++ b/.kokoro/release/common.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 2018 Google Inc.
+# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff --git a/.kokoro/release/drop.sh b/.kokoro/release/drop.sh
index 5c4551ef..742ec1a8 100755
--- a/.kokoro/release/drop.sh
+++ b/.kokoro/release/drop.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 2018 Google Inc.
+# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff --git a/.kokoro/release/promote.sh b/.kokoro/release/promote.sh
index 1fa95fa5..3cac3d8a 100755
--- a/.kokoro/release/promote.sh
+++ b/.kokoro/release/promote.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 2018 Google Inc.
+# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh
index 43692fb6..1c3669e8 100755
--- a/.kokoro/release/publish_javadoc.sh
+++ b/.kokoro/release/publish_javadoc.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 2019 Google Inc.
+# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh
index 9e556a99..b08ffaab 100755
--- a/.kokoro/release/publish_javadoc11.sh
+++ b/.kokoro/release/publish_javadoc11.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 2021 Google Inc.
+# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh
index 8a103384..77dc4e8f 100755
--- a/.kokoro/release/stage.sh
+++ b/.kokoro/release/stage.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 2018 Google Inc.
+# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh
index 9da0f839..8b69b793 100644
--- a/.kokoro/trampoline.sh
+++ b/.kokoro/trampoline.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 2018 Google Inc.
+# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff --git a/.repo-metadata.json b/.repo-metadata.json
index a8d9cf92..fc5c7b60 100644
--- a/.repo-metadata.json
+++ b/.repo-metadata.json
@@ -12,5 +12,6 @@
"distribution_name": "com.google.cloud:google-cloud-binary-authorization",
"api_id": "binary-authorization.googleapis.com",
"requires_billing": true,
- "library_type": "GAPIC_AUTO"
-}
\ No newline at end of file
+ "library_type": "GAPIC_AUTO",
+ "codeowner_team": "@googleapis/cicd"
+}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 652aa3a0..c5c14191 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,17 @@
# Changelog
+## [0.3.0](https://www.github.com/googleapis/java-binary-authorization/compare/v0.2.2...v0.3.0) (2021-09-10)
+
+
+### Features
+
+* Remove use of deprecated gradle command in java README ([#1196](https://www.github.com/googleapis/java-binary-authorization/issues/1196)) ([#65](https://www.github.com/googleapis/java-binary-authorization/issues/65)) ([8cb0da3](https://www.github.com/googleapis/java-binary-authorization/commit/8cb0da37f9c387a79c9255bca3402ec22643ded8))
+
+
+### Dependencies
+
+* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#69](https://www.github.com/googleapis/java-binary-authorization/issues/69)) ([4843a90](https://www.github.com/googleapis/java-binary-authorization/commit/4843a904a0e402ed6ae9677e940faec9f1d1f71e))
+
### [0.2.2](https://www.github.com/googleapis/java-binary-authorization/compare/v0.2.1...v0.2.2) (2021-08-23)
diff --git a/README.md b/README.md
index 1593b4be..989c84c9 100644
--- a/README.md
+++ b/README.md
@@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file:
com.google.cloud
google-cloud-binary-authorization
- 0.2.1
+ 0.2.2
```
If you are using Gradle without BOM, add this to your dependencies
```Groovy
-compile 'com.google.cloud:google-cloud-binary-authorization:0.2.1'
+implementation 'com.google.cloud:google-cloud-binary-authorization:0.2.2'
```
If you are using SBT, add this to your dependencies
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "0.2.1"
+libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "0.2.2"
```
## Authentication
diff --git a/google-cloud-binary-authorization-bom/pom.xml b/google-cloud-binary-authorization-bom/pom.xml
index 7ebef903..4a7a9e24 100644
--- a/google-cloud-binary-authorization-bom/pom.xml
+++ b/google-cloud-binary-authorization-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-binary-authorization-bom
- 0.2.2
+ 0.3.0
pom
com.google.cloud
@@ -56,17 +56,17 @@
com.google.cloud
google-cloud-binary-authorization
- 0.2.2
+ 0.3.0
com.google.api.grpc
grpc-google-cloud-binary-authorization-v1beta1
- 0.2.2
+ 0.3.0
com.google.api.grpc
proto-google-cloud-binary-authorization-v1beta1
- 0.2.2
+ 0.3.0
diff --git a/google-cloud-binary-authorization/pom.xml b/google-cloud-binary-authorization/pom.xml
index 593413c8..3bc62790 100644
--- a/google-cloud-binary-authorization/pom.xml
+++ b/google-cloud-binary-authorization/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-binary-authorization
- 0.2.2
+ 0.3.0
jar
Google Binary Authorization
https://github.com/googleapis/java-binary-authorization
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-binary-authorization-parent
- 0.2.2
+ 0.3.0
google-cloud-binary-authorization
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java
index c7ff00a5..0a2c0f4c 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java
@@ -236,7 +236,9 @@ public static List getDefaultServiceScopes() {
/** Returns a builder for the default credentials for this service. */
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
- return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
+ return GoogleCredentialsProvider.newBuilder()
+ .setScopesToApply(DEFAULT_SERVICE_SCOPES)
+ .setUseJwtAccessWithScope(true);
}
/** Returns a builder for the default ChannelProvider for this service. */
diff --git a/grpc-google-cloud-binary-authorization-v1beta1/pom.xml b/grpc-google-cloud-binary-authorization-v1beta1/pom.xml
index c9401f8c..cc54e56f 100644
--- a/grpc-google-cloud-binary-authorization-v1beta1/pom.xml
+++ b/grpc-google-cloud-binary-authorization-v1beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-binary-authorization-v1beta1
- 0.2.2
+ 0.3.0
grpc-google-cloud-binary-authorization-v1beta1
GRPC library for google-cloud-binary-authorization
com.google.cloud
google-cloud-binary-authorization-parent
- 0.2.2
+ 0.3.0
diff --git a/pom.xml b/pom.xml
index 508522b4..cadf5d9a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-binary-authorization-parent
pom
- 0.2.2
+ 0.3.0
Google Binary Authorization Parent
https://github.com/googleapis/java-binary-authorization
@@ -60,23 +60,23 @@
com.google.cloud
google-cloud-binary-authorization
- 0.2.2
+ 0.3.0
com.google.api.grpc
grpc-google-cloud-binary-authorization-v1beta1
- 0.2.2
+ 0.3.0
com.google.api.grpc
proto-google-cloud-binary-authorization-v1beta1
- 0.2.2
+ 0.3.0
com.google.cloud
google-cloud-shared-dependencies
- 2.1.0
+ 2.2.0
pom
import
diff --git a/proto-google-cloud-binary-authorization-v1beta1/pom.xml b/proto-google-cloud-binary-authorization-v1beta1/pom.xml
index 34164a77..21d1abbe 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/pom.xml
+++ b/proto-google-cloud-binary-authorization-v1beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-binary-authorization-v1beta1
- 0.2.2
+ 0.3.0
proto-google-cloud-binary-authorization-v1beta1
Proto library for google-cloud-binary-authorization
com.google.cloud
google-cloud-binary-authorization-parent
- 0.2.2
+ 0.3.0
diff --git a/renovate.json b/renovate.json
index 8f1535f2..4ee15828 100644
--- a/renovate.json
+++ b/renovate.json
@@ -50,7 +50,8 @@
"^junit:junit",
"^com.google.truth:truth",
"^org.mockito:mockito-core",
- "^org.objenesis:objenesis"
+ "^org.objenesis:objenesis",
+ "^com.google.cloud:google-cloud-conformance-tests"
],
"semanticCommitType": "test",
"semanticCommitScope": "deps"
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 565a891d..14e27192 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
com.google.cloud
google-cloud-binary-authorization
- 0.1.1
+ 0.2.2
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 10db73d1..b43bf05a 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-binary-authorization
- 0.1.1
+ 0.2.2
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 1a1401ff..9161fbc8 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-binary-authorization
- 0.1.1
+ 0.2.2
diff --git a/versions.txt b/versions.txt
index 067e7530..c0656e3b 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,6 +1,6 @@
# Format:
# module:released-version:current-version
-google-cloud-binary-authorization:0.2.2:0.2.2
-grpc-google-cloud-binary-authorization-v1beta1:0.2.2:0.2.2
-proto-google-cloud-binary-authorization-v1beta1:0.2.2:0.2.2
+google-cloud-binary-authorization:0.3.0:0.3.0
+grpc-google-cloud-binary-authorization-v1beta1:0.3.0:0.3.0
+proto-google-cloud-binary-authorization-v1beta1:0.3.0:0.3.0