-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated to 2.13-M5 * reformat * update machinist as well * update sbt * updated kind projector * fixing the test in 2.13 * fix fmt * fix mistake made by fmt * disbale fork in test on 2.13 due to scalatest issue * temporary disable MonadError test for Try on 2.13 due to scala.util.regression * fmt * revert uneccessary change * trying scalatest fix
- Loading branch information
1 parent
536bcb9
commit 00f2a5f
Showing
8 changed files
with
35 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,8 @@ git: | |
|
||
scala: | ||
- 2.11.12 | ||
- 2.13.0-M4 | ||
- 2.12.6 | ||
- 2.13.0-M5 | ||
- 2.12.7 | ||
|
||
jdk: | ||
- oraclejdk8 | ||
|
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 |
---|---|---|
|
@@ -62,13 +62,13 @@ lazy val catsSettings = Seq( | |
"bintray/non".at("http://dl.bintray.com/non/maven") | ||
), | ||
libraryDependencies ++= Seq( | ||
"org.typelevel" %%% "machinist" % "0.6.5", | ||
compilerPlugin("org.spire-math" %% "kind-projector" % "0.9.7") | ||
"org.typelevel" %%% "machinist" % "0.6.6", | ||
compilerPlugin("org.spire-math" %% "kind-projector" % "0.9.8") | ||
) ++ macroDependencies(scalaVersion.value), | ||
) ++ commonSettings ++ publishSettings ++ scoverageSettings ++ simulacrumSettings | ||
|
||
lazy val simulacrumSettings = Seq( | ||
libraryDependencies += "com.github.mpilquist" %%% "simulacrum" % "0.13.0" % Provided, | ||
libraryDependencies += "com.github.mpilquist" %%% "simulacrum" % "0.14.0" % Provided, | ||
pomPostProcess := { (node: xml.Node) => | ||
new RuleTransformer(new RewriteRule { | ||
override def transform(node: xml.Node): Seq[xml.Node] = node match { | ||
|
@@ -132,10 +132,10 @@ lazy val includeGeneratedSrc: Setting[_] = { | |
|
||
// 2.13.0-M4 workarounds | ||
def catalystsVersion(scalaVersion: String): String = | ||
if (priorTo2_13(scalaVersion)) "0.6" else "0.7" | ||
if (priorTo2_13(scalaVersion)) "0.6" else "0.8" | ||
|
||
def scalatestVersion(scalaVersion: String): String = | ||
if (priorTo2_13(scalaVersion)) "3.0.5" else "3.0.6-SNAP1" | ||
if (priorTo2_13(scalaVersion)) "3.0.5" else "3.0.6-SNAP5" | ||
|
||
def scalaCheckVersion(scalaVersion: String): String = | ||
if (priorTo2_13(scalaVersion)) "1.13.5" else "1.14.0" | ||
|
@@ -151,8 +151,6 @@ lazy val disciplineDependencies = Seq( | |
lazy val testingDependencies = Seq( | ||
libraryDependencies += "org.typelevel" %%% "catalysts-platform" % catalystsVersion(scalaVersion.value), | ||
libraryDependencies += "org.typelevel" %%% "catalysts-macros" % catalystsVersion(scalaVersion.value) % "test", | ||
// 2.13.0-M3 workaround | ||
// libraryDependencies += "org.scalatest" %%% "scalatest" % scalaTestVersion % "test") | ||
libraryDependencies += "org.scalatest" %%% "scalatest" % scalatestVersion(scalaVersion.value) % "test" | ||
) | ||
|
||
|
@@ -216,7 +214,7 @@ lazy val docSettings = Seq( | |
Seq("-Yno-adapted-args") | ||
else | ||
Seq("-Ymacro-annotations")), | ||
scalacOptions in Tut ~= (_.filterNot(Set("-Ywarn-unused-import", "-Ywarn-dead-code"))), | ||
scalacOptions in Tut ~= (_.filterNot(Set("-Ywarn-unused-import", "-Ywarn-unused:imports", "-Ywarn-dead-code"))), | ||
git.remoteRepo := "[email protected]:typelevel/cats.git", | ||
includeFilter in makeSite := "*.html" | "*.css" | "*.png" | "*.jpg" | "*.gif" | "*.js" | "*.swf" | "*.yml" | "*.md" | "*.svg", | ||
includeFilter in Jekyll := (includeFilter in makeSite).value | ||
|
@@ -478,11 +476,11 @@ lazy val testsJS = tests.js | |
lazy val testkit = crossProject(JSPlatform, JVMPlatform) | ||
.crossType(CrossType.Pure) | ||
.dependsOn(macros, core, laws) | ||
.enablePlugins(BuildInfoPlugin) | ||
.settings(buildInfoKeys := Seq[BuildInfoKey](scalaVersion), buildInfoPackage := "cats.tests") | ||
.settings(moduleName := "cats-testkit") | ||
.settings(catsSettings) | ||
.settings(disciplineDependencies) | ||
// 2.13.0-M3 workaround | ||
//.settings(libraryDependencies += "org.scalatest" %%% "scalatest" % scalaTestVersion) | ||
.settings(libraryDependencies += "org.scalatest" %%% "scalatest" % scalatestVersion(scalaVersion.value)) | ||
.jsSettings(commonJsSettings) | ||
.jvmSettings(commonJvmSettings) | ||
|
@@ -506,7 +504,7 @@ lazy val alleycatsCore = crossProject(JSPlatform, JVMPlatform) | |
.settings(includeGeneratedSrc) | ||
.jsSettings(commonJsSettings) | ||
.jvmSettings(commonJvmSettings) | ||
.settings(scalacOptions ~= { _.filterNot("-Ywarn-unused-import" == _) }) //export-hook triggers unused import | ||
.settings(scalacOptions ~= { _.filterNot(Set("-Ywarn-unused-import", "-Ywarn-unused:imports")) }) //export-hook triggers unused import | ||
|
||
lazy val alleycatsCoreJVM = alleycatsCore.jvm | ||
lazy val alleycatsCoreJS = alleycatsCore.js | ||
|
@@ -789,8 +787,16 @@ lazy val sharedReleaseProcess = Seq( | |
) | ||
|
||
lazy val warnUnusedImport = Seq( | ||
scalacOptions ++= Seq("-Ywarn-unused-import"), | ||
scalacOptions in (Compile, console) ~= { _.filterNot("-Ywarn-unused-import" == _) }, | ||
scalacOptions ++= { | ||
CrossVersion.partialVersion(scalaVersion.value) match { | ||
case Some((2, 11)) => | ||
Seq("-Ywarn-unused-import") | ||
case Some((2, n)) if n >= 12 => | ||
Seq("-Ywarn-unused:imports") | ||
|
||
} | ||
}, | ||
scalacOptions in (Compile, console) ~= { _.filterNot(Set("-Ywarn-unused-import", "-Ywarn-unused:imports")) }, | ||
scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value | ||
) | ||
|
||
|
3 changes: 1 addition & 2 deletions
3
kernel/src/main/scala-2.13+/cats/kernel/compat/TraversableOnce.scala
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,8 +1,7 @@ | ||
package cats.kernel | ||
package compat | ||
|
||
|
||
private[kernel] object TraversableOnce { | ||
private[kernel] object TraversableOnce { | ||
def reduceOption[A, A1 >: A](as: TraversableOnce[A], op: (A1, A1) => A1): Option[A1] = | ||
as.iterator.reduceOption(op) | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.2.3 | ||
sbt.version=1.2.6 |
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
00f2a5f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how t to use i dont undarest