Skip to content

Commit f2f219b

Browse files
committed
Merge branch 'main' of github.com:googleapis/google-http-java-client
2 parents 44b7b2f + 84216c5 commit f2f219b

File tree

42 files changed

+748
-152
lines changed

Some content is hidden

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

42 files changed

+748
-152
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 Google LLC
1+
# Copyright 2023 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,5 +13,4 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
16-
digest: sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74
17-
# created: 2022-05-19T15:12:45.278246753Z
16+
digest: sha256:e62f3ea524b11c1cd6ff7f80362736d86c0056631346b5b106a421686fce2726

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88

99
# The java-samples-reviewers team is the default owner for samples changes
1010
samples/**/*.java @googleapis/java-samples-reviewers
11+
12+
# Generated snippets should not be owned by samples reviewers
13+
samples/snippets/generated/ @googleapis/yoshi-java

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "maven"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
# Disable version updates for Maven dependencies
8+
open-pull-requests-limit: 0
9+
- package-ecosystem: "pip"
10+
directory: "/"
11+
schedule:
12+
interval: "daily"
13+
# Disable version updates for pip dependencies
14+
open-pull-requests-limit: 0

.github/release-please.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ branches:
1414
handleGHRelease: true
1515
releaseType: java-backport
1616
branch: 1.41.x
17+
- bumpMinorPreMajor: true
18+
handleGHRelease: true
19+
releaseType: java-backport
20+
branch: 1.42.x

.github/sync-repo-settings.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,19 @@ branchProtectionRules:
5656
- dependencies (11)
5757
- clirr
5858
- cla/google
59+
- pattern: 1.42.x
60+
isAdminEnforced: true
61+
requiredApprovingReviewCount: 1
62+
requiresCodeOwnerReviews: true
63+
requiresStrictStatusChecks: false
64+
requiredStatusCheckContexts:
65+
- units (8)
66+
- units (11)
67+
- windows
68+
- dependencies (8)
69+
- dependencies (11)
70+
- clirr
71+
- cla/google
5972
permissionRules:
6073
- team: yoshi-admins
6174
permission: admin

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
windows:
4040
runs-on: windows-latest
4141
steps:
42+
- name: Support longpaths
43+
run: git config --system core.longpaths true
4244
- uses: actions/checkout@v3
4345
- uses: actions/setup-java@v3
4446
with:

.github/workflows/downstream.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
- workflow-executions
134134
- workflows
135135
steps:
136-
- uses: actions/checkout@v2
136+
- uses: actions/checkout@v3
137137
- uses: actions/setup-java@v3
138138
with:
139139
distribution: zulu

.kokoro/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ integration)
7171
;;
7272
graalvm)
7373
# Run Unit and Integration Tests with Native Image
74-
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test
74+
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
7575
RETURN_CODE=$?
7676
;;
7777
graalvm17)
7878
# Run Unit and Integration Tests with Native Image
79-
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test
79+
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
8080
RETURN_CODE=$?
8181
;;
8282
samples)

.kokoro/common.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,6 @@ function retry_with_backoff {
5555
## Helper functionss
5656
function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; }
5757
function msg() { println "$*" >&2; }
58-
function println() { printf '%s\n' "$(now) $*"; }
58+
function println() { printf '%s\n' "$(now) $*"; }
59+
60+
## Helper comment to trigger updated repo dependency release

.kokoro/dependencies.sh

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -57,54 +57,3 @@ retry_with_backoff 3 10 \
5757
-Dclirr.skip=true
5858

5959
mvn -B dependency:analyze -DfailOnWarning=true
60-
61-
echo "****************** DEPENDENCY LIST COMPLETENESS CHECK *******************"
62-
## Run dependency list completeness check
63-
function completenessCheck() {
64-
# Output dep list with compile scope generated using the original pom
65-
# Running mvn dependency:list on Java versions that support modules will also include the module of the dependency.
66-
# This is stripped from the output as it is not present in the flattened pom.
67-
# Only dependencies with 'compile' or 'runtime' scope are included from original dependency list.
68-
msg "Generating dependency list using original pom..."
69-
mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt
70-
71-
# Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes)
72-
msg "Generating dependency list using flattened pom..."
73-
mvn dependency:list -f .flattened-pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt
74-
75-
# Compare two dependency lists
76-
msg "Comparing dependency lists..."
77-
diff .org-list.txt .new-list.txt >.diff.txt
78-
if [[ $? == 0 ]]
79-
then
80-
msg "Success. No diff!"
81-
else
82-
msg "Diff found. See below: "
83-
msg "You can also check .diff.txt file located in $1."
84-
cat .diff.txt
85-
return 1
86-
fi
87-
}
88-
89-
# Allow failures to continue running the script
90-
set +e
91-
92-
error_count=0
93-
for path in **/.flattened-pom.xml
94-
do
95-
# Check flattened pom in each dir that contains it for completeness
96-
dir=$(dirname "$path")
97-
pushd "$dir"
98-
completenessCheck "$dir"
99-
error_count=$(($error_count + $?))
100-
popd
101-
done
102-
103-
if [[ $error_count == 0 ]]
104-
then
105-
msg "All checks passed."
106-
exit 0
107-
else
108-
msg "Errors found. See log statements above."
109-
exit 1
110-
fi

0 commit comments

Comments
 (0)