-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
50 lines (34 loc) · 1010 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import sbt.Keys._
import Dependencies._
name := "siot-clustering"
version := "0.1"
scalaVersion := "2.12.8"
resourceDirectory in Test := baseDirectory.value / "test-resources"
enablePlugins(JavaAppPackaging)
javaOptions in Universal ++= Seq(
"-J-Xmx6g",
"-J-Xms128m",
)
lazy val deployTask = TaskKey[Unit]("deploy", "Copies assembly jar to remote location")
deployTask := (Universal / packageBin map { _packageBin =>
val username = "vcaballero"
val password = "vcaballero"
val remoteHost = "172.16.2.223"
val localPath = _packageBin.getPath
val remotePath = "/home/vcaballero/" + _packageBin.getName
SftpUtility.upload(remoteHost, username, password, localPath, remotePath)
}).value
val helloTask = TaskKey[Unit]("hello", "Print hello")
helloTask := println("hello world")
libraryDependencies ++= Seq(
breeze,
apacheCommonsCsv,
playJson,
typesafeConfig,
typesafeScalaLogging,
logback,
scalactic,
scalaTest,
scalameter
)
parallelExecution in Test := false