Skip to content
This repository was archived by the owner on Oct 14, 2023. It is now read-only.

Commit e74d2bc

Browse files
authored
feat: add parent pom and bom (#2)
* feat: add parent pom * fix: dependency declarations * fix: dependency declarations * fix: name for BOM artifact
1 parent e8489e2 commit e74d2bc

File tree

6 files changed

+571
-128
lines changed

6 files changed

+571
-128
lines changed

google-cloud-translate-bom/pom.xml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<?xml version="1.0"?>
2+
<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">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.google.cloud</groupId>
5+
<artifactId>google-cloud-translate-bom</artifactId>
6+
<version>1.93.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-translate:current} -->
7+
<packaging>pom</packaging>
8+
<parent>
9+
<groupId>com.google.cloud</groupId>
10+
<artifactId>google-cloud-shared-config</artifactId>
11+
<version>0.1.3</version>
12+
</parent>
13+
14+
<name>Google Cloud Translate BOM</name>
15+
<url>https://github.com/googleapis/java-translate</url>
16+
<description>
17+
BOM for Google Cloud Translate
18+
</description>
19+
20+
<organization>
21+
<name>Google LLC</name>
22+
</organization>
23+
24+
<developers>
25+
<developer>
26+
<id>chingor13</id>
27+
<name>Jeff Ching</name>
28+
<email>chingor@google.com</email>
29+
<organization>Google LLC</organization>
30+
<roles>
31+
<role>Developer</role>
32+
</roles>
33+
</developer>
34+
</developers>
35+
36+
<scm>
37+
<connection>scm:git:https://github.com/googleapis/java-translate.git</connection>
38+
<developerConnection>scm:git:git@github.com:googleapis/java-translate.git</developerConnection>
39+
<url>https://github.com/googleapis/java-translate</url>
40+
</scm>
41+
42+
<distributionManagement>
43+
<snapshotRepository>
44+
<id>sonatype-nexus-snapshots</id>
45+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
46+
</snapshotRepository>
47+
<repository>
48+
<id>sonatype-nexus-staging</id>
49+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
50+
</repository>
51+
</distributionManagement>
52+
53+
<licenses>
54+
<license>
55+
<name>The Apache Software License, Version 2.0</name>
56+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
57+
<distribution>repo</distribution>
58+
</license>
59+
</licenses>
60+
61+
<dependencyManagement>
62+
<dependencies>
63+
64+
<dependency>
65+
<groupId>com.google.api.grpc</groupId>
66+
<artifactId>grpc-google-cloud-translate-v3beta1</artifactId>
67+
<version>0.76.1-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-translate-v3beta1:current} -->
68+
</dependency>
69+
<dependency>
70+
<groupId>com.google.api.grpc</groupId>
71+
<artifactId>proto-google-cloud-translate-v3beta1</artifactId>
72+
<version>0.76.1-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-translate-v3beta1:current} -->
73+
</dependency>
74+
<dependency>
75+
<groupId>com.google.cloud</groupId>
76+
<artifactId>google-cloud-translate</artifactId>
77+
<version>1.93.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-translate:current} -->
78+
</dependency>
79+
</dependencies>
80+
</dependencyManagement>
81+
82+
<build>
83+
<plugins>
84+
<plugin>
85+
<groupId>org.apache.maven.plugins</groupId>
86+
<artifactId>maven-checkstyle-plugin</artifactId>
87+
<configuration>
88+
<skip>true</skip>
89+
</configuration>
90+
</plugin>
91+
</plugins>
92+
</build>
93+
</project>

google-cloud-translate/pom.xml

Lines changed: 86 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,97 @@
11
<?xml version="1.0"?>
22
<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">
33
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.google.cloud</groupId>
45
<artifactId>google-cloud-translate</artifactId>
56
<version>1.93.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-translate:current} -->
67
<packaging>jar</packaging>
7-
<name>Google Cloud Translation</name>
8-
<url>https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-translate</url>
9-
<description>
10-
Java idiomatic client for Google Translation.
11-
</description>
8+
<name>Google Cloud Translate</name>
9+
<url>https://github.com/googleapis/java-translate</url>
10+
<description>Java idiomatic client for Google Cloud Translate</description>
1211
<parent>
1312
<groupId>com.google.cloud</groupId>
14-
<artifactId>google-cloud-clients</artifactId>
15-
<version>0.111.1-alpha-SNAPSHOT</version><!-- {x-version-update:google-cloud-clients:current} -->
13+
<artifactId>google-cloud-translate-parent</artifactId>
14+
<version>1.93.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-translate:current} -->
1615
</parent>
1716
<properties>
1817
<site.installationModule>google-cloud-translate</site.installationModule>
1918
</properties>
2019
<dependencies>
2120
<dependency>
22-
<groupId>${project.groupId}</groupId>
23-
<artifactId>google-cloud-core</artifactId>
21+
<groupId>io.grpc</groupId>
22+
<artifactId>grpc-api</artifactId>
2423
</dependency>
2524
<dependency>
26-
<groupId>${project.groupId}</groupId>
27-
<artifactId>google-cloud-core-http</artifactId>
25+
<groupId>io.grpc</groupId>
26+
<artifactId>grpc-stub</artifactId>
2827
</dependency>
2928
<dependency>
30-
<groupId>${project.groupId}</groupId>
31-
<artifactId>google-cloud-core-grpc</artifactId>
29+
<groupId>io.grpc</groupId>
30+
<artifactId>grpc-protobuf</artifactId>
3231
</dependency>
3332
<dependency>
34-
<groupId>com.google.apis</groupId>
35-
<artifactId>google-api-services-translate</artifactId>
36-
<scope>compile</scope>
33+
<groupId>com.google.api</groupId>
34+
<artifactId>api-common</artifactId>
35+
</dependency>
36+
<dependency>
37+
<groupId>com.google.protobuf</groupId>
38+
<artifactId>protobuf-java</artifactId>
39+
</dependency>
40+
<dependency>
41+
<groupId>com.google.api.grpc</groupId>
42+
<artifactId>proto-google-common-protos</artifactId>
3743
</dependency>
44+
3845
<dependency>
3946
<groupId>com.google.api.grpc</groupId>
4047
<artifactId>proto-google-cloud-translate-v3beta1</artifactId>
4148
</dependency>
42-
<!-- Test dependencies -->
4349
<dependency>
44-
<groupId>${project.groupId}</groupId>
50+
<groupId>com.google.guava</groupId>
51+
<artifactId>guava</artifactId>
52+
</dependency>
53+
<dependency>
54+
<groupId>com.google.api</groupId>
55+
<artifactId>gax</artifactId>
56+
</dependency>
57+
<dependency>
58+
<groupId>com.google.api</groupId>
59+
<artifactId>gax-grpc</artifactId>
60+
</dependency>
61+
<dependency>
62+
<groupId>org.threeten</groupId>
63+
<artifactId>threetenbp</artifactId>
64+
</dependency>
65+
<dependency>
66+
<groupId>com.google.cloud</groupId>
4567
<artifactId>google-cloud-core</artifactId>
46-
<type>test-jar</type>
47-
<scope>test</scope>
4868
</dependency>
69+
<dependency>
70+
<groupId>com.google.cloud</groupId>
71+
<artifactId>google-cloud-core-http</artifactId>
72+
</dependency>
73+
<dependency>
74+
<groupId>com.google.apis</groupId>
75+
<artifactId>google-api-services-translate</artifactId>
76+
</dependency>
77+
<dependency>
78+
<groupId>com.google.auth</groupId>
79+
<artifactId>google-auth-library-credentials</artifactId>
80+
</dependency>
81+
<dependency>
82+
<groupId>com.google.auth</groupId>
83+
<artifactId>google-auth-library-oauth2-http</artifactId>
84+
</dependency>
85+
<dependency>
86+
<groupId>com.google.http-client</groupId>
87+
<artifactId>google-http-client</artifactId>
88+
</dependency>
89+
<dependency>
90+
<groupId>com.google.http-client</groupId>
91+
<artifactId>google-http-client-jackson2</artifactId>
92+
</dependency>
93+
94+
<!-- Test dependencies -->
4995
<dependency>
5096
<groupId>junit</groupId>
5197
<artifactId>junit</artifactId>
@@ -57,13 +103,14 @@
57103
<scope>test</scope>
58104
</dependency>
59105
<dependency>
60-
<groupId>org.objenesis</groupId>
61-
<artifactId>objenesis</artifactId>
106+
<groupId>com.google.api.grpc</groupId>
107+
<artifactId>grpc-google-cloud-translate-v3beta1</artifactId>
62108
<scope>test</scope>
63109
</dependency>
64110
<dependency>
65-
<groupId>com.google.api.grpc</groupId>
66-
<artifactId>grpc-google-cloud-translate-v3beta1</artifactId>
111+
<groupId>com.google.cloud</groupId>
112+
<artifactId>google-cloud-core</artifactId>
113+
<type>test-jar</type>
67114
<scope>test</scope>
68115
</dependency>
69116
<!-- Need testing utility classes for generated gRPC clients tests -->
@@ -75,29 +122,18 @@
75122
</dependency>
76123
</dependencies>
77124

78-
<reporting>
79-
<plugins>
80-
<plugin>
81-
<groupId>org.apache.maven.plugins</groupId>
82-
<artifactId>maven-javadoc-plugin</artifactId>
83-
<version>3.1.1</version>
84-
<configuration>
85-
<show>protected</show>
86-
<nohelp>true</nohelp>
87-
<doclint>none</doclint>
88-
<splitindex>true</splitindex>
89-
<offlineLinks>
90-
<offlineLink>
91-
<url>${project.javadoc.protobufBaseURL}</url>
92-
<location>../../../../../google-api-grpc/proto-google-cloud-translate-v3beta1/target/site/apidocs/</location>
93-
</offlineLink>
94-
<offlineLink>
95-
<url>${project.javadoc.protobufBaseURL}</url>
96-
<location>../../../../../google-api-grpc/grpc-google-cloud-translate-v3beta1/target/site/apidocs/</location>
97-
</offlineLink>
98-
</offlineLinks>
99-
</configuration>
100-
</plugin>
101-
</plugins>
102-
</reporting>
103-
</project>
125+
<profiles>
126+
<profile>
127+
<id>java9</id>
128+
<activation>
129+
<jdk>[9,)</jdk>
130+
</activation>
131+
<dependencies>
132+
<dependency>
133+
<groupId>javax.annotation</groupId>
134+
<artifactId>javax.annotation-api</artifactId>
135+
</dependency>
136+
</dependencies>
137+
</profile>
138+
</profiles>
139+
</project>
Lines changed: 57 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,60 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0"
2-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4-
<modelVersion>4.0.0</modelVersion>
5-
<artifactId>grpc-google-cloud-translate-v3beta1</artifactId>
6-
<version>0.76.1-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-translate-v3beta1:current} -->
7-
<name>grpc-google-cloud-translate-v3beta1</name>
8-
<description>GRPC library for grpc-google-cloud-translate-v3beta1</description>
9-
<parent>
10-
<groupId>com.google.api.grpc</groupId>
11-
<artifactId>google-api-grpc</artifactId>
12-
<version>0.76.1-SNAPSHOT</version><!-- {x-version-update:google-api-grpc:current} -->
13-
</parent>
14-
<dependencies>
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>com.google.api.grpc</groupId>
6+
<artifactId>grpc-google-cloud-translate-v3beta1</artifactId>
7+
<version>0.76.1-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-translate-v3beta1:current} -->
8+
<name>grpc-google-cloud-translate-v3beta1</name>
9+
<description>GRPC library for grpc-google-cloud-translate-v3beta1</description>
10+
<parent>
11+
<groupId>com.google.cloud</groupId>
12+
<artifactId>google-cloud-translate-parent</artifactId>
13+
<version>1.93.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-translate:current} -->
14+
</parent>
15+
<dependencies>
16+
<dependency>
17+
<groupId>io.grpc</groupId>
18+
<artifactId>grpc-api</artifactId>
19+
</dependency>
20+
<dependency>
21+
<groupId>io.grpc</groupId>
22+
<artifactId>grpc-stub</artifactId>
23+
</dependency>
24+
<dependency>
25+
<groupId>io.grpc</groupId>
26+
<artifactId>grpc-protobuf</artifactId>
27+
</dependency>
28+
<dependency>
29+
<groupId>com.google.protobuf</groupId>
30+
<artifactId>protobuf-java</artifactId>
31+
</dependency>
32+
<dependency>
33+
<groupId>com.google.api.grpc</groupId>
34+
<artifactId>proto-google-cloud-translate-v3beta1</artifactId>
35+
</dependency>
36+
<dependency>
37+
<groupId>com.google.api.grpc</groupId>
38+
<artifactId>proto-google-common-protos</artifactId>
39+
</dependency>
40+
<dependency>
41+
<groupId>com.google.guava</groupId>
42+
<artifactId>guava</artifactId>
43+
</dependency>
44+
</dependencies>
45+
46+
<profiles>
47+
<profile>
48+
<id>java9</id>
49+
<activation>
50+
<jdk>[9,)</jdk>
51+
</activation>
52+
<dependencies>
1553
<dependency>
16-
<groupId>io.grpc</groupId>
17-
<artifactId>grpc-stub</artifactId>
18-
<scope>compile</scope>
54+
<groupId>javax.annotation</groupId>
55+
<artifactId>javax.annotation-api</artifactId>
1956
</dependency>
20-
<dependency>
21-
<groupId>io.grpc</groupId>
22-
<artifactId>grpc-protobuf</artifactId>
23-
<scope>compile</scope>
24-
</dependency>
25-
<dependency>
26-
<groupId>com.google.api.grpc</groupId>
27-
<artifactId>proto-google-cloud-translate-v3beta1</artifactId>
28-
<scope>compile</scope>
29-
</dependency>
30-
</dependencies>
31-
<reporting>
32-
<plugins>
33-
<plugin>
34-
<groupId>org.apache.maven.plugins</groupId>
35-
<artifactId>maven-javadoc-plugin</artifactId>
36-
<version>3.1.1</version>
37-
<configuration>
38-
<show>protected</show>
39-
<nohelp>true</nohelp>
40-
<doclint>none</doclint>
41-
<splitindex>true</splitindex>
42-
<offlineLinks>
43-
<offlineLink>
44-
<url>${project.javadoc.protobufBaseURL}</url>
45-
<location>../../../../proto-google-cloud-translate-v3beta1/target/site/apidocs/</location>
46-
</offlineLink>
47-
</offlineLinks>
48-
</configuration>
49-
</plugin>
50-
</plugins>
51-
</reporting>
52-
</project>
57+
</dependencies>
58+
</profile>
59+
</profiles>
60+
</project>

0 commit comments

Comments
 (0)