-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
66 lines (55 loc) · 2.29 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
name := "cs-pulse-server"
version := "1.0.3.2-SNAPSHOT"
scalaVersion := "2.12.8"
pomExtra :=
<scm>
<url>git@github.com:bwsw/cs-pulse-server.git</url>
<connection>scm:git@github.com:bwsw/cs-pulse-server.git</connection>
</scm>
<developers>
<developer>
<id>bitworks</id>
<name>Bitworks Software, Ltd.</name>
<url>http://bitworks.software/</url>
</developer>
</developers>
fork in run := true
fork in Test := true
licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
homepage := Some(url("https://github.com/bwsw/cs-pulse-server"))
pomIncludeRepository := { _ => false }
scalacOptions += "-feature"
scalacOptions += "-deprecation"
parallelExecution in Test := false
organization := "com.bwsw"
publishMavenStyle := true
pomIncludeRepository := { _ => false }
isSnapshot := true
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishArtifact in Test := false
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}
libraryDependencies += "org.scalatra" % "scalatra_2.12" % "2.5.0"
libraryDependencies += "org.influxdb" % "influxdb-java" % "2.5"
libraryDependencies += "javax.servlet" % "servlet-api" % "2.5"
libraryDependencies += "org.scalatra" %% "scalatra-json" % "2.5.0"
libraryDependencies += "org.json4s" %% "json4s-jackson" % "3.5.2"
libraryDependencies += "org.eclipse.jetty" % "jetty-server" % "9.4.5.v20170502"
libraryDependencies += "org.eclipse.jetty" % "jetty-servlet" % "9.4.5.v20170502"
libraryDependencies += "org.eclipse.jetty" % "jetty-webapp" % "9.4.5.v20170502"
libraryDependencies += "org.scalatra" %% "scalatra-specs2" % "2.5.0" % "test"
libraryDependencies += "org.mockito" % "mockito-all" % "1.10.19"
libraryDependencies += "com.typesafe" % "config" % "1.3.1"
libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.24"
libraryDependencies += "org.slf4j" % "slf4j-log4j12" % "1.7.24"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"
libraryDependencies += "org.scalamock" %% "scalamock-scalatest-support" % "3.5.0" % "test"
enablePlugins(WarPlugin)