-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: parent pom and gapic-generator-java-bom (#1170)
* feat: parent pom and gapic-generator-java-bom * gapic-generator-java to use gapic-generator-java-bom * gRPC and Protobuf as part of the BOM * Maven format plugin run at the root * Consolidate external dependencies' versions to the parent * Ensure snapshot versions
- Loading branch information
Showing
16 changed files
with
307 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<?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</groupId> | ||
<artifactId>gapic-generator-java-bom</artifactId> | ||
<packaging>pom</packaging> | ||
<version>2.12.1-SNAPSHOT</version><!-- {x-version-update:gapic-generator-java:current} --> | ||
<name>GAPIC Generator Java BOM</name> | ||
<description> | ||
BOM for the libraries in gapic-generator-java repository. Users should not | ||
depend on this artifact explicitly because this BOM is an implementation | ||
detail of the Libraries BOM. | ||
</description> | ||
|
||
<parent> | ||
<groupId>com.google.cloud</groupId> | ||
<artifactId>gapic-generator-java-pom-parent</artifactId> | ||
<version>2.12.1-SNAPSHOT</version><!-- {x-version-update:gapic-generator-java:current} --> | ||
<relativePath>../gapic-generator-java-pom-parent</relativePath> | ||
</parent> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<!-- Major external dependencies --> | ||
<dependency> | ||
<groupId>io.grpc</groupId> | ||
<artifactId>grpc-bom</artifactId> | ||
<version>${grpc.version}</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.protobuf</groupId> | ||
<artifactId>protobuf-bom</artifactId> | ||
<version>${protobuf.version}</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
|
||
<!-- Libraries published from this repositories --> | ||
<dependency> | ||
<groupId>com.google.api</groupId> | ||
<artifactId>api-common</artifactId> | ||
<version>2.3.2-SNAPSHOT</version><!-- {x-version-update:api-common:current} --> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api</groupId> | ||
<artifactId>gax-bom</artifactId> | ||
<version>2.20.2-SNAPSHOT</version><!-- {x-version-update:gax:current} --> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api.grpc</groupId> | ||
<artifactId>grpc-google-common-protos</artifactId> | ||
<version>2.11.1-SNAPSHOT</version><!-- {x-version-update:proto-google-common-protos:current} --> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api.grpc</groupId> | ||
<artifactId>proto-google-common-protos</artifactId> | ||
<version>2.11.1-SNAPSHOT</version><!-- {x-version-update:proto-google-common-protos:current} --> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api.grpc</groupId> | ||
<artifactId>proto-google-iam-v1</artifactId> | ||
<version>1.6.23-SNAPSHOT</version><!-- {x-version-update:proto-google-iam-v1:current} --> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api.grpc</groupId> | ||
<artifactId>proto-google-iam-v2</artifactId> | ||
<version>1.6.23-SNAPSHOT</version><!-- {x-version-update:proto-google-iam-v2:current} --> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api.grpc</groupId> | ||
<artifactId>proto-google-iam-v2beta</artifactId> | ||
<version>1.6.23-SNAPSHOT</version><!-- {x-version-update:proto-google-iam-v2beta:current} --> | ||
</dependency> | ||
|
||
<!-- Following test deps are kept to keep them consistent with versions above --> | ||
<dependency> | ||
<groupId>com.google.api.grpc</groupId> | ||
<artifactId>grpc-google-iam-v1</artifactId> | ||
<version>1.6.23-SNAPSHOT</version><!-- {x-version-update:grpc-google-iam-v1:current} --> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api.grpc</groupId> | ||
<artifactId>grpc-google-iam-v2</artifactId> | ||
<version>1.6.23-SNAPSHOT</version><!-- {x-version-update:grpc-google-iam-v2:current} --> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api.grpc</groupId> | ||
<artifactId>grpc-google-iam-v2beta</artifactId> | ||
<version>1.6.23-SNAPSHOT</version><!-- {x-version-update:grpc-google-iam-v2beta:current} --> | ||
</dependency> | ||
</dependencies> | ||
|
||
</dependencyManagement> | ||
|
||
</project> |
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,109 @@ | ||
<?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" child.project.url.inherit.append.path="false"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.google.cloud</groupId> | ||
<artifactId>gapic-generator-java-pom-parent</artifactId> | ||
<version>2.12.1-SNAPSHOT</version><!-- {x-version-update:gapic-generator-java:current} --> | ||
<packaging>pom</packaging> | ||
<name>GAPIC Generator Java POM Parent</name> | ||
<url>https://github.com/googleapis/google-cloud-java</url> | ||
<description> | ||
The top-level parent for all modules in the repository. | ||
</description> | ||
<parent> | ||
<groupId>com.google.cloud</groupId> | ||
<artifactId>google-cloud-shared-config</artifactId> | ||
<version>1.5.5</version> | ||
<relativePath/> | ||
</parent> | ||
|
||
<properties> | ||
<skipUnitTests>false</skipUnitTests> | ||
<checkstyle.header.file>java.header</checkstyle.header.file> | ||
|
||
<!-- External dependencies, expecially gRPC and Protobuf version, should be | ||
consistent across modules in this repository --> | ||
<javax.annotation-api.version>1.3.2</javax.annotation-api.version> | ||
<grpc.version>1.51.1</grpc.version> | ||
<guava.version>31.1-jre</guava.version> | ||
<protobuf.version>3.21.10</protobuf.version> | ||
</properties> | ||
|
||
<developers> | ||
<developer> | ||
<id>suztomo</id> | ||
<name>Tomo Suzuki</name> | ||
<email>[email protected]</email> | ||
<organization>Google</organization> | ||
<roles> | ||
<role>Developer</role> | ||
</roles> | ||
</developer> | ||
</developers> | ||
<organization> | ||
<name>Google LLC</name> | ||
</organization> | ||
<scm child.scm.connection.inherit.append.path="false" child.scm.developerConnection.inherit.append.path="false" | ||
child.scm.url.inherit.append.path="false"> | ||
<connection>scm:git:[email protected]:googleapis/google-cloud-java.git</connection> | ||
<developerConnection>scm:git:[email protected]:googleapis/google-cloud-java.git</developerConnection> | ||
<url>https://github.com/googleapis/google-cloud-java</url> | ||
<tag>HEAD</tag> | ||
</scm> | ||
<issueManagement> | ||
<url>https://github.com/googleapis/google-cloud-java/issues</url> | ||
<system>GitHub Issues</system> | ||
</issueManagement> | ||
|
||
<licenses> | ||
<license> | ||
<name>Apache-2.0</name> | ||
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
</license> | ||
</licenses> | ||
|
||
<profiles> | ||
<profile> | ||
<!-- Only run checkstyle plugin on Java 11+ (checkstyle artifact only supports Java 11+) --> | ||
<id>checkstyle-tests</id> | ||
<activation> | ||
<jdk>[11,)</jdk> | ||
</activation> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-checkstyle-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>checkstyle</id> | ||
<phase>validate</phase> | ||
<goals> | ||
<goal>check</goal> | ||
</goals> | ||
<configuration> | ||
<headerLocation>${checkstyle.header.file}</headerLocation> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
|
||
<repositories> | ||
<repository> | ||
<id>google-maven-central-copy</id> | ||
<name>Google Maven Central copy</name> | ||
<url>https://maven-central.storage-download.googleapis.com/maven2</url> | ||
</repository> | ||
<repository> | ||
<id>maven-central</id> | ||
<name>Maven Central</name> | ||
<url>https://repo1.maven.org/maven2</url> | ||
</repository> | ||
</repositories> | ||
</project> |
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
Oops, something went wrong.