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

Commit

Permalink
chore: convert to owlbot (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neenu1995 committed May 17, 2021
1 parent aa776f6 commit a48ce80
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 52 deletions.
3 changes: 3 additions & 0 deletions .github/.OwlBot.lock.yaml
@@ -0,0 +1,3 @@
docker:
digest: sha256:af35098ce0a91b8c82091230f72e0fda6c16c382dfe99eebbb9c5070c9a08761
image: gcr.io/repo-automation-bots/owlbot-java:latest
29 changes: 29 additions & 0 deletions .github/.OwlBot.yaml
@@ -0,0 +1,29 @@
# 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.
# 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.

docker:
image: "gcr.io/repo-automation-bots/owlbot-java:latest"

deep-remove-regex:
- "/grpc-google-.*/src"
- "/proto-google-.*/src"
- "/google-.*/src"

deep-copy-regex:
- source: "/google/cloud/servicedirectory/(v.*)/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/$1/proto-google-cloud-servicedirectory-$1/src"
- source: "/google/cloud/servicedirectory/(v.*)/.*-java/grpc-google-.*/src"
dest: "/owl-bot-staging/$1/grpc-google-cloud-servicedirectory-$1/src"
- source: "/google/cloud/servicedirectory/(v.*)/.*-java/gapic-google-.*/src"
dest: "/owl-bot-staging/$1/google-cloud-servicedirectory/src"
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Expand Up @@ -19,6 +19,10 @@ jobs:
- run: .kokoro/build.sh
env:
JOB_TYPE: test
- name: coverage
uses: codecov/codecov-action@v1
with:
name: actions ${{matrix.java}}
windows:
runs-on: windows-latest
steps:
Expand Down Expand Up @@ -76,4 +80,4 @@ jobs:
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: clirr
JOB_TYPE: clirr
7 changes: 0 additions & 7 deletions .kokoro/release/publish_javadoc11.sh
Expand Up @@ -49,13 +49,6 @@ pushd target/docfx-yml
python3 -m docuploader create-metadata \
--name ${NAME} \
--version ${VERSION} \
--xrefs devsite://java/gax \
--xrefs devsite://java/google-cloud-core \
--xrefs devsite://java/api-common \
--xrefs devsite://java/proto-google-common-protos \
--xrefs devsite://java/google-api-client \
--xrefs devsite://java/google-http-client \
--xrefs devsite://java/protobuf \
--language java

# upload yml to production bucket
Expand Down
5 changes: 2 additions & 3 deletions google-cloud-servicedirectory-bom/pom.xml
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version='1.0' encoding='UTF-8'?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.cloud</groupId>
Expand Down Expand Up @@ -60,7 +60,6 @@

<dependencyManagement>
<dependencies>

<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-servicedirectory</artifactId>
Expand Down Expand Up @@ -100,4 +99,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
4 changes: 2 additions & 2 deletions google-cloud-servicedirectory/pom.xml
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version='1.0' encoding='UTF-8'?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.cloud</groupId>
Expand Down Expand Up @@ -120,4 +120,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
24 changes: 24 additions & 0 deletions owlbot.py
@@ -0,0 +1,24 @@
# 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.
# You may obtain a copy of the License at
#
# https://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.

import synthtool as s
from synthtool.languages import java


for library in s.get_staging_dirs():
# put any special-case replacements here
s.move(library)

s.remove_staging_dirs()
java.common_templates()
6 changes: 3 additions & 3 deletions pom.xml
Expand Up @@ -128,11 +128,11 @@
</build>

<modules>
<module>proto-google-cloud-servicedirectory-v1beta1</module>
<module>proto-google-cloud-servicedirectory-v1</module>
<module>google-cloud-servicedirectory</module>
<module>grpc-google-cloud-servicedirectory-v1beta1</module>
<module>grpc-google-cloud-servicedirectory-v1</module>
<module>google-cloud-servicedirectory</module>
<module>proto-google-cloud-servicedirectory-v1beta1</module>
<module>proto-google-cloud-servicedirectory-v1</module>
<module>google-cloud-servicedirectory-bom</module>
</modules>

Expand Down
33 changes: 0 additions & 33 deletions synth.py

This file was deleted.

6 changes: 3 additions & 3 deletions versions.txt
@@ -1,8 +1,8 @@
# Format:
# module:released-version:current-version

proto-google-cloud-servicedirectory-v1beta1:0.6.3:0.6.4-SNAPSHOT
proto-google-cloud-servicedirectory-v1:1.2.3:1.2.4-SNAPSHOT
google-cloud-servicedirectory:1.2.3:1.2.4-SNAPSHOT
grpc-google-cloud-servicedirectory-v1beta1:0.6.3:0.6.4-SNAPSHOT
grpc-google-cloud-servicedirectory-v1:1.2.3:1.2.4-SNAPSHOT
google-cloud-servicedirectory:1.2.3:1.2.4-SNAPSHOT
proto-google-cloud-servicedirectory-v1beta1:0.6.3:0.6.4-SNAPSHOT
proto-google-cloud-servicedirectory-v1:1.2.3:1.2.4-SNAPSHOT

0 comments on commit a48ce80

Please sign in to comment.