forked from Sanoma-CDA/maxmind-geoip2-scala
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
35 lines (32 loc) · 1.09 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
lazy val packageInfo = Seq(
organization := "com.tgf.pizza",
name := "maxmind-geoip2-scala",
version := "1.5.7"
)
lazy val scalaVersions = Seq(
scalaVersion := "2.12.4",
crossScalaVersions := Seq("2.10.6", "2.11.11", "2.12.4")
)
val commonBuildLibs = Seq(
"com.maxmind.geoip2" % "geoip2" % "2.8.1",
"com.twitter" %% "util-collection" % "6.42.0",
"org.scala-lang.modules" %% "scala-xml" % "1.0.6"
)
val scala210BuildLibs = Seq(
"com.maxmind.geoip2" % "geoip2" % "2.8.1",
"com.twitter" %% "util-collection" % "6.34.0"
)
val commonTestLibs = Seq(
"org.scalacheck" %% "scalacheck" % "1.13.4",
"org.scalatest" %% "scalatest" % "3.0.1"
).map(_ % Test)
lazy val root = (project in file("."))
.settings(packageInfo: _*)
.settings(scalaVersions: _*)
.settings(libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 10)) => scala210BuildLibs
case _ => commonBuildLibs
})
)
.settings(libraryDependencies ++= commonTestLibs)
.settings(scalacOptions ++= Seq("-feature", "-deprecation"))