Skip to content

Commit

Permalink
Upgrades (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol authored Apr 7, 2021
1 parent 5d42605 commit 5e0bf8c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
scalaVersion := "2.13.4"

import Settings._

val scalas = Seq("2.12.13", "2.13.4")
val Scala213 = "2.13.4"
val Scala212 = "2.12.13"

val scalas = Seq(Scala212, Scala213)

val CE3_Version = "3.0.0-RC1"
val CE2_Version = "2.3.3"
val CE3_Version = "3.0.1"
val CE2_Version = "2.4.1"

lazy val core = projectMatrix
.in(file("core"))
.defaultAxes(
CatsEffect3Axis,
VirtualAxis.jvm,
VirtualAxis.scalaABIVersion("2.13.4")
VirtualAxis.scalaABIVersion(Scala213)
)
.customRow(
scalaVersions = scalas,
Expand All @@ -37,16 +38,16 @@ lazy val core = projectMatrix
else "mdoc-effect-ce2"
})

lazy val core_CE2 = core.finder(CatsEffect2Axis)("2.13.4")
lazy val core_CE3 = core.finder(CatsEffect3Axis)("2.13.4")
lazy val core_CE2 = core.finder(CatsEffect2Axis)(Scala213)
lazy val core_CE3 = core.finder(CatsEffect3Axis)(Scala213)

lazy val docs = project
.in(file("docs"))
.dependsOn(
core_CE2,
core_CE3
) // there's actually no compilation going on, we just want it to be triggered
.settings(scalaVersion := "2.13.4")
.settings(scalaVersion := Scala213)
.enablePlugins(SubatomicPlugin)
.settings(
skip in publish := true,
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scalace2-jvm/CECompat.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ import cats.effect._

object CECompat {
def unsafeRun[A](i: IO[A]) = i.unsafeRunSync()
def resource[A](ir: IO[A]) = Resource.liftF(ir)
def resource[A](ir: IO[A]) = Resource.eval(ir)
}

0 comments on commit 5e0bf8c

Please sign in to comment.