Skip to content

Update dependencies #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
scala: ["2.11.12", "2.12.11", "2.13.1"]
scala: ["2.11.12", "2.12.15", "2.13.7"]

steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v7
- uses: olafurpg/setup-scala@v12
with:
java-version: [email protected]
- name: Run tests
Expand Down
24 changes: 12 additions & 12 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import xerial.sbt.Sonatype._

lazy val scala213 = "2.13.1"
lazy val scala212 = "2.12.11"
lazy val scala213 = "2.13.7"
lazy val scala212 = "2.12.15"
lazy val scala211 = "2.11.12"

lazy val supportedScalaVersions = List(scala211, scala212, scala213)
Expand All @@ -13,7 +13,7 @@ ThisBuild / homepage := Some(url("http://github.com/oleg-py/better-monadic-for")
ThisBuild / scalaVersion := Option(System.getenv("SCALA_VERSION")).filter(_.nonEmpty).getOrElse(scala213)

val testSettings = Seq(
libraryDependencies += "org.scalatest" %% "scalatest" % "3.1.2" % Test,
libraryDependencies += "org.scalatest" %% "scalatest" % "3.1.4" % Test,
Test / scalacOptions ++= {
val jar = (betterMonadicFor / Compile / packageBin).value
Seq(s"-Xplugin:${jar.getAbsolutePath}", s"-Jdummy=${jar.lastModified}") // ensures recompile
Expand Down Expand Up @@ -60,10 +60,10 @@ lazy val pcplodTests = (project in file("pcplod-tests"))
"org.ensime" %% "pcplod" % "1.2.1" % Test
),
// WORKAROUND https://github.com/ensime/pcplod/issues/12
fork in Test := true,
javaOptions in Test ++= Seq(
s"""-Dpcplod.settings=${(scalacOptions in Test).value.filterNot(_.contains(",")).mkString(",")}""",
s"""-Dpcplod.classpath=${(fullClasspath in Test).value.map(_.data).mkString(",")}"""
Test / fork := true,
Test / javaOptions ++= Seq(
s"""-Dpcplod.settings=${(Test / scalacOptions).value.filterNot(_.contains(",")).mkString(",")}""",
s"""-Dpcplod.classpath=${(Test / fullClasspath).value.map(_.data).mkString(",")}"""
)
)
.settings(testSettings)
Expand All @@ -72,7 +72,7 @@ lazy val catsTests = (project in file("cats-tests"))
.dependsOn(pluginTests % "compile->compile;test->test")
.settings(
name := "cats-tests",
crossScalaVersions := List(scala211, scala212),
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "2.0.0" % Test
)
Expand All @@ -84,9 +84,9 @@ lazy val scalazTests = (project in file("scalaz-tests"))
.dependsOn(pluginTests % "compile->compile;test->test")
.settings(
name := "scalaz-tests",
crossScalaVersions := List(scala211, scala212),
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % "7.2.27" % Test,
"org.scalaz" %% "scalaz-core" % "7.2.33" % Test,
)
)
.settings(testSettings)
Expand All @@ -95,8 +95,8 @@ lazy val wartRemoverTests = (project in file("wartremover-tests"))
.dependsOn(pluginTests % "compile->compile;test->test")
.settings(
name := "wartremover-tests",
crossScalaVersions := List(scala212),
addCompilerPlugin("org.wartremover" %% "wartremover" % "2.4.2"),
crossScalaVersions := supportedScalaVersions,
addCompilerPlugin("org.wartremover" %% "wartremover" % "2.4.3"),
scalacOptions += "-P:wartremover:traverser:org.wartremover.warts.NonUnitStatements"
)
.settings(testSettings)
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.2.8
sbt.version = 1.6.1
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.10")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")