-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
56 lines (43 loc) · 1.49 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
version := "0.2.0"
name := "zabbicook"
scalaVersion := "2.11.8"
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-feature",
"-language:postfixOps",
"-language:implicitConversions",
"-Ywarn-unused-import",
"-Ywarn-unused"
)
resolvers += Resolver.sonatypeRepo("public")
val playVersion = "2.5.7"
libraryDependencies ++= Seq(
"com.typesafe.scala-logging" %% "scala-logging" % "3.4.0",
"ch.qos.logback" % "logback-classic" % "1.1.7",
"org.scalatest" % "scalatest_2.11" % "2.2.6" % "test",
"org.mockito" % "mockito-all" % "1.10.19" % "test",
"com.ning" % "async-http-client" % "1.9.33",
"com.typesafe.play" % "play-json_2.11" % playVersion,
"ai.x" %% "play-json-extensions" % "0.8.0", // https://github.com/playframework/playframework/issues/3174
"com.typesafe" % "config" % "1.3.0",
"com.chuusai" %% "shapeless" % "2.3.2",
"com.github.scopt" %% "scopt" % "3.5.0"
)
mainClass in assembly := Some("com.github.zabbicook.cli.Main")
assemblyJarName in assembly := { s"${name.value}-${version.value}.jar" }
parallelExecution in Test := false
test in assembly := {}
lazy val root = (project in file(".")).
enablePlugins(BuildInfoPlugin)
.enablePlugins(SbtTwirl)
.settings(
buildInfoKeys := Seq[BuildInfoKey](name, version),
buildInfoPackage := "com.github.zabbicook.cli"
)
ghpages.settings
git.remoteRepo := "git@github.com:rerorero/zabbicook.git"
lazy val showVersion = taskKey[Unit]("Show version")
showVersion := {
println("zabbicook-version " + version.value)
}