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

Commit

Permalink
chore: migrate to owlbot (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neenu1995 authored Jun 2, 2021
1 parent 0141e15 commit 55cbf9e
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 54 deletions.
3 changes: 3 additions & 0 deletions .github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docker:
digest: sha256:ee698481139bf3df35cd83d2f17f9670ee914d6184f8909a81d672a6abaf0e72
image: gcr.io/repo-automation-bots/owlbot-java:latest
30 changes: 30 additions & 0 deletions .github/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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/main/java/com/google/cloud/aiplatform/v1"
- "/google-.*/src/main/java/com/google/cloud/aiplatform/v1beta1"

deep-copy-regex:
- source: "/google/cloud/aiplatform/(v.*)/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/$1/proto-google-cloud-aiplatform-$1/src"
- source: "/google/cloud/aiplatform/(v.*)/.*-java/grpc-google-.*/src"
dest: "/owl-bot-staging/$1/grpc-google-cloud-aiplatform-$1/src"
- source: "/google/cloud/aiplatform/(v.*)/.*-java/gapic-google-.*/src"
dest: "/owl-bot-staging/$1/google-cloud-aiplatform/src"
21 changes: 10 additions & 11 deletions google-cloud-aiplatform-bom/pom.xml
Original file line number Diff line number Diff line change
@@ -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 @@ -64,31 +64,30 @@

<dependencyManagement>
<dependencies>

<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-aiplatform</artifactId>
<version>0.4.2-SNAPSHOT</version><!-- {x-version-update:google-cloud-aiplatform:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-aiplatform-v1beta1</artifactId>
<version>0.4.2-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-aiplatform-v1beta1:current} -->
<artifactId>grpc-google-cloud-aiplatform-v1</artifactId>
<version>0.4.2-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-aiplatform-v1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-aiplatform-v1</artifactId>
<version>0.4.2-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-aiplatform-v1:current} -->
<artifactId>grpc-google-cloud-aiplatform-v1beta1</artifactId>
<version>0.4.2-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-aiplatform-v1beta1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-aiplatform-v1beta1</artifactId>
<version>0.4.2-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-aiplatform-v1beta1:current} -->
<artifactId>proto-google-cloud-aiplatform-v1</artifactId>
<version>0.4.2-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-aiplatform-v1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-aiplatform-v1</artifactId>
<version>0.4.2-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-aiplatform-v1:current} -->
<artifactId>proto-google-cloud-aiplatform-v1beta1</artifactId>
<version>0.4.2-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-aiplatform-v1beta1:current} -->
</dependency>
</dependencies>
</dependencyManagement>
Expand All @@ -104,4 +103,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
4 changes: 2 additions & 2 deletions google-cloud-aiplatform/pom.xml
Original file line number Diff line number Diff line change
@@ -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 @@ -126,4 +126,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
30 changes: 30 additions & 0 deletions owlbot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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(
excludes=[
".kokoro/build.sh",
".kokoro/nightly/samples.cfg",
".kokoro/presubmit/samples.cfg",
]
)
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@

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

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

This file was deleted.

4 changes: 2 additions & 2 deletions versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# module:released-version:current-version

google-cloud-aiplatform:0.4.1:0.4.2-SNAPSHOT
grpc-google-cloud-aiplatform-v1:0.4.1:0.4.2-SNAPSHOT
grpc-google-cloud-aiplatform-v1beta1:0.4.1:0.4.2-SNAPSHOT
proto-google-cloud-aiplatform-v1:0.4.1:0.4.2-SNAPSHOT
proto-google-cloud-aiplatform-v1beta1:0.4.1:0.4.2-SNAPSHOT
grpc-google-cloud-aiplatform-v1:0.4.1:0.4.2-SNAPSHOT
grpc-google-cloud-aiplatform-v1beta1:0.4.1:0.4.2-SNAPSHOT

0 comments on commit 55cbf9e

Please sign in to comment.