Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit b082f6a

Browse files
authored
Merge branch 'master' into autosynth-googleapis
2 parents 89e0700 + 20c8376 commit b082f6a

File tree

14 files changed

+114
-63
lines changed

14 files changed

+114
-63
lines changed

.github/readme/synth.metadata/synth.metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-secretmanager.git",
7-
"sha": "5b0b3a3f8c952c9706f2da9e75bc077ff8d9f014"
7+
"sha": "8aea8aa5c780d10a9eddb7d69cbbbd7ba6849f43"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "synthtool",
1313
"remote": "https://github.com/googleapis/synthtool.git",
14-
"sha": "67f09bf301083798e7220137723222eb00b8f88a"
14+
"sha": "b259489b06b25f399768b74b8baa943991f38ea7"
1515
}
1616
}
1717
]

.github/workflows/ci.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,18 @@ jobs:
5454
with:
5555
java-version: 8
5656
- run: java -version
57-
- run: .kokoro/linkage-monitor.sh
57+
- name: Install artifacts to local Maven repository
58+
run: |
59+
source .kokoro/common.sh
60+
retry_with_backoff 3 10 \
61+
mvn install -B -V \
62+
-Dmaven.test.skip -DskipTests=true \
63+
-Dclirr.skip=true \
64+
-Denforcer.skip=true \
65+
-Dmaven.javadoc.skip=true \
66+
-Dgcloud.download.skip=true
67+
shell: bash
68+
- uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor
5869
lint:
5970
runs-on: ubuntu-latest
6071
steps:

.kokoro/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ bash .kokoro/coerce_logs.sh
110110

111111
if [[ "${ENABLE_BUILD_COP}" == "true" ]]
112112
then
113-
chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/buildcop
114-
${KOKORO_GFILE_DIR}/linux_amd64/buildcop -repo=googleapis/java-secretmanager
113+
chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot
114+
${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/java-secretmanager
115115
fi
116116

117117
echo "exiting with ${RETURN_CODE}"

.kokoro/linkage-monitor.sh

Lines changed: 0 additions & 46 deletions
This file was deleted.

.kokoro/release/publish_javadoc.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ before_action {
2626
keyname: "docuploader_service_account"
2727
}
2828
}
29-
}
29+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "STAGING_BUCKET_V2"
5+
value: "docs-staging-v2"
6+
# Production will be at: docs-staging-v2
7+
}
8+
9+
# Configure the docker image for kokoro-trampoline
10+
env_vars: {
11+
key: "TRAMPOLINE_IMAGE"
12+
value: "gcr.io/cloud-devrel-kokoro-resources/java11"
13+
}
14+
15+
env_vars: {
16+
key: "TRAMPOLINE_BUILD_FILE"
17+
value: "github/java-memcache/.kokoro/release/publish_javadoc11.sh"
18+
}
19+
20+
before_action {
21+
fetch_keystore {
22+
keystore_resource {
23+
keystore_config_id: 73713
24+
keyname: "docuploader_service_account"
25+
}
26+
}
27+
}
28+
29+
# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/<doclet name>
30+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx"
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/bin/bash
2+
# Copyright 2021 Google Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
set -eo pipefail
17+
18+
if [[ -z "${CREDENTIALS}" ]]; then
19+
CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account
20+
fi
21+
22+
if [[ -z "${STAGING_BUCKET_V2}" ]]; then
23+
echo "Need to set STAGING_BUCKET_V2 environment variable"
24+
exit 1
25+
fi
26+
27+
# work from the git root directory
28+
pushd $(dirname "$0")/../../
29+
30+
# install docuploader package
31+
python3 -m pip install gcp-docuploader
32+
33+
# compile all packages
34+
mvn clean install -B -q -DskipTests=true
35+
36+
export NAME=google-cloud-secretmanager
37+
export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
38+
39+
# V3 generates docfx yml from javadoc
40+
# generate yml
41+
mvn clean site -B -q -P docFX
42+
43+
pushd target/docfx-yml
44+
45+
# create metadata
46+
python3 -m docuploader create-metadata \
47+
--name ${NAME} \
48+
--version ${VERSION} \
49+
--language java
50+
51+
# upload yml
52+
python3 -m docuploader upload . \
53+
--credentials ${CREDENTIALS} \
54+
--staging-bucket ${STAGING_BUCKET_V2} \
55+
--destination-prefix docfx-

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
1717
<dependency>
1818
<groupId>com.google.cloud</groupId>
1919
<artifactId>libraries-bom</artifactId>
20-
<version>16.2.1</version>
20+
<version>16.3.0</version>
2121
<type>pom</type>
2222
<scope>import</scope>
2323
</dependency>
@@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies:
4646

4747
If you are using Gradle 5.x or later, add this to your dependencies
4848
```Groovy
49-
implementation platform('com.google.cloud:libraries-bom:16.2.1')
49+
implementation platform('com.google.cloud:libraries-bom:16.3.0')
5050
5151
compile 'com.google.cloud:google-cloud-secretmanager'
5252
```

google-cloud-secretmanager-bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>com.google.cloud</groupId>
1010
<artifactId>google-cloud-shared-config</artifactId>
11-
<version>0.9.4</version>
11+
<version>0.10.0</version>
1212
</parent>
1313

1414
<name>Google Cloud Secret Manager BOM</name>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>com.google.cloud</groupId>
1616
<artifactId>google-cloud-shared-config</artifactId>
17-
<version>0.9.4</version>
17+
<version>0.10.0</version>
1818
</parent>
1919

2020
<developers>

0 commit comments

Comments
 (0)