-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
45 lines (38 loc) · 1.31 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
import Dependencies.Ver
name := "mockdevice"
organization := "polyform"
scalaVersion := "2.12.8"
git.useGitDescribe := true
scalacOptions ++= Seq(
"-encoding",
"UTF-8",
"-feature",
"-unchecked",
"-deprecation",
"-language:postfixOps",
"-language:implicitConversions",
"-Ywarn-unused-import",
"-Xfatal-warnings",
"-Xlint:_"
)
libraryDependencies := Seq(
"com.iheart" %% "ficus" % Ver.ficus,
"com.lihaoyi" %% "requests" % "0.2.0",
"com.github.digitalpetri" % "modbus" % "master-SNAPSHOT",
"com.typesafe.akka" %% "akka-http-spray-json" % Ver.akkaHttp,
"com.lightbend.akka" %% "akka-stream-alpakka-mqtt" % Ver.alpakka,
"ch.qos.logback" % "logback-classic" % Ver.logback,
"com.typesafe.scala-logging" %% "scala-logging" % Ver.scalaLogging
)
enablePlugins(GitVersioning, BuildInfoPlugin, JavaServerAppPackaging)
dockerExposedPorts := Seq(9000)
dockerUpdateLatest := true
mainClass in Compile := Some("polyform.main")
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
buildInfoPackage := "polyform.mockdevice"
buildInfoUsePackageAsPath := true
val proxyVer = "3f858e34ff293abc4a047eab87c631c323c3531b" // "z in mm" branch
dependsOn(
ProjectRef(uri(s"https://gitlab-int.ctc.com/polyform/particle-proxy.git#$proxyVer"), "proxy")
)
resolvers += "jitpack" at "https://jitpack.io"