diff --git a/microsite/src/main/docs/tutorials/testing-rpc-service.md b/microsite/src/main/docs/tutorials/testing-rpc-service.md index 3ea45efb0..fd90639ac 100644 --- a/microsite/src/main/docs/tutorials/testing-rpc-service.md +++ b/microsite/src/main/docs/tutorials/testing-rpc-service.md @@ -152,6 +152,7 @@ a property-based test with ScalaCheck to verify that the service's happiness does not depend on the incoming request. ```scala mdoc:silent +import munit.catseffect.IOFixture import munit.ScalaCheckSuite import org.scalacheck.Gen import org.scalacheck.Prop.* @@ -162,7 +163,7 @@ class PropertyBasedServiceSpec extends CatsEffectSuite with ScalaCheckSuite with val client = ResourceSuiteLocalFixture("client", clientResource) - override def munitFixtures: Seq[Fixture[_]] = List(client) + override def munitFixtures: Seq[IOFixture[_]] = List(client) property("server is always happy") { val c = client() diff --git a/project/ProjectPlugin.scala b/project/ProjectPlugin.scala index f1a03c61a..f593a809f 100644 --- a/project/ProjectPlugin.scala +++ b/project/ProjectPlugin.scala @@ -10,6 +10,8 @@ import higherkindness.mu.rpc.srcgen.SrcGenPlugin.autoImport._ import _root_.io.github.davidgregory084.ScalacOptions import _root_.io.github.davidgregory084.TpolecatPlugin.autoImport._ +import scala.language.reflectiveCalls + object ProjectPlugin extends AutoPlugin { override def trigger: PluginTrigger = allRequirements @@ -30,8 +32,9 @@ object ProjectPlugin extends AutoPlugin { val log4cats: String = "2.7.0" val log4s: String = "1.10.0" val logback: String = "1.5.11" - val munit: String = "0.7.29" - val munitCE: String = "1.0.7" + val munit: String = "1.0.2" + val munitSC: String = "1.0.0" + val munitCE: String = "2.0.0" val natchez: String = "0.3.7" val nettySSL: String = "2.0.61.Final" val paradise: String = "2.1.1" @@ -122,8 +125,8 @@ object ProjectPlugin extends AutoPlugin { libraryDependencies ++= Seq( "com.github.pureconfig" %% "pureconfig" % V.pureconfig, "org.scalameta" %% "munit" % V.munit % Test, - "org.scalameta" %% "munit-scalacheck" % V.munit % Test, - "org.typelevel" %% "munit-cats-effect-3" % V.munitCE % Test, + "org.scalameta" %% "munit-scalacheck" % V.munitSC % Test, + "org.typelevel" %% "munit-cats-effect" % V.munitCE % Test, "org.typelevel" %% "cats-effect-testkit" % V.catsEffect % Test ) ) @@ -198,10 +201,10 @@ object ProjectPlugin extends AutoPlugin { lazy val docsSettings: Seq[Def.Setting[_]] = Seq( libraryDependencies ++= Seq( - "org.scalameta" %% "munit-scalacheck" % V.munit, - "org.typelevel" %% "munit-cats-effect-3" % V.munitCE, - "io.dropwizard.metrics" % "metrics-jmx" % V.dropwizard, - "org.tpolecat" %% "natchez-jaeger" % V.natchez + "org.scalameta" %% "munit-scalacheck" % V.munitSC, + "org.typelevel" %% "munit-cats-effect" % V.munitCE, + "io.dropwizard.metrics" % "metrics-jmx" % V.dropwizard, + "org.tpolecat" %% "natchez-jaeger" % V.natchez ), scalacOptions ~= (_ filterNot Set( "-Xfatal-warnings", @@ -217,7 +220,7 @@ object ProjectPlugin extends AutoPlugin { scalacOptions -= "-Xfatal-warnings", libraryDependencies ++= Seq( "io.grpc" % "grpc-core" % V.grpc, - "org.scalameta" %% "munit-scalacheck" % V.munit, + "org.scalameta" %% "munit-scalacheck" % V.munitSC, "org.typelevel" %% "cats-effect" % V.catsEffect ) ) @@ -232,8 +235,8 @@ object ProjectPlugin extends AutoPlugin { "com.47deg" %% "scalacheck-toolbox-datetime" % V.scalacheckToolbox % Test, "org.scala-lang.modules" %% "scala-collection-compat" % V.scalaCollectionCompat % Test, "org.scalameta" %% "munit" % V.munit % Test, - "org.scalameta" %% "munit-scalacheck" % V.munit % Test, - "org.typelevel" %% "munit-cats-effect-3" % V.munitCE % Test, + "org.scalameta" %% "munit-scalacheck" % V.munitSC % Test, + "org.typelevel" %% "munit-cats-effect" % V.munitCE % Test, "org.typelevel" %% "cats-effect-testkit" % V.catsEffect % Test, "ch.qos.logback" % "logback-classic" % V.logback % Test, "com.github.cb372" %% "cats-retry" % V.catsRetry % Test @@ -310,7 +313,7 @@ object ProjectPlugin extends AutoPlugin { missinglinkIgnoreSourcePackages += IgnoredPackage("io.netty.handler.ssl") ) - import autoImport._ + import autoImport.* override def projectSettings: Seq[Def.Setting[_]] = Seq(