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

Commit 19b99ce

Browse files
authored
feat(deps): adopt flatten plugin and google-cloud-shared-dependencies (#197)
1 parent a66eab4 commit 19b99ce

File tree

5 files changed

+34
-73
lines changed

5 files changed

+34
-73
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ target/
1313
# python utilities
1414
*.pyc
1515
__pycache__
16+
17+
.flattened-pom.xml

google-cloud-datalabeling/pom.xml

+9
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,13 @@
102102
</dependencies>
103103
</profile>
104104
</profiles>
105+
106+
<build>
107+
<plugins>
108+
<plugin>
109+
<groupId>org.codehaus.mojo</groupId>
110+
<artifactId>flatten-maven-plugin</artifactId>
111+
</plugin>
112+
</plugins>
113+
</build>
105114
</project>

grpc-google-cloud-datalabeling-v1beta1/pom.xml

+9
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,13 @@
5757
</dependencies>
5858
</profile>
5959
</profiles>
60+
61+
<build>
62+
<plugins>
63+
<plugin>
64+
<groupId>org.codehaus.mojo</groupId>
65+
<artifactId>flatten-maven-plugin</artifactId>
66+
</plugin>
67+
</plugins>
68+
</build>
6069
</project>

pom.xml

+5-73
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,6 @@
6363
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
6464
<github.global.server>github</github.global.server>
6565
<site.installationModule>google-cloud-datalabeling-parent</site.installationModule>
66-
<google.core.version>1.93.5</google.core.version>
67-
<google.api-common.version>1.9.2</google.api-common.version>
68-
<google.common-protos.version>1.18.0</google.common-protos.version>
69-
<gax.version>1.56.0</gax.version>
70-
<grpc.version>1.30.0</grpc.version>
71-
<protobuf.version>3.12.2</protobuf.version>
72-
<junit.version>4.13</junit.version>
73-
<guava.version>29.0-android</guava.version>
74-
<threeten.version>1.4.4</threeten.version>
75-
<javax.annotations.version>1.3.2</javax.annotations.version>
76-
<animal-sniffer.version>1.18</animal-sniffer.version>
7766
</properties>
7867

7968
<dependencyManagement>
@@ -95,74 +84,17 @@
9584
</dependency>
9685

9786
<dependency>
98-
<groupId>io.grpc</groupId>
99-
<artifactId>grpc-bom</artifactId>
100-
<version>${grpc.version}</version>
101-
<type>pom</type>
102-
<scope>import</scope>
103-
</dependency>
104-
<dependency>
105-
<groupId>com.google.api</groupId>
106-
<artifactId>gax-bom</artifactId>
107-
<version>${gax.version}</version>
108-
<type>pom</type>
109-
<scope>import</scope>
110-
</dependency>
111-
<dependency>
112-
<groupId>com.google.guava</groupId>
113-
<artifactId>guava-bom</artifactId>
114-
<version>${guava.version}</version>
87+
<groupId>com.google.cloud</groupId>
88+
<artifactId>google-cloud-shared-dependencies</artifactId>
89+
<version>0.8.1</version>
11590
<type>pom</type>
11691
<scope>import</scope>
11792
</dependency>
11893

119-
<dependency>
120-
<groupId>com.google.protobuf</groupId>
121-
<artifactId>protobuf-java</artifactId>
122-
<version>${protobuf.version}</version>
123-
</dependency>
124-
<dependency>
125-
<groupId>com.google.api</groupId>
126-
<artifactId>api-common</artifactId>
127-
<version>${google.api-common.version}</version>
128-
</dependency>
129-
<dependency>
130-
<groupId>com.google.api.grpc</groupId>
131-
<artifactId>proto-google-common-protos</artifactId>
132-
<version>${google.common-protos.version}</version>
133-
</dependency>
134-
<dependency>
135-
<groupId>com.google.cloud</groupId>
136-
<artifactId>google-cloud-core</artifactId>
137-
<version>${google.core.version}</version>
138-
</dependency>
139-
<dependency>
140-
<groupId>org.threeten</groupId>
141-
<artifactId>threetenbp</artifactId>
142-
<version>${threeten.version}</version>
143-
</dependency>
144-
<dependency>
145-
<groupId>javax.annotation</groupId>
146-
<artifactId>javax.annotation-api</artifactId>
147-
<version>${javax.annotations.version}</version>
148-
</dependency>
149-
<dependency>
150-
<groupId>org.codehaus.mojo</groupId>
151-
<artifactId>animal-sniffer-annotations</artifactId>
152-
<version>${animal-sniffer.version}</version>
153-
</dependency>
154-
15594
<dependency>
15695
<groupId>junit</groupId>
15796
<artifactId>junit</artifactId>
158-
<version>${junit.version}</version>
159-
<scope>test</scope>
160-
</dependency>
161-
<dependency>
162-
<groupId>com.google.api</groupId>
163-
<artifactId>gax-grpc</artifactId>
164-
<version>${gax.version}</version>
165-
<classifier>testlib</classifier>
97+
<version>4.13</version>
16698
<scope>test</scope>
16799
</dependency>
168100
</dependencies>
@@ -252,7 +184,7 @@
252184
<link>https://developers.google.com/protocol-buffers/docs/reference/java/</link>
253185
<link>https://googleapis.dev/java/google-auth-library/latest/</link>
254186
<link>https://googleapis.dev/java/gax/latest/</link>
255-
<link>https://googleapis.github.io/api-common-java/${google.api-common.version}/apidocs/</link>
187+
<link>https://googleapis.github.io/api-common-java/</link>
256188
</links>
257189
</configuration>
258190
</plugin>

proto-google-cloud-datalabeling-v1beta1/pom.xml

+9
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,13 @@
3030
<artifactId>guava</artifactId>
3131
</dependency>
3232
</dependencies>
33+
34+
<build>
35+
<plugins>
36+
<plugin>
37+
<groupId>org.codehaus.mojo</groupId>
38+
<artifactId>flatten-maven-plugin</artifactId>
39+
</plugin>
40+
</plugins>
41+
</build>
3342
</project>

0 commit comments

Comments
 (0)