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

Commit 835ea98

Browse files
Merge pull request #7 from FabianMeiswinkel/master
Moving to Cassandra 2.4.3 and adding shading
2 parents 8854824 + 4d1765a commit 835ea98

File tree

1 file changed

+119
-10
lines changed

1 file changed

+119
-10
lines changed

pom.xml

Lines changed: 119 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.microsoft.azure.cosmosdb</groupId>
88
<artifactId>azure-cosmos-cassandra-spark-helper</artifactId>
9-
<version>1.1.0</version>
9+
<version>1.2.0</version>
1010
<name>${project.groupId}:${project.artifactId}</name>
1111
<description>Cassandra Api Spark Connector Helper for Microsoft Azure CosmosDB</description>
1212
<url>http://azure.microsoft.com/en-us/services/documentdb/</url>
@@ -16,32 +16,35 @@
1616
<url>http://www.opensource.org/licenses/mit-license.php</url>
1717
</license>
1818
</licenses>
19-
2019
<dependencies>
2120
<dependency>
2221
<groupId>org.apache.spark</groupId>
2322
<artifactId>spark-core_2.11</artifactId>
24-
<version>2.4.0</version>
23+
<version>2.4.4</version>
24+
<scope>provided</scope>
2525
</dependency>
2626
<dependency>
2727
<groupId>org.apache.spark</groupId>
2828
<artifactId>spark-sql_2.11</artifactId>
29-
<version>2.4.0</version>
29+
<version>2.4.4</version>
30+
<scope>provided</scope>
3031
</dependency>
3132
<dependency>
3233
<groupId>org.apache.spark</groupId>
3334
<artifactId>spark-streaming_2.11</artifactId>
34-
<version>2.4.0</version>
35+
<version>2.4.4</version>
36+
<scope>provided</scope>
3537
</dependency>
3638
<dependency>
3739
<groupId>org.apache.spark</groupId>
3840
<artifactId>spark-mllib_2.11</artifactId>
39-
<version>2.4.0</version>
41+
<version>2.4.4</version>
42+
<scope>provided</scope>
4043
</dependency>
4144
<dependency>
4245
<groupId>com.datastax.spark</groupId>
4346
<artifactId>spark-cassandra-connector_2.11</artifactId>
44-
<version>2.4.1</version>
47+
<version>2.4.3</version>
4548
</dependency>
4649
</dependencies>
4750

@@ -51,13 +54,119 @@
5154
<groupId>net.alchim31.maven</groupId>
5255
<artifactId>scala-maven-plugin</artifactId>
5356
<version>3.2.2</version>
57+
<configuration>
58+
<checkMultipleScalaVersions>false</checkMultipleScalaVersions>
59+
<scalaVersion>2.11.12</scalaVersion>
60+
<recompileMode>incremental</recompileMode>
61+
</configuration>
62+
<executions>
63+
<execution>
64+
<id>scala-compile-first</id>
65+
<phase>process-resources</phase>
66+
<goals>
67+
<goal>add-source</goal>
68+
</goals>
69+
</execution>
70+
<execution>
71+
<id>scala-compile</id>
72+
<phase>compile</phase>
73+
<goals>
74+
<goal>compile</goal>
75+
</goals>
76+
</execution>
77+
<execution>
78+
<id>scala-testCompile</id>
79+
<phase>test-compile</phase>
80+
<goals>
81+
<goal>testCompile</goal>
82+
</goals>
83+
</execution>
84+
<execution>
85+
<id>scala-doc</id>
86+
<phase>prepare-package</phase>
87+
<goals>
88+
<goal>doc</goal>
89+
<goal>doc-jar</goal>
90+
</goals>
91+
</execution>
92+
</executions>
93+
</plugin>
94+
<plugin>
95+
<groupId>org.apache.maven.plugins</groupId>
96+
<artifactId>maven-source-plugin</artifactId>
97+
<version>2.2.1</version>
98+
<executions>
99+
<execution>
100+
<id>attach-sources</id>
101+
<goals>
102+
<goal>jar-no-fork</goal>
103+
</goals>
104+
</execution>
105+
</executions>
106+
</plugin>
107+
<plugin>
108+
<groupId>org.apache.maven.plugins</groupId>
109+
<artifactId>maven-shade-plugin</artifactId>
110+
<version>3.0.0</version>
111+
<executions>
112+
<execution>
113+
<phase>package</phase>
114+
<goals>
115+
<goal>shade</goal>
116+
</goals>
117+
<configuration>
118+
<relocations>
119+
<relocation>
120+
<pattern>com.microsoft.azure.cosmosdb.cassandra</pattern>
121+
<shadedPattern>cosmosdb_cassandra_connector_shaded.com.microsoft.azure.cosmosdb.cassandra</shadedPattern>
122+
<excludes>
123+
<exclude>com.microsoft.azure.cosmosdb.cassandra.*</exclude>
124+
</excludes>
125+
</relocation>
126+
<relocation>
127+
<pattern>com.datastax</pattern>
128+
<shadedPattern>cosmosdb_connector_shaded.com.datastax</shadedPattern>
129+
</relocation>
130+
</relocations>
131+
<filters>
132+
<filter>
133+
<artifact>*:*</artifact>
134+
<excludes>
135+
<exclude>META-INF/services/javax.annotation.processing.Processor</exclude>
136+
<exclude>META-INF/*.MF</exclude>
137+
<exclude>META-INF/*.SF</exclude>
138+
<exclude>META-INF/*.DSA</exclude>
139+
<exclude>META-INF/*.RSA</exclude>
140+
</excludes>
141+
</filter>
142+
<filter>
143+
<artifact>commons-logging:commons-logging</artifact>
144+
<includes>
145+
<include>**</include>
146+
</includes>
147+
</filter>
148+
</filters>
149+
<artifactSet>
150+
<excludes>
151+
<exclude>org.tachyonproject:tachyon-client</exclude>
152+
<exclude>org.apache.hadoop:*</exclude>
153+
<exclude>org.apache.spark:*</exclude>
154+
<exclude>org.scala-lang:*</exclude>
155+
<exclude>org.apache.tinkerpop:*</exclude>
156+
</excludes>
157+
</artifactSet>
158+
<minimizeJar>true</minimizeJar>
159+
<finalName>${project.artifactId}-${project.version}-uber</finalName>
160+
</configuration>
161+
</execution>
162+
</executions>
54163
</plugin>
55164
<plugin>
56165
<artifactId>maven-compiler-plugin</artifactId>
57-
<version>3.3</version>
166+
<version>3.5</version>
58167
<configuration>
59-
<source>1.6</source>
60-
<target>1.6</target>
168+
<source>1.8</source>
169+
<target>1.8</target>
61170
</configuration>
62171
</plugin>
63172
</plugins>

0 commit comments

Comments
 (0)