import sbt.Keys._

name := "scala-offheap-collections"
version := "0.1-SNAPSHOT"
val scalaVer = "2.11.8"

lazy val api = project
  .in(file("api"))
  .settings(
    moduleName := "api",
    scalaVersion := scalaVer
  )

lazy val codegen = project
  .in(file("codegen"))
  .dependsOn(api)
  .settings(
    moduleName := "codegen",
    scalaVersion := scalaVer
  )

lazy val core = project
  .in(file("core"))
  .dependsOn(api, codegen)
  .settings(
    moduleName := "core",
    libraryDependencies ++= Seq(
      "org.scalatest" % "scalatest_2.11" % "2.2.4" % "test",
      "org.scalacheck" %% "scalacheck" % "1.12.2" % "test"
    ),
    scalaVersion := scalaVer
  )

lazy val benchmark = project
  .in(file("benchmark"))
  .dependsOn(core)
  .enablePlugins(JmhPlugin)
  .settings(
    moduleName := "benchmark",
    scalaVersion := scalaVer
  )

import sbt.Keys._

name := "scala-offheap-collections"
version := "0.1-SNAPSHOT"
val scalaVer = "2.11.8"

lazy val api = project
  .in(file("api"))
  .settings(
    moduleName := "api",
    libraryDependencies ++= Seq(
      "sh.den" % "scala-offheap_2.11" % "0.1"
    ),
    scalaVersion := scalaVer
  )

lazy val codegen = project
  .in(file("codegen"))
  .dependsOn(api)
  .settings(
    moduleName := "codegen",
    scalaVersion := scalaVer
  )

lazy val core = project
  .in(file("core"))
  .dependsOn(api, codegen)
  .settings(
    moduleName := "core",
    libraryDependencies ++= Seq(
      "org.scalatest" % "scalatest_2.11" % "2.2.4" % "test",
      "org.scalacheck" %% "scalacheck" % "1.12.2" % "test"
    ),
    scalaVersion := scalaVer
  )

lazy val benchmark = project
  .in(file("benchmark"))
  .dependsOn(core)
  .enablePlugins(JmhPlugin)
  .settings(
    moduleName := "benchmark",
    scalaVersion := scalaVer
  )

Add project dependency to scala-offheap
Add project dependency to scala-offheap
