| name := "s2graph" |
| |
| lazy val commonSettings = Seq( |
| organization := "com.kakao.s2graph", |
| scalaVersion := "2.11.7", |
| version := "0.12.1-SNAPSHOT", |
| scalacOptions := Seq("-language:postfixOps", "-unchecked", "-deprecation", "-feature", "-Xlint"), |
| javaOptions ++= collection.JavaConversions.propertiesAsScalaMap(System.getProperties).map{ case (key, value) => "-D" + key + "=" + value }.toSeq, |
| testOptions in Test += Tests.Argument("-oDF"), |
| parallelExecution in Test := false, |
| resolvers ++= Seq( |
| Resolver.mavenLocal, |
| "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/", |
| "Cloudera" at "https://repository.cloudera.com/artifactory/cloudera-repos", |
| "Twitter Maven" at "http://maven.twttr.com", |
| "sonatype-snapshots" at "https://oss.sonatype.org/content/repositories/snapshots", |
| "Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases" |
| ) |
| ) |
| |
| lazy val root = project.in(file(".")).enablePlugins(PlayScala) |
| .dependsOn(s2core, s2counter_core) |
| .settings(commonSettings: _*) |
| |
| lazy val s2core = project.settings(commonSettings: _*) |
| |
| lazy val spark = project.settings(commonSettings: _*) |
| |
| lazy val loader = project.dependsOn(s2core, spark) |
| .settings(commonSettings: _*) |
| |
| lazy val s2counter_core = project.dependsOn(s2core) |
| .settings(commonSettings: _*) |
| |
| lazy val s2counter_loader = project.dependsOn(s2counter_core, spark) |
| .settings(commonSettings: _*) |
| |
| libraryDependencies ++= Seq( |
| ws, |
| filters, |
| "xalan" % "serializer" % "2.7.2", // Download in Intelli J(Download Source/Document) |
| "com.github.danielwegener" % "logback-kafka-appender" % "0.0.3", |
| "org.json4s" %% "json4s-native" % "3.2.11" % Test |
| ) |