-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
36 lines (28 loc) · 949 Bytes
/
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
33
34
35
36
import com.typesafe.sbteclipse.core._
name := """akka-streams-demo"""
version := "0.1"
initialize := {
val _ = initialize.value
if (sys.props("java.specification.version") != "1.8")
sys.error("Java 8 is required for this project.")
}
lazy val commonSettings = Seq(
scalaVersion := "2.11.7",
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-stream-experimental" % "2.0-M1"
),
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint")
)
lazy val javaSettings = Seq(
EclipseKeys.projectFlavor := EclipseProjectFlavor.Java // this requires my own patched sbteclipse (I'm working on a PR...)
)
lazy val scalaSeed = project
.in(file(".") / "scala-demo-seed")
.settings(commonSettings: _*)
lazy val scalaDemo = project
.in(file(".") / "scala-demo")
.settings(commonSettings: _*)
lazy val javaDemo = project
.in(file(".") / "java-demo")
.settings(commonSettings: _*)
.settings(javaSettings: _*)