This repository has been archived by the owner on Nov 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
52 lines (38 loc) · 1.87 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
import scalariform.formatter.preferences._
version := VersionHelper.versionByTag
resolvers in ThisBuild ++= Seq(
Resolver.typesafeRepo("releases"),
Resolver.jcenterRepo,
Resolver.bintrayRepo("hseeberger", "maven")
)
libraryDependencies ++= {
val akka =
"com.typesafe.akka" %% "akka-actor" % "2.4.9" ::
"com.typesafe.akka" %% "akka-agent" % "2.4.9" ::
"com.typesafe.akka" %% "akka-http-core" % "2.4.9" ::
"com.typesafe.akka" %% "akka-http-experimental" % "2.4.9" ::
("de.heikoseeberger" %% "akka-sse" % "1.8.1" exclude("com.typesafe.akka", "akka-http-experimental")) ::
("com.typesafe.akka" %% "akka-slf4j" % "2.4.9" exclude("org.slf4j", "slf4j-api")) :: Nil
val json =
"org.json4s" %% "json4s-native" % "3.4.0" ::
"org.json4s" %% "json4s-ext" % "3.4.0" :: Nil
val config = "com.typesafe" % "config" % "1.3.0" :: Nil
val logging =
"org.slf4j" % "slf4j-api" % "1.7.21" ::
("ch.qos.logback" % "logback-classic" % "1.1.7" exclude("org.slf4j", "slf4j-api")) ::
("com.typesafe.scala-logging" %% "scala-logging" % "3.4.0" exclude("org.slf4j", "slf4j-api")) :: Nil
akka ++ json ++ config ++ logging
}
mainClass in assembly := Some("io.vamp.runner.VampWebRunner")
assemblyJarName in assembly := s"vamp-runner-${version.value}.jar"
scalariformSettings ++ Seq(ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignParameters, true)
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(PreserveDanglingCloseParenthesis, true)
.setPreference(RewriteArrowSymbols, true))
scalaVersion := "2.11.8"
scalacOptions += "-target:jvm-1.8"
javacOptions ++= Seq("-encoding", "UTF-8")
scalacOptions in ThisBuild ++= Seq(Opts.compile.deprecation, Opts.compile.unchecked) ++
Seq("-Ywarn-unused-import", "-Ywarn-unused", "-Xlint", "-feature")