| import sbt._ |
| import sbt.Keys._ |
| |
| object Dependencies { |
| |
| object Compile { |
| val sparkStreaming = "org.apache.spark" %% "spark-streaming" % "1.3.0" |
| val sparkSql = "org.apache.spark" %% "spark-sql" % "1.3.0" |
| val gemfire = "com.gemstone.gemfire" % "gemfire" % "9.0.Beta-SNAPSHOT" |
| } |
| |
| object Test { |
| val scalaTest = "org.scalatest" % "scalatest_2.10" % "2.2.1" % "it, test" //scala test framework |
| val mockito = "org.mockito" % "mockito-all" % "1.10.19" % "test" //mockito mock test framework |
| val junit = "junit" % "junit" % "4.11" % "it, test" //4.11 because the junit-interface was complaining when using 4.12 |
| val novoCode = "com.novocode" % "junit-interface" % "0.11" % "it, test"//for junit to run with sbt |
| } |
| |
| import Test._ |
| import Compile._ |
| |
| val unitTests = Seq(scalaTest, mockito, junit, novoCode) |
| |
| val connector = unitTests ++ Seq(sparkStreaming, sparkSql, gemfire) |
| |
| val functions = Seq(gemfire, junit) |
| |
| val demos = Seq(sparkStreaming, sparkSql, gemfire) |
| } |