-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sbt
25 lines (22 loc) · 981 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
lazy val commonSettings = Seq(
githubProject := "cedi-circuitbreaker",
contributors ++= Seq(
Contributor("sbuzzard", "Steve Buzzard")
)
)
lazy val root = project.in(file(".")).aggregate(core).settings(commonSettings).settings(noPublish)
lazy val core = project.in(file("core")).enablePlugins(SbtOsgi).
settings(commonSettings).
settings(
name := "circuitbreaker",
libraryDependencies ++= Seq(
"com.ccadllc.cedi" %% "config" % "1.2.0",
"co.fs2" %% "fs2-core" % "2.2.2",
"org.scalatest" %% "scalatest" % "3.1.1" % "test"
),
buildOsgiBundle("com.ccadllc.cedi.circuitbreaker"),
scalacOptions ++= (if (scalaBinaryVersion.value startsWith "2.11") List("-Xexperimental") else Nil) // 2.11 needs -Xexperimental to enable SAM conversion
)
lazy val readme = project.in(file("readme")).settings(commonSettings).settings(noPublish).enablePlugins(TutPlugin).settings(
tutTargetDirectory := baseDirectory.value / ".."
).dependsOn(core)