-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
34 lines (31 loc) · 1.1 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
val Scalaversion = "2.12.2"
val CrossScalaVersions = "2.11.8"
val ScalaTestVersion = "3.0.1"
val MockitoVersion = "1.10.19"
val AwsSdkversion = "1.11.93"
val ScalaLoggingVersion = "3.5.0"
val Json4sVersion = "3.5.0"
lazy val commonSettings = Seq(
organization := "gdl",
scalaVersion := Scalaversion,
crossScalaVersions := Seq(CrossScalaVersions, Scalaversion)
)
lazy val license = (project in file(".")).
settings(commonSettings: _*).
settings(
name := "license",
javacOptions ++= Seq("-source", "1.8", "-target", "1.8"),
scalacOptions := Seq("-target:jvm-1.8"),
libraryDependencies ++= Seq(
"org.json4s" %% "json4s-native" % Json4sVersion,
"com.typesafe.scala-logging" %% "scala-logging" % ScalaLoggingVersion,
"org.scalatest" %% "scalatest" % ScalaTestVersion % "test",
"org.mockito" % "mockito-all" % MockitoVersion % "test")
)
publishTo := {
val nexus = sys.props.getOrElse("nexus.host", "")
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/gdl-snapshots")
else
Some("releases" at nexus + "content/repositories/gdl-releases")
}