Skip to content

Commit

Permalink
Update to izumi 1.2.6, update Scala
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-kai committed Mar 8, 2024
1 parent 144f113 commit 7c31be1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
val V = new {
val distage = "1.1.0"
val distage = "1.2.6"
val logstage = distage
val scalatest = "3.2.18"
val scalacheck = "1.17.0"
Expand Down Expand Up @@ -47,8 +47,8 @@ val Deps = new {

inThisBuild(
Seq(
crossScalaVersions := Seq("2.13.12", "3.3.3"),
// crossScalaVersions := Seq("3.3.3", "2.13.12"), // uncomment to use Scala 3 in IDE
crossScalaVersions := Seq("2.13.13", "3.4.0"),
// crossScalaVersions := Seq("3.4.0", "2.13.13"), // uncomment to use Scala 3 in IDE
scalaVersion := crossScalaVersions.value.head,
version := "1.0.0",
organization := "io.7mind",
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/leaderboard/LeaderboardRole.scala
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ object GenericLauncher extends MainBase(Activation(Repo -> Repo.Prod, Scene -> S
sealed abstract class MainBase(
activation: Activation,
requiredRoles: Vector[RawRoleParams],
) extends RoleAppMain.LauncherBIO2[IO] {
) extends RoleAppMain.LauncherBIO[IO] {

override def requiredRoles(argv: RoleAppMain.ArgV): Vector[RawRoleParams] = {
requiredRoles
Expand All @@ -313,6 +313,6 @@ sealed abstract class MainBase(
make[Activation].named("default").fromValue(defaultActivation ++ activation)
}

private[this] def defaultActivation = Activation(Scene -> Scene.Provided)
private def defaultActivation = Activation(Scene -> Scene.Provided)

}
2 changes: 1 addition & 1 deletion src/main/scala/leaderboard/plugins/LeaderboardPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object LeaderboardPlugin extends PluginDef {

make[Ranks[F]].from[Ranks.Impl[F]]

make[Http4sDsl[F[Throwable, _]]]
makeTrait[Http4sDsl[F[Throwable, _]]]
}

def repoDummy[F[+_, +_]: TagKK]: ModuleDef = new ModuleDef {
Expand Down
4 changes: 2 additions & 2 deletions src/test/scala/leaderboard/tests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import distage.{DIKey, ModuleDef, Scene}
import izumi.distage.model.definition.Activation
import izumi.distage.model.definition.StandardAxis.Repo
import izumi.distage.plugins.PluginConfig
import izumi.distage.testkit.scalatest.{AssertIO3, Spec3}
import izumi.distage.testkit.scalatest.{AssertZIO, SpecZIO}
import leaderboard.model.*
import leaderboard.repo.{Ladder, Profiles}
import leaderboard.services.Ranks
import leaderboard.zioenv.*
import zio.{IO, ZIO}

abstract class LeaderboardTest extends Spec3[ZIO] with AssertIO3[ZIO] {
abstract class LeaderboardTest extends SpecZIO with AssertZIO {
override def config = super.config.copy(
pluginConfig = PluginConfig.cached(packagesEnabled = Seq("leaderboard.plugins")),
moduleOverrides = super.config.moduleOverrides ++ new ModuleDef {
Expand Down

0 comments on commit 7c31be1

Please sign in to comment.