Skip to content

Commit 61f6851

Browse files
committed
[CDM-84] Mark spark dependencies as provided
to exclude from the final jar, reducing the size of shaded jar around 30MB.
1 parent c4efdc7 commit 61f6851

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,13 @@
4646
<artifactId>log4j-slf4j-impl</artifactId>
4747
</exclusion>
4848
</exclusions>
49+
<scope>provided</scope>
4950
</dependency>
5051
<dependency>
5152
<groupId>org.apache.spark</groupId>
5253
<artifactId>spark-sql_${scala.main.version}</artifactId>
5354
<version>${spark.version}</version>
55+
<scope>provided</scope>
5456
</dependency>
5557
<dependency>
5658
<groupId>org.apache.spark</groupId>
@@ -66,6 +68,7 @@
6668
<artifactId>apache-log4j-extras</artifactId>
6769
</exclusion>
6870
</exclusions>
71+
<scope>provided</scope>
6972
</dependency>
7073
<dependency>
7174
<groupId>com.datastax.spark</groupId>

0 commit comments

Comments
 (0)