forked from joshcough/f0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
35 lines (23 loc) · 976 Bytes
/
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
import CrossVersion.partialVersion
name := "f0"
organization := "com.clarifi"
description := "Multi-language serialization protocol."
version := "1.1.3"
scalaVersion := "2.11.6"
crossScalaVersions := Seq("2.9.2", "2.9.3", "2.10.5", "2.11.6")
scalacOptions ++= Seq("-deprecation", "-unchecked")
scalacOptions ++= {
val non29 = Seq("-feature", "-language:implicitConversions", "-language:higherKinds", "-language:existentials", "-language:postfixOps")
partialVersion(scalaVersion.value) match {
case Some((2, 9)) => Seq("-Ydependent-method-types")
case Some((2, 10)) => non29
case sv => non29 ++ Seq("-Ywarn-unused-import")
}
}
libraryDependencies += {
val scalacheck = if (scalaVersion.value == "2.9.2") "1.10.1" else "1.11.3"
"org.scalacheck" %% "scalacheck" % scalacheck % "test"
}
seq(bintraySettings:_*)
licenses <++= (version)(v => Seq("MIT" -> url("https://github.com/joshcough/f0/blob/%s/LICENSE".format(v))))
publishMavenStyle := true