Skip to content

Commit 7d7879e

Browse files
committed
Merge branch 'release/0.1.3'
2 parents 2394aff + 21bfbc4 commit 7d7879e

File tree

1 file changed

+34
-23
lines changed

1 file changed

+34
-23
lines changed

build.sbt

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ organization := "com.github.ethul"
22

33
name := "redis-algebra"
44

5-
version := "0.1.2"
5+
version := "0.1.3"
66

77
scalaVersion := "2.11.2"
88

@@ -14,28 +14,39 @@ libraryDependencies += "org.specs2" %% "specs2" % "2.4" % "test"
1414

1515
resolvers += "Sonatype releases" at "https://oss.sonatype.org/content/repositories/releases/"
1616

17-
scalacOptions ++= Seq(
18-
"-deprecation",
19-
"-encoding", "UTF-8",
20-
"-feature",
21-
"-language:higherKinds",
22-
"-language:implicitConversions",
23-
"-language:postfixOps",
24-
"-unchecked",
25-
"-Xfatal-warnings",
26-
"-Xlint:_",
27-
"-Yno-adapted-args",
28-
"-Ywarn-adapted-args",
29-
"-Ywarn-dead-code",
30-
"-Ywarn-inaccessible",
31-
"-Ywarn-infer-any",
32-
"-Ywarn-nullary-override",
33-
"-Ywarn-nullary-unit",
34-
"-Ywarn-numeric-widen",
35-
"-Ywarn-unused",
36-
"-Ywarn-unused-import",
37-
"-Ywarn-value-discard"
38-
)
17+
scalacOptions <<= scalaVersion map { a =>
18+
if (a.startsWith("2.10.")) {
19+
Seq("-deprecation",
20+
"-feature",
21+
"-language:higherKinds",
22+
"-unchecked",
23+
"-Xlint",
24+
"-Xfatal-warnings",
25+
"-Yno-adapted-args")
26+
}
27+
else {
28+
Seq("-deprecation",
29+
"-encoding", "UTF-8",
30+
"-feature",
31+
"-language:higherKinds",
32+
"-language:implicitConversions",
33+
"-language:postfixOps",
34+
"-unchecked",
35+
"-Xfatal-warnings",
36+
"-Xlint:_",
37+
"-Yno-adapted-args",
38+
"-Ywarn-adapted-args",
39+
"-Ywarn-dead-code",
40+
"-Ywarn-inaccessible",
41+
"-Ywarn-infer-any",
42+
"-Ywarn-nullary-override",
43+
"-Ywarn-nullary-unit",
44+
"-Ywarn-numeric-widen",
45+
"-Ywarn-unused",
46+
"-Ywarn-unused-import",
47+
"-Ywarn-value-discard")
48+
}
49+
}
3950

4051
publishTo <<= version.apply { v =>
4152
val nexus = "https://oss.sonatype.org/"

0 commit comments

Comments
 (0)