-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
67 lines (53 loc) · 2.07 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
62
63
64
65
66
67
import java.time.format.DateTimeFormatter
import java.time.{Clock, ZonedDateTime}
import sbt._
import Keys._
enablePlugins(JavaAppPackaging)
val versions = Map(
"akka" -> "2.4.0",
"akka-http" -> "1.0",
"slf4j" -> "1.7.10",
"bouncycastle" -> "1.51"
)
lazy val commonDependencies = Seq(
"org.slf4j" % "slf4j-api" % versions("slf4j"),
"org.slf4j" % "log4j-over-slf4j" % versions("slf4j"),
"ch.qos.logback" % "logback-classic" % "1.1.2",
"commons-io" % "commons-io" % "2.4",
"commons-codec" % "commons-codec" % "1.10",
"commons-configuration" % "commons-configuration" %"1.10",
"org.apache.commons" % "commons-compress" % "1.8",
"org.scalafx" % "scalafxml-core-sfx8_2.11" % "0.2.2",
"org.jfxtras" % "jfxtras-controls" % "8.0-r4",
"org.bouncycastle" % "bcpkix-jdk15on" % versions("bouncycastle") force(),
"org.bouncycastle" % "bcprov-jdk15on" % versions("bouncycastle") force(),
"com.typesafe.play" % "play-json_2.11" % "2.4.6",
"com.beachape" %% "enumeratum" % "1.5.12",
"io.monix" %% "monix" % "3.0.0-RC1",
"com.google.guava" % "guava" % "23.0",
// test dependencies follow
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"junit" % "junit" % "4.10" % "test"
)
lazy val launch4j = taskKey[Unit]("Launch4j")
launch4j := {
println("running launch4j task")
val antCmd = System.getProperty("os.name") match {
case x if x.toLowerCase.contains("windows") => "ant.bat"
case _ => "ant"
}
s"$antCmd l4j -Dlaunch4j.jar=${assembly.value} -f ant-build-windows-exe.xml" !
}
launch4j <<= launch4j.dependsOn( assembly )
unmanagedBase := baseDirectory.value / "lib"
lazy val versionDateFormat = DateTimeFormatter.ofPattern("yyyyMMddhhmmss")
lazy val commonSettings = Seq(
version := s"0.1.${versionDateFormat.format(ZonedDateTime.now(Clock.systemUTC()))}",
scalaVersion := "2.11.7",
libraryDependencies ++= commonDependencies,
testOptions in Test <+= (target in Test) map { t =>
Tests.Argument(TestFrameworks.ScalaTest, "-oDS", "-u", (t / "test-reports").toString)
}
)
lazy val pool_validator = (project in file("."))
.settings(commonSettings: _*)