-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
35 lines (27 loc) · 1.19 KB
/
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
import AssemblyKeys._
name := "reading-service"
scalaVersion := "2.11.4"
lazy val buildSettings = Seq(
organization := "com.blinkbox.books.agora",
scalaVersion := "2.11.4",
version := scala.util.Try(scala.io.Source.fromFile("VERSION").mkString.trim).getOrElse("0.0.0"),
scalacOptions := Seq("-unchecked", "-deprecation", "-feature", "-encoding", "utf8", "-target:jvm-1.7")
)
lazy val artifactSettings = addArtifact(artifact in (Compile, assembly), assembly).settings
lazy val common = (project in file("common")).settings(buildSettings: _*)
lazy val root = (project in file(".")).
dependsOn(public, admin).aggregate(public, admin).
settings(buildSettings: _*).
settings(publish := {})
lazy val public = (project in file("public")).
dependsOn(common % "compile->compile;test->test").aggregate(common).
settings(aggregate in publish := false).
settings(buildSettings: _*).
settings(rpmPrepSettings: _*).
settings(artifactSettings: _*)
lazy val admin = (project in file("admin")).
dependsOn(common % "compile->compile;test->test").aggregate(common).
settings(aggregate in publish := false).
settings(buildSettings: _*).
settings(rpmPrepSettings: _*).
settings(artifactSettings: _*)