Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal for sbt-based project #105

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
*.iml
target/
*.DS_Store

project/project/
project/target/

13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language:
scala

scala:
- 2.11.7

env:
- TARGET=packageBin
- TARGET=packageDoc
- TARGET=packageSrc

script:
- sbt ++$TRAVIS_SCALA_VERSION $TARGET
63 changes: 63 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
organization := "com.microsoft.azure"
name := "azure-cosmosdb-spark"
description := "Spark Connector for Microsoft Azure CosmosDB."

scalaVersion := "2.11.7"

scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature"
)

val sparkVersion = "2.1.0"
val slf4jVersion = "1.7.6"
val log4jVersion = "1.2.17"
val tinkerpopVersion = "3.2.5"

libraryDependencies ++= Seq(
"com.microsoft.azure" % "azure-documentdb" % "1.12.0",
"com.microsoft.azure" % "azure-documentdb-rx" % "0.9.0-rc1",

"org.apache.spark" %% "spark-core" % sparkVersion,
"org.apache.spark" %% "spark-launcher" % sparkVersion,
"org.apache.spark" %% "spark-network-common" % sparkVersion,
"org.apache.spark" %% "spark-network-shuffle" % sparkVersion,
"org.apache.spark" %% "spark-sql" % sparkVersion,
"org.apache.spark" %% "spark-streaming" % sparkVersion,
"org.apache.spark" %% "spark-unsafe" % sparkVersion,

"io.reactivex" % "rxjava" % "1.3.0",

"org.slf4j" % "slf4j-api" % slf4jVersion,

"org.apache.tinkerpop" % "spark-gremlin" % tinkerpopVersion excludeAll(
// ExclusionRule(organization = "com.fasterxml.jackson.core"),
// ExclusionRule(organization = "com.thoughtworks.paranamer"),
// ExclusionRule(organization = "commons-lang"),
ExclusionRule(organization = "org.apache.spark"),
ExclusionRule(organization = "org.scala-lang")
),
"org.apache.tinkerpop" % "tinkergraph-gremlin" % tinkerpopVersion,

"com.fasterxml.jackson.core" % "jackson-databind" % "2.6.5"
).map(_ % "compile")

libraryDependencies ++= Seq(
"junit" % "junit" % "4.11" % "test",
"org.slf4j" % "slf4j-log4j12" % slf4jVersion % "test",
"org.scalatest" %% "scalatest" % "3.0.3" % "test"
)

assemblyMergeStrategy in assembly := {
case PathList("javax", "inject", xs @ _*) => MergeStrategy.last
case PathList("javax", "servlet", xs @ _*) => MergeStrategy.last
case PathList("javax", "activation", xs @ _*) => MergeStrategy.last
case PathList("org", "apache", xs @ _*) => MergeStrategy.last
case "about.html" => MergeStrategy.rename
case "plugin.properties" => MergeStrategy.last
case "log4j.properties" => MergeStrategy.last
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}

249 changes: 0 additions & 249 deletions pom.xml

This file was deleted.

1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version = 0.13.15
4 changes: 4 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.4")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.3")
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ public void setupTest() {
HttpClientFactory.DISABLE_HOST_NAME_VERIFICATION = true; // needed to run on localhost

Spark.close();
HadoopPools.close();
KryoShimServiceLoader.close();
logger.info("SparkContext has been closed for " + this.getClass().getCanonicalName() + "-setupTest");
}

Expand Down
2 changes: 2 additions & 0 deletions version.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version := "0.0.4"