Skip to content

Commit 065b87a

Browse files
committed
Merge branch 'googleapis-main'
2 parents fc78945 + bde220e commit 065b87a

File tree

54 files changed

+526
-265
lines changed

Some content is hidden

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

54 files changed

+526
-265
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
docker:
2+
image: gcr.io/repo-automation-bots/owlbot-java:latest
3+
digest: sha256:14ecf64ec36f67c7bf04e3dc0f68eafcc01df3955121c38862b695e2ae7515d8
Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 Google LLC
1+
# Copyright 2021 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.
@@ -11,14 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
"""This script is used to synthesize generated parts of this library."""
1514

16-
import synthtool.languages.java as java
17-
18-
java.common_templates(excludes=[
19-
"README.md",
20-
"java.header",
21-
"checkstyle.xml",
22-
"license-checks.xml",
23-
".github/workflows/samples.yaml",
24-
])
15+
docker:
16+
image: "gcr.io/repo-automation-bots/owlbot-java:latest"

.github/release-please.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ branches:
66
handleGHRelease: true
77
releaseType: java-lts
88
branch: 1.39.2-sp
9+
- bumpMinorPreMajor: true
10+
handleGHRelease: true
11+
releaseType: java-backport
12+
branch: 1.40.x

.github/sync-repo-settings.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ branchProtectionRules:
3030
- lint
3131
- clirr
3232
- cla/google
33+
- pattern: 1.40.x
34+
isAdminEnforced: true
35+
requiredApprovingReviewCount: 1
36+
requiresCodeOwnerReviews: true
37+
requiresStrictStatusChecks: false
38+
requiredStatusCheckContexts:
39+
- units (8)
40+
- units (11)
41+
- windows
42+
- dependencies (8)
43+
- dependencies (11)
44+
- lint
45+
- clirr
46+
- cla/google
3347
permissionRules:
3448
- team: yoshi-admins
3549
permission: admin

.github/workflows/ci.yaml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ jobs:
88
units:
99
runs-on: ubuntu-latest
1010
strategy:
11+
fail-fast: false
1112
matrix:
12-
java: [8, 11]
13+
java: [8, 11, 17]
1314
steps:
1415
- uses: actions/checkout@v2
15-
- uses: stCarolas/setup-maven@v4
16-
with:
17-
maven-version: 3.8.1
18-
- uses: actions/setup-java@v1
16+
- uses: actions/setup-java@v2
1917
with:
18+
distribution: zulu
2019
java-version: ${{matrix.java}}
2120
- run: java -version
2221
- run: .kokoro/build.sh
@@ -26,11 +25,9 @@ jobs:
2625
runs-on: windows-latest
2726
steps:
2827
- uses: actions/checkout@v2
29-
- uses: stCarolas/setup-maven@v4
30-
with:
31-
maven-version: 3.8.1
32-
- uses: actions/setup-java@v1
28+
- uses: actions/setup-java@v2
3329
with:
30+
distribution: zulu
3431
java-version: 8
3532
- run: java -version
3633
- run: .kokoro/build.bat
@@ -40,27 +37,23 @@ jobs:
4037
runs-on: ubuntu-latest
4138
strategy:
4239
matrix:
43-
java: [8, 11]
40+
java: [8, 11, 17]
4441
steps:
4542
- uses: actions/checkout@v2
46-
- uses: stCarolas/setup-maven@v4
47-
with:
48-
maven-version: 3.8.1
49-
- uses: actions/setup-java@v1
43+
- uses: actions/setup-java@v2
5044
with:
45+
distribution: zulu
5146
java-version: ${{matrix.java}}
5247
- run: java -version
5348
- run: .kokoro/dependencies.sh
5449
lint:
5550
runs-on: ubuntu-latest
5651
steps:
5752
- uses: actions/checkout@v2
58-
- uses: stCarolas/setup-maven@v4
53+
- uses: actions/setup-java@v2
5954
with:
60-
maven-version: 3.8.1
61-
- uses: actions/setup-java@v1
62-
with:
63-
java-version: 8
55+
distribution: zulu
56+
java-version: 11
6457
- run: java -version
6558
- run: .kokoro/build.sh
6659
env:
@@ -69,11 +62,9 @@ jobs:
6962
runs-on: ubuntu-latest
7063
steps:
7164
- uses: actions/checkout@v2
72-
- uses: stCarolas/setup-maven@v4
73-
with:
74-
maven-version: 3.8.1
75-
- uses: actions/setup-java@v1
65+
- uses: actions/setup-java@v2
7666
with:
67+
distribution: zulu
7768
java-version: 8
7869
- run: java -version
7970
- run: .kokoro/build.sh

.kokoro/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ integration)
6969
verify
7070
RETURN_CODE=$?
7171
;;
72+
graalvm)
73+
# Run Unit and Integration Tests with Native Image
74+
mvn test -Pnative -Penable-integration-tests
75+
RETURN_CODE=$?
76+
;;
7277
samples)
7378
SAMPLES_DIR=samples
7479
# only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.

.kokoro/dependencies.sh

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,26 @@ source ${scriptDir}/common.sh
2828
java -version
2929
echo $JOB_TYPE
3030

31-
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
31+
function determineMavenOpts() {
32+
local javaVersion=$(
33+
# filter down to the version line, then pull out the version between quotes,
34+
# then trim the version number down to its minimal number (removing any
35+
# update or suffix number).
36+
java -version 2>&1 | grep "version" \
37+
| sed -E 's/^.*"(.*?)".*$/\1/g' \
38+
| sed -E 's/^(1\.[0-9]\.0).*$/\1/g'
39+
)
40+
41+
if [[ $javaVersion == 17* ]]
42+
then
43+
# MaxPermSize is no longer supported as of jdk 17
44+
echo -n "-Xmx1024m"
45+
else
46+
echo -n "-Xmx1024m -XX:MaxPermSize=128m"
47+
fi
48+
}
49+
50+
export MAVEN_OPTS=$(determineMavenOpts)
3251

3352
# this should run maven enforcer
3453
retry_with_backoff 3 10 \

.kokoro/presubmit/graalvm-native.cfg

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Configure the docker image for kokoro-trampoline.
4+
env_vars: {
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/graalvm"
7+
}
8+
9+
env_vars: {
10+
key: "JOB_TYPE"
11+
value: "graalvm"
12+
}
13+
14+
# TODO: remove this after we've migrated all tests and scripts
15+
env_vars: {
16+
key: "GCLOUD_PROJECT"
17+
value: "gcloud-devel"
18+
}
19+
20+
env_vars: {
21+
key: "GOOGLE_CLOUD_PROJECT"
22+
value: "gcloud-devel"
23+
}
24+
25+
env_vars: {
26+
key: "GOOGLE_APPLICATION_CREDENTIALS"
27+
value: "secret_manager/java-it-service-account"
28+
}
29+
30+
env_vars: {
31+
key: "SECRET_MANAGER_KEYS"
32+
value: "java-it-service-account"
33+
}

.kokoro/release/publish_javadoc11.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@ mvn clean install -B -q -DskipTests=true
3636
export NAME=google-http-client
3737
export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
3838

39-
# V3 generates docfx yml from javadoc
40-
# generate yml
41-
mvn clean site -B -q -P docFX
42-
43-
# copy README to docfx-yml dir and rename index.md
44-
cp README.md target/docfx-yml/index.md
45-
# copy CHANGELOG to docfx-yml dir and rename history.md
39+
# cloud RAD generation
40+
mvn clean javadoc:aggregate -B -q -P docFX
41+
# include CHANGELOG
4642
cp CHANGELOG.md target/docfx-yml/history.md
4743

4844
pushd target/docfx-yml

.repo-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "google-http-client",
33
"name_pretty": "Google HTTP Java Client",
4-
"client_documentation": "https://googleapis.dev/java/google-http-client/latest/",
4+
"client_documentation": "https://cloud.google.com/java/docs/reference/google-http-client/latest/history",
55
"release_level": "ga",
66
"language": "java",
77
"repo": "googleapis/google-http-java-client",

0 commit comments

Comments
 (0)