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

Commit

Permalink
chore: migrate to owlbot (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neenu1995 committed Dec 2, 2021
1 parent 2ee511f commit bd7f77a
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 101 deletions.
3 changes: 3 additions & 0 deletions .github/.OwlBot.lock.yaml
@@ -0,0 +1,3 @@
docker:
digest: sha256:4e961d006ec9e44501273788f3cbe1e060c4666742ba190f60d6a05bcdf3ac8f
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
31 changes: 31 additions & 0 deletions .github/.OwlBot.yaml
@@ -0,0 +1,31 @@
# 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/cloud-devrel-public-resources/owlbot-java:latest"

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

deep-preserve-regex:
- "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"
- "/proto-google-iam-v1/src/main/java/com/google/iam/v1/logging"
- "/proto-google-iam-v1/src/main/proto/google/iam/v1"

deep-copy-regex:
- source: "/google/iam/v1/google-iam-v1-java/grpc-google-iam-v1-java/src"
dest: "/owl-bot-staging/v1/grpc-google-iam-v1/src"
- source: "/google/iam/v1/google-iam-v1-java/proto-google-iam-v1-java/src"
dest: "/owl-bot-staging/v1/proto-google-iam-v1/src"
4 changes: 3 additions & 1 deletion .repo-metadata.json
Expand Up @@ -10,5 +10,7 @@
"language": "java",
"repo": "googleapis/java-iam",
"repo_short": "java-iam",
"distribution_name": "com.google.api.grpc:proto-google-iam-v1"
"distribution_name": "com.google.api.grpc:proto-google-iam-v1",
"excluded_poms": "proto-google-iam-v1-bom",
"excluded_dependencies": "grpc-google-iam-v1"
}
29 changes: 29 additions & 0 deletions owlbot.py
@@ -0,0 +1,29 @@
# Copyright 2020 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.

"""This script is used to synthesize generated parts of this library."""

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=[
'README.md',
'samples/*',
'.github/workflows/samples.yaml',
])
33 changes: 33 additions & 0 deletions proto-google-iam-v1/clirr-ignored-differences.xml
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
<differences>
<difference>
<differenceType>7012</differenceType>
<className>com/google/iam/v1/*OrBuilder</className>
<method>* get*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>com/google/iam/v1/*OrBuilder</className>
<method>boolean contains*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>com/google/iam/v1/*OrBuilder</className>
<method>boolean has*(*)</method>
</difference> <difference>
<differenceType>7012</differenceType>
<className>com/google/iam/v1/logging/*OrBuilder</className>
<method>* get*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>com/google/iam/v1/logging/*OrBuilder</className>
<method>boolean contains*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>com/google/iam/v1/logging/*OrBuilder</className>
<method>boolean has*(*)</method>
</difference>
</differences>
7 changes: 3 additions & 4 deletions proto-google-iam-v1/pom.xml
@@ -1,6 +1,5 @@
<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">
<?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.api.grpc</groupId>
<artifactId>proto-google-iam-v1</artifactId>
Expand Down Expand Up @@ -31,4 +30,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
96 changes: 0 additions & 96 deletions synth.py

This file was deleted.

1 change: 1 addition & 0 deletions versions.txt
Expand Up @@ -2,3 +2,4 @@
# module:released-version:current-version

proto-google-iam-v1:1.1.7:1.1.8-SNAPSHOT
grpc-google-iam-v1:1.1.7:1.1.8-SNAPSHOT

0 comments on commit bd7f77a

Please sign in to comment.