forked from soapower/soapower
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
36 lines (24 loc) · 947 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
import play.PlayScala
name := "soapower"
version := "2.1.8"
lazy val root = (project in file(".")).enablePlugins(PlayScala,SbtWeb)
scalaVersion := "2.10.6"
resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
libraryDependencies ++= Seq(
cache,
ws,
"org.reactivemongo" %% "reactivemongo" % "0.9",
"org.reactivemongo" %% "play2-reactivemongo" % "0.10.5.0.akka23"
)
mappings in Universal <++= baseDirectory map { dir => (dir / "soapowerctl.sh").*** --- dir x relativeTo(dir) }
buildInfoSettings
sourceGenerators in Compile <+= buildInfo
buildInfoKeys := Seq[BuildInfoKey](
name,
version,
scalaVersion,
sbtVersion,
BuildInfoKey.map(name) { case (k, v) => "project" + k.capitalize -> v.capitalize },
BuildInfoKey.map(version) { case (k, v) => "versionDoc" -> (v.dropRight(1) + "x") } // version 2.0.0 -> 2.0.x
)
buildInfoPackage := "soapower.build.info"