This repository has been archived by the owner on Nov 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
61 lines (52 loc) · 1.82 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
releaseSettings
organization in ThisBuild := "net.kaliber"
scalaVersion in ThisBuild := "2.11.6"
crossScalaVersions in ThisBuild := Seq(scalaVersion.value)
lazy val root = project.in( file(".") )
.settings(
name := "scala-command-utilities",
publishArtifact := false
)
// The release requires this setting to be present on root
.settings(publishSettings: _*)
.aggregate(core, play)
lazy val core = project.in( file("core") )
.settings(
name := "scala-command-utilities-core"
)
.settings(publishSettings: _*)
.settings(testSettings: _*)
lazy val play = project.in( file("play") )
.settings(
name := "scala-command-utilities-play"
)
.settings(publishSettings: _*)
.settings(playSettings: _*)
.settings(testSettings: _*)
.dependsOn(core % "compile->compile;test->test")
lazy val publishSettings = Seq(
publishTo := {
val repo = if (version.value endsWith "SNAPSHOT") "snapshot" else "release"
Some("Rhinofly Internal " + repo.capitalize + " Repository" at
"http://maven-repository.rhinofly.net:8081/artifactory/libs-" + repo + "-local")
}
)
lazy val testSettings = Seq(
testFrameworks += new TestFramework("org.qirx.littlespec.sbt.TestFramework"),
libraryDependencies ++= Seq(
"org.qirx" %% "little-spec" % "0.4" % "test",
"org.qirx" %% "little-spec-extra-documentation" % "0.4" % "test"
),
testOptions ++= Seq(
Tests.Argument("reporter", "org.qirx.littlespec.reporter.MarkdownReporter"),
Tests.Argument("documentationTarget", ((baseDirectory).value / "documentation").getAbsolutePath)
)
)
lazy val playSettings = {
val playVersion = "2.4.1"
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play" % playVersion % "provided",
"com.typesafe.play" %% "play-json" % playVersion % "test",
"com.typesafe.play" %% "play-test" % playVersion % "test"
)
}