-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: generate non-cloud client library (#1770)
* chore: add proto group prefix * add test case for generating google maps * run new tests in ci * parameterize group id for proto artifacts * use helper to compute group id of proto artifacts * verify non cloud library generation * change artifact name in golden * restore new client test * change description * change description * add comments to _proto_group_id
- Loading branch information
1 parent
4c15ec0
commit 269a915
Showing
20 changed files
with
771 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
docker/owlbot/java/tests/new-client-maps/golden/.repo-metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "maps", | ||
"name_pretty": "Example API", | ||
"product_documentation": "https://maps.google.com/foo/", | ||
"api_description": "is an example API", | ||
"client_documentation": "https://googleapis.dev/java/google-maps-foo/latest/index.html", | ||
"release_level": "beta", | ||
"transport": "grpc", | ||
"language": "java", | ||
"repo": "googleapis/java-maps", | ||
"repo_short": "java-maps", | ||
"distribution_name": "com.google.maps:google-maps-foo", | ||
"api_id": "maps.googleapis.com", | ||
"requires_billing": true | ||
} |
94 changes: 94 additions & 0 deletions
94
docker/owlbot/java/tests/new-client-maps/golden/google-maps-foo-bom/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<?xml version="1.0"?> | ||
<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.maps</groupId> | ||
<artifactId>google-maps-foo-bom</artifactId> | ||
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:google-maps-foo:current} --> | ||
<packaging>pom</packaging> | ||
<parent> | ||
<groupId>com.google.cloud</groupId> | ||
<artifactId>google-cloud-shared-config</artifactId> | ||
<version>1.5.3</version> | ||
</parent> | ||
|
||
<name>Google Example API BOM</name> | ||
<url>https://github.com/googleapis/java-maps</url> | ||
<description> | ||
BOM for Example API | ||
</description> | ||
|
||
<organization> | ||
<name>Google LLC</name> | ||
</organization> | ||
|
||
<developers> | ||
<developer> | ||
<id>chingor13</id> | ||
<name>Jeff Ching</name> | ||
<email>chingor@google.com</email> | ||
<organization>Google LLC</organization> | ||
<roles> | ||
<role>Developer</role> | ||
</roles> | ||
</developer> | ||
<developer> | ||
<id>neenushaji</id> | ||
<name>Neenu Shaji</name> | ||
<email>neenushaji@google.com</email> | ||
<organization>Google LLC</organization> | ||
<roles> | ||
<role>Developer</role> | ||
</roles> | ||
</developer> | ||
</developers> | ||
|
||
<scm> | ||
<connection>scm:git:https://github.com/googleapis/java-maps.git</connection> | ||
<developerConnection>scm:git:git@github.com:googleapis/java-maps.git</developerConnection> | ||
<url>https://github.com/googleapis/java-maps</url> | ||
</scm> | ||
|
||
<properties> | ||
<maven.antrun.skip>true</maven.antrun.skip> | ||
</properties> | ||
|
||
<licenses> | ||
<license> | ||
<name>The Apache Software License, Version 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.google.maps</groupId> | ||
<artifactId>google-maps-foo</artifactId> | ||
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:google-maps-foo:current} --> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.maps.api.grpc</groupId> | ||
<artifactId>grpc-google-maps-foo-v1</artifactId> | ||
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:grpc-google-maps-foo-v1:current} --> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.maps.api.grpc</groupId> | ||
<artifactId>proto-google-maps-foo-v1</artifactId> | ||
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:proto-google-maps-foo-v1:current} --> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-checkstyle-plugin</artifactId> | ||
<configuration> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
139 changes: 139 additions & 0 deletions
139
docker/owlbot/java/tests/new-client-maps/golden/google-maps-foo/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
<?xml version="1.0"?> | ||
<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.maps</groupId> | ||
<artifactId>google-maps-foo</artifactId> | ||
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:google-maps-foo:current} --> | ||
<packaging>jar</packaging> | ||
<name>Google Example API</name> | ||
<url>https://github.com/googleapis/java-maps</url> | ||
<description>Example API is an example API</description> | ||
<parent> | ||
<groupId>com.google.maps</groupId> | ||
<artifactId>google-maps-foo-parent</artifactId> | ||
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:google-maps-foo:current} --> | ||
</parent> | ||
<properties> | ||
<site.installationModule>google-maps-foo</site.installationModule> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>io.grpc</groupId> | ||
<artifactId>grpc-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.grpc</groupId> | ||
<artifactId>grpc-stub</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.grpc</groupId> | ||
<artifactId>grpc-protobuf</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api</groupId> | ||
<artifactId>api-common</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.protobuf</groupId> | ||
<artifactId>protobuf-java</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api.grpc</groupId> | ||
<artifactId>proto-google-common-protos</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.google.maps.api.grpc</groupId> | ||
<artifactId>proto-google-maps-foo-v1</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.guava</groupId> | ||
<artifactId>guava</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api</groupId> | ||
<artifactId>gax</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api</groupId> | ||
<artifactId>gax-grpc</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api</groupId> | ||
<artifactId>gax-httpjson</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api.grpc</groupId> | ||
<artifactId>grpc-google-common-protos</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api.grpc</groupId> | ||
<artifactId>proto-google-iam-v1</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api.grpc</groupId> | ||
<artifactId>grpc-google-iam-v1</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.threeten</groupId> | ||
<artifactId>threetenbp</artifactId> | ||
</dependency> | ||
|
||
<!-- Test dependencies --> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
<version>4.13.2</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.google.maps.api.grpc</groupId> | ||
<artifactId>grpc-google-maps-foo-v1</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<!-- Need testing utility classes for generated gRPC clients tests --> | ||
<dependency> | ||
<groupId>com.google.api</groupId> | ||
<artifactId>gax</artifactId> | ||
<classifier>testlib</classifier> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api</groupId> | ||
<artifactId>gax-grpc</artifactId> | ||
<classifier>testlib</classifier> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api</groupId> | ||
<artifactId>gax-httpjson</artifactId> | ||
<classifier>testlib</classifier> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<profiles> | ||
<profile> | ||
<id>java9</id> | ||
<activation> | ||
<jdk>[9,)</jdk> | ||
</activation> | ||
<dependencies> | ||
<dependency> | ||
<groupId>javax.annotation</groupId> | ||
<artifactId>javax.annotation-api</artifactId> | ||
</dependency> | ||
</dependencies> | ||
</profile> | ||
</profiles> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>flatten-maven-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
Oops, something went wrong.