Skip to content
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

Upgrade Scala to 2.13 #53

Merged
merged 4 commits into from
Oct 4, 2019
Merged
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
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: scala
dist: xenial

scala:
- 2.13.0
- 2.12.8
- 2.11.12

Expand Down Expand Up @@ -31,4 +32,4 @@ cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.coursier/cache
- $HOME/.sbt
- $HOME/.sbt
20 changes: 10 additions & 10 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ enablePlugins(MicrositesPlugin)

val CatsVersion = "2.0.0"
val CatsEffectVersion = "2.0.0"
val ScalaTestVersion = "3.0.8"
val ScalaTestVersion = "3.1.0-RC2"
val ScalaCheckVersion = "1.14.0"
val ScalaTestPlusScalaCheck = "3.1.0.0-RC2"
val ScalaJava8CompatVersion = "0.9.0"

lazy val `cats-stm` = project.in(file("."))
Expand Down Expand Up @@ -36,23 +37,23 @@ lazy val commonSettings = Seq(
organization := "io.github.timwspence",
organizationName := "timwspence",
organizationHomepage := Some(url("https://github.com/TimWSpence")),
scalaVersion := "2.12.8",
crossScalaVersions := Seq("2.11.12", scalaVersion.value),
scalaVersion := "2.13.0",
crossScalaVersions := Seq("2.11.12", "2.12.10", scalaVersion.value),
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-language:higherKinds",
"-language:postfixOps",
"-feature",
"-Ypartial-unification",
"-Xfatal-warnings",
),
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % CatsEffectVersion,
"org.typelevel" %% "cats-core" % CatsVersion,
"org.scalatest" %% "scalatest" % ScalaTestVersion % "test",
"org.scalacheck" %% "scalacheck" % ScalaCheckVersion % "test",
"org.scala-lang.modules" %% "scala-java8-compat" % ScalaJava8CompatVersion,
"org.typelevel" %% "cats-effect" % CatsEffectVersion,
"org.typelevel" %% "cats-core" % CatsVersion,
"org.scalatest" %% "scalatest" % ScalaTestVersion % Test,
"org.scalacheck" %% "scalacheck" % ScalaCheckVersion % Test,
"org.scalatestplus" %% "scalatestplus-scalacheck" % ScalaTestPlusScalaCheck % Test,
"org.scala-lang.modules" %% "scala-java8-compat" % ScalaJava8CompatVersion,
),
addCompilerPlugin("org.typelevel" % "kind-projector" % "0.10.3" cross CrossVersion.binary),
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"),
Expand Down Expand Up @@ -124,7 +125,6 @@ lazy val micrositeSettings = {
"-Ywarn-unused:imports",
"-Xlint:-missing-interpolator,_"
),
libraryDependencies += "com.47deg" %% "github4s" % "0.20.1",
micrositePushSiteWith := GitHub4s,
micrositeGithubToken := sys.env.get("GITHUB_TOKEN"),
micrositeExtraMdFiles := Map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import cats.instances.list._
import cats.syntax.functor._
import cats.syntax.traverse._
import org.scalacheck._
import org.scalatest.{FunSuite, Matchers}
import org.scalatest.matchers.should.Matchers
import org.scalatest.funsuite.AnyFunSuite
import org.scalatestplus.scalacheck.ScalaCheckDrivenPropertyChecks

import scala.concurrent.ExecutionContext
Expand All @@ -18,7 +19,7 @@ import scala.util.Random
* adds the same amount to another tvar. The sum of the tvar values
* should be invariant under the execution of all these transactions.
*/
class MaintainsInvariants extends FunSuite with ScalaCheckDrivenPropertyChecks with Matchers {
class MaintainsInvariants extends AnyFunSuite with ScalaCheckDrivenPropertyChecks with Matchers {
implicit val executionContext: ExecutionContext = ExecutionContext.Implicits.global

implicit val timer: Timer[IO] = IO.timer(executionContext)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package io.github.timwspence.cats.stm

import cats.effect.{ContextShift, Fiber, IO, Timer}
import org.scalatest.{AsyncFunSuite, Matchers}
import org.scalatest.matchers.should.Matchers
import org.scalatest.funsuite.AsyncFunSuite

import scala.concurrent.ExecutionContext
import scala.concurrent.duration._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package io.github.timwspence.cats.stm

import cats.effect.{ContextShift, IO, Timer}
import org.scalatest.{AsyncFunSuite, Matchers}
import org.scalatest.matchers.should.Matchers
import org.scalatest.funsuite.AsyncFunSuite

import scala.concurrent.ExecutionContext

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package io.github.timwspence.cats.stm
import cats.effect.{ContextShift, IO, Timer}
import cats.instances.string._
import cats.syntax.semigroup._
import org.scalatest.{AsyncFunSuite, Matchers}
import org.scalatest.matchers.should.Matchers
import org.scalatest.funsuite.AsyncFunSuite

import scala.concurrent.ExecutionContext

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package io.github.timwspence.cats.stm

import cats.effect.{ContextShift, IO, Timer}
import org.scalatest.{AsyncFunSuite, Matchers}
import org.scalatest.matchers.should.Matchers
import org.scalatest.funsuite.AsyncFunSuite

import scala.concurrent.ExecutionContext

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package io.github.timwspence.cats.stm

import cats.effect.{ContextShift, IO, Timer}
import org.scalatest.{AsyncFunSuite, Matchers}
import org.scalatest.matchers.should.Matchers
import org.scalatest.funsuite.AsyncFunSuite

import scala.concurrent.ExecutionContext

Expand Down
1 change: 0 additions & 1 deletion docs/src/main/tut/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ object Main extends IOApp {

}

// Run The Application
Main.run(List()).unsafeRunSync
```

Expand Down