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

Commit 31a94aa

Browse files
authored
feat(deps): adopt flatten plugin and google-cloud-shared-dependencies (#228)
1 parent 3edcdfc commit 31a94aa

7 files changed

Lines changed: 52 additions & 73 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ api_key
4242
# Python utilities
4343
*.pyc
4444
artman-genfiles
45+
46+
.flattened-pom.xml

‎google-cloud-dataproc/pom.xml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,13 @@
112112
</dependencies>
113113
</profile>
114114
</profiles>
115+
116+
<build>
117+
<plugins>
118+
<plugin>
119+
<groupId>org.codehaus.mojo</groupId>
120+
<artifactId>flatten-maven-plugin</artifactId>
121+
</plugin>
122+
</plugins>
123+
</build>
115124
</project>

‎grpc-google-cloud-dataproc-v1/pom.xml‎

Lines changed: 9 additions & 0 deletions
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>

‎grpc-google-cloud-dataproc-v1beta2/pom.xml‎

Lines changed: 9 additions & 0 deletions
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‎

Lines changed: 5 additions & 73 deletions
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-dataproc-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>
@@ -105,74 +94,17 @@
10594
</dependency>
10695

10796
<dependency>
108-
<groupId>io.grpc</groupId>
109-
<artifactId>grpc-bom</artifactId>
110-
<version>${grpc.version}</version>
111-
<type>pom</type>
112-
<scope>import</scope>
113-
</dependency>
114-
<dependency>
115-
<groupId>com.google.api</groupId>
116-
<artifactId>gax-bom</artifactId>
117-
<version>${gax.version}</version>
118-
<type>pom</type>
119-
<scope>import</scope>
120-
</dependency>
121-
<dependency>
122-
<groupId>com.google.guava</groupId>
123-
<artifactId>guava-bom</artifactId>
124-
<version>${guava.version}</version>
97+
<groupId>com.google.cloud</groupId>
98+
<artifactId>google-cloud-shared-dependencies</artifactId>
99+
<version>0.8.1</version>
125100
<type>pom</type>
126101
<scope>import</scope>
127102
</dependency>
128103

129-
<dependency>
130-
<groupId>com.google.protobuf</groupId>
131-
<artifactId>protobuf-java</artifactId>
132-
<version>${protobuf.version}</version>
133-
</dependency>
134-
<dependency>
135-
<groupId>com.google.api</groupId>
136-
<artifactId>api-common</artifactId>
137-
<version>${google.api-common.version}</version>
138-
</dependency>
139-
<dependency>
140-
<groupId>com.google.api.grpc</groupId>
141-
<artifactId>proto-google-common-protos</artifactId>
142-
<version>${google.common-protos.version}</version>
143-
</dependency>
144-
<dependency>
145-
<groupId>com.google.cloud</groupId>
146-
<artifactId>google-cloud-core</artifactId>
147-
<version>${google.core.version}</version>
148-
</dependency>
149-
<dependency>
150-
<groupId>org.threeten</groupId>
151-
<artifactId>threetenbp</artifactId>
152-
<version>${threeten.version}</version>
153-
</dependency>
154-
<dependency>
155-
<groupId>javax.annotation</groupId>
156-
<artifactId>javax.annotation-api</artifactId>
157-
<version>${javax.annotations.version}</version>
158-
</dependency>
159-
<dependency>
160-
<groupId>org.codehaus.mojo</groupId>
161-
<artifactId>animal-sniffer-annotations</artifactId>
162-
<version>${animal-sniffer.version}</version>
163-
</dependency>
164-
165104
<dependency>
166105
<groupId>junit</groupId>
167106
<artifactId>junit</artifactId>
168-
<version>${junit.version}</version>
169-
<scope>test</scope>
170-
</dependency>
171-
<dependency>
172-
<groupId>com.google.api</groupId>
173-
<artifactId>gax-grpc</artifactId>
174-
<version>${gax.version}</version>
175-
<classifier>testlib</classifier>
107+
<version>4.13</version>
176108
<scope>test</scope>
177109
</dependency>
178110
</dependencies>
@@ -264,7 +196,7 @@
264196
<link>https://developers.google.com/protocol-buffers/docs/reference/java/</link>
265197
<link>https://googleapis.dev/java/google-auth-library/latest/</link>
266198
<link>https://googleapis.dev/java/gax/latest/</link>
267-
<link>https://googleapis.github.io/api-common-java/${google.api-common.version}/apidocs/</link>
199+
<link>https://googleapis.github.io/api-common-java/</link>
268200
</links>
269201
</configuration>
270202
</plugin>

‎proto-google-cloud-dataproc-v1/pom.xml‎

Lines changed: 9 additions & 0 deletions
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>

‎proto-google-cloud-dataproc-v1beta2/pom.xml‎

Lines changed: 9 additions & 0 deletions
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)