Skip to content

Commit 6b2940c

Browse files
authored
Remove unused parquet-thrift dependencies (#3323)
* Remove unused parquet-thrift dependencies * Add back an implicit dependency; add comments * fix scope
1 parent 5040a63 commit 6b2940c

1 file changed

Lines changed: 10 additions & 30 deletions

File tree

parquet-thrift/pom.xml

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
<artifactId>parquet-common</artifactId>
5353
<version>${project.version}</version>
5454
</dependency>
55+
<!-- Several of these hadoop dependencies will show up as "unused" in dependnency analysis
56+
but they are needed at runtime for several tests -->
5557
<dependency>
5658
<groupId>org.apache.hadoop</groupId>
5759
<artifactId>hadoop-client</artifactId>
@@ -67,6 +69,14 @@
6769
<artifactId>hadoop-common</artifactId>
6870
<scope>provided</scope>
6971
</dependency>
72+
<!-- Guava is a dependency of hadoop-common, but scoped to compile. We need to
73+
explicity declare it as a test dependency. -->
74+
<dependency>
75+
<groupId>com.google.guava</groupId>
76+
<artifactId>guava</artifactId>
77+
<version>${guava.version}</version>
78+
<scope>test</scope>
79+
</dependency>
7080
<dependency>
7181
<groupId>com.twitter.elephantbird</groupId>
7282
<artifactId>elephant-bird-core</artifactId>
@@ -107,12 +117,6 @@
107117
<artifactId>jackson-annotations</artifactId>
108118
<version>${jackson.version}</version>
109119
</dependency>
110-
<dependency>
111-
<groupId>com.google.guava</groupId>
112-
<artifactId>guava</artifactId>
113-
<version>${guava.version}</version>
114-
<scope>test</scope>
115-
</dependency>
116120
<dependency>
117121
<groupId>org.apache.parquet</groupId>
118122
<artifactId>parquet-column</artifactId>
@@ -132,17 +136,6 @@
132136
<classifier>${pig.classifier}</classifier>
133137
<scope>provided</scope>
134138
</dependency>
135-
<dependency>
136-
<groupId>javax.annotation</groupId>
137-
<artifactId>javax.annotation-api</artifactId>
138-
<version>${javax.annotation.version}</version>
139-
</dependency>
140-
<dependency> <!-- for pig runtime in tests -->
141-
<groupId>org.antlr</groupId>
142-
<artifactId>antlr-runtime</artifactId>
143-
<version>3.5.3</version>
144-
<scope>test</scope>
145-
</dependency>
146139
<dependency>
147140
<groupId>org.apache.thrift</groupId>
148141
<artifactId>libthrift</artifactId>
@@ -154,19 +147,6 @@
154147
<artifactId>slf4j-api</artifactId>
155148
<version>${slf4j.version}</version>
156149
</dependency>
157-
<dependency>
158-
<groupId>org.slf4j</groupId>
159-
<artifactId>slf4j-simple</artifactId>
160-
<version>${slf4j.version}</version>
161-
<scope>test</scope>
162-
</dependency>
163-
<dependency>
164-
<!-- needed for Pig tests -->
165-
<groupId>log4j</groupId>
166-
<artifactId>log4j</artifactId>
167-
<version>1.2.17</version>
168-
<scope>test</scope>
169-
</dependency>
170150
<dependency>
171151
<groupId>org.apache.parquet</groupId>
172152
<artifactId>parquet-hadoop</artifactId>

0 commit comments

Comments
 (0)