forked from microsoft/sql-spark-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
32 lines (23 loc) · 1.04 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name := "spark-mssql-connector"
organization := "com.microsoft.sqlserver.jdbc.spark"
version := "1.0.0"
scalaVersion := "2.11.12"
val sparkVersion = "2.4.6"
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint")
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-sql" % sparkVersion % "provided",
// Spark Testing Utilities
"org.apache.spark" %% "spark-core" % sparkVersion % "test" classifier
"tests",
"org.apache.spark" %% "spark-sql" % sparkVersion% "test" classifier
"tests",
"org.apache.spark" %% "spark-catalyst" % sparkVersion % "test" classifier
"tests",
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test",
//SQLServer JDBC jars
"com.microsoft.sqlserver" % "mssql-jdbc" % "8.4.1.jre8"
)
scalacOptions := Seq("-unchecked", "-deprecation", "evicted")
// Exclude scala-library from this fat jar. The scala library is already there in spark package.
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)