Skip to content

Commit

Permalink
Publish for Scala 2.11 (fixes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlangc committed Jul 24, 2019
1 parent 3909599 commit 18c3c8b
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name := "slf4zio"

organization := "com.github.mlangc"

version := "0.2.0"
version := "0.2.1"

scalaVersion := "2.12.8"
crossScalaVersions := Seq("2.12.8")
crossScalaVersions := Seq("2.12.8", "2.11.12")

// See https://tpolecat.github.io/2017/04/25/scalac-flags.html
val scala212Opts = Seq(
Expand Down Expand Up @@ -98,8 +98,27 @@ val scala213Opts = Seq(
"-Ycache-macro-class-loader:last-modified", // and macro definitions. This can lead to performance improvements.
)

val scala211Opts = Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture",
"-Ywarn-unused-import"
)

scalacOptions ++= {
if (scalaVersion.value.startsWith("2.12.")) scala212Opts
else if (scalaVersion.value.startsWith("2.11.")) scala211Opts
else scala213Opts
}

Expand Down

0 comments on commit 18c3c8b

Please sign in to comment.