-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Scala 2.13.1 to crossScalaVersions and update the dependencies
- Loading branch information
Alex Zolotko
committed
Sep 23, 2019
1 parent
d2b4a2b
commit c5d3177
Showing
11 changed files
with
83 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ lazy val contributors = Seq( | |
lazy val commonSettings = Seq( | ||
organization := "com.spinoco", | ||
scalaVersion := "2.11.12", | ||
crossScalaVersions := Seq("2.11.12", "2.12.4"), | ||
crossScalaVersions := Seq("2.11.12", "2.12.10", "2.13.1"), | ||
scalacOptions ++= Seq( | ||
"-feature", | ||
"-deprecation", | ||
|
@@ -18,20 +18,26 @@ lazy val commonSettings = Seq( | |
"-language:existentials", | ||
"-language:postfixOps", | ||
"-Xfatal-warnings", | ||
"-Yno-adapted-args", | ||
"-Ywarn-value-discard", | ||
"-Ywarn-unused-import" | ||
), | ||
"-Ywarn-value-discard" | ||
) ++ { | ||
if (scalaVersion.value.startsWith("2.13.")) | ||
Seq.empty | ||
else | ||
Seq( | ||
"-Yno-adapted-args", | ||
"-Ywarn-unused-import" | ||
) | ||
}, | ||
scalacOptions in (Compile, console) ~= {_.filterNot("-Ywarn-unused-import" == _)}, | ||
scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value, | ||
libraryDependencies ++= Seq( | ||
"org.scalatest" %% "scalatest" % "3.0.0" % "test" | ||
, "org.scalacheck" %% "scalacheck" % "1.13.4" % "test" | ||
, "org.slf4j" % "slf4j-simple" % "1.6.1" % "test" // uncomment this for logs when testing | ||
"org.scalatest" %% "scalatest" % "3.0.8" % "test" | ||
, "org.scalacheck" %% "scalacheck" % "1.14.1" % "test" | ||
, "org.slf4j" % "slf4j-simple" % "1.7.28" % "test" // uncomment this for logs when testing | ||
|
||
, "co.fs2" %% "fs2-core" % "1.0.0" | ||
, "co.fs2" %% "fs2-io" % "1.0.0" | ||
, "org.apache.zookeeper" % "zookeeper" % "3.4.10" | ||
, "co.fs2" %% "fs2-core" % "2.0.1" | ||
, "co.fs2" %% "fs2-io" % "2.0.1" | ||
, "org.apache.zookeeper" % "zookeeper" % "3.5.5" | ||
|
||
), | ||
scmInfo := Some(ScmInfo(url("https://github.com/Spinoco/fs2-zk"), "[email protected]:Spinoco/fs2-zk.git")), | ||
|
@@ -109,7 +115,7 @@ lazy val `fs2-zk` = | |
.settings(commonSettings) | ||
.settings( | ||
name := "fs2-zk" | ||
) | ||
) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.1.6 | ||
sbt.version=1.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package spinoco.fs2.zk | ||
|
||
import scala.collection.JavaConverters._ | ||
|
||
private[zk] object ListConverters { | ||
def toScalaList[T](list: java.util.List[T]): List[T] = | ||
list.asScala.toList | ||
|
||
def toJavaList[T](list: List[T]): java.util.List[T] = | ||
list.asJava | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package spinoco.fs2.zk | ||
|
||
import scala.collection.JavaConverters._ | ||
|
||
private[zk] object ListConverters { | ||
def toScalaList[T](list: java.util.List[T]): List[T] = | ||
list.asScala.toList | ||
|
||
def toJavaList[T](list: List[T]): java.util.List[T] = | ||
list.asJava | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package spinoco.fs2.zk | ||
|
||
import scala.jdk.CollectionConverters._ | ||
|
||
private[zk] object ListConverters { | ||
def toScalaList[T](list: java.util.List[T]): List[T] = | ||
list.asScala.toList | ||
|
||
def toJavaList[T](list: List[T]): java.util.List[T] = | ||
list.asJava | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters