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

Commit

Permalink
Merge pull request #7 from FabianMeiswinkel/master
Browse files Browse the repository at this point in the history
Moving to Cassandra 2.4.3 and adding shading
  • Loading branch information
FabianMeiswinkel authored Jun 15, 2020
2 parents 8854824 + 4d1765a commit 835ea98
Showing 1 changed file with 119 additions and 10 deletions.
129 changes: 119 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.microsoft.azure.cosmosdb</groupId>
<artifactId>azure-cosmos-cassandra-spark-helper</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>Cassandra Api Spark Connector Helper for Microsoft Azure CosmosDB</description>
<url>http://azure.microsoft.com/en-us/services/documentdb/</url>
Expand All @@ -16,32 +16,35 @@
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>

<dependencies>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>2.4.0</version>
<version>2.4.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_2.11</artifactId>
<version>2.4.0</version>
<version>2.4.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-streaming_2.11</artifactId>
<version>2.4.0</version>
<version>2.4.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-mllib_2.11</artifactId>
<version>2.4.0</version>
<version>2.4.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.datastax.spark</groupId>
<artifactId>spark-cassandra-connector_2.11</artifactId>
<version>2.4.1</version>
<version>2.4.3</version>
</dependency>
</dependencies>

Expand All @@ -51,13 +54,119 @@
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.2.2</version>
<configuration>
<checkMultipleScalaVersions>false</checkMultipleScalaVersions>
<scalaVersion>2.11.12</scalaVersion>
<recompileMode>incremental</recompileMode>
</configuration>
<executions>
<execution>
<id>scala-compile-first</id>
<phase>process-resources</phase>
<goals>
<goal>add-source</goal>
</goals>
</execution>
<execution>
<id>scala-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>scala-testCompile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
<execution>
<id>scala-doc</id>
<phase>prepare-package</phase>
<goals>
<goal>doc</goal>
<goal>doc-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>com.microsoft.azure.cosmosdb.cassandra</pattern>
<shadedPattern>cosmosdb_cassandra_connector_shaded.com.microsoft.azure.cosmosdb.cassandra</shadedPattern>
<excludes>
<exclude>com.microsoft.azure.cosmosdb.cassandra.*</exclude>
</excludes>
</relocation>
<relocation>
<pattern>com.datastax</pattern>
<shadedPattern>cosmosdb_connector_shaded.com.datastax</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/services/javax.annotation.processing.Processor</exclude>
<exclude>META-INF/*.MF</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
<filter>
<artifact>commons-logging:commons-logging</artifact>
<includes>
<include>**</include>
</includes>
</filter>
</filters>
<artifactSet>
<excludes>
<exclude>org.tachyonproject:tachyon-client</exclude>
<exclude>org.apache.hadoop:*</exclude>
<exclude>org.apache.spark:*</exclude>
<exclude>org.scala-lang:*</exclude>
<exclude>org.apache.tinkerpop:*</exclude>
</excludes>
</artifactSet>
<minimizeJar>true</minimizeJar>
<finalName>${project.artifactId}-${project.version}-uber</finalName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<version>3.5</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 835ea98

Please sign in to comment.