1

scala 3 还没有 caliban.federation。我的问题是将它与 scala 3 库一起使用的正确方法是什么?现在我的 build.sbt 中有这样的依赖项:

lazy val `bookings` =
  project
    .in(file("."))
    .settings(
      scalaVersion := "3.0.1",
      name := "bookings"
    )
    .settings(commonSettings)
    .settings(dependencies)



lazy val dependencies = Seq(
  libraryDependencies ++= Seq(
    "com.github.ghostdogpr" %% "caliban-zio-http" % "1.1.0"
  ),
  libraryDependencies ++= Seq(
    org.scalatest.scalatest,
    org.scalatestplus.`scalacheck-1-15`,
  ).map(_ % Test),
  libraryDependencies +=
    ("com.github.ghostdogpr" %% "caliban-federation" % "1.1.0")
      .cross(CrossVersion.for3Use2_13)

但是当我尝试构建它时,它会出错:

[error] (update) Conflicting cross-version suffixes in: 
dev.zio:zio-query, 
org.scala-lang.modules:scala-collection-compat, 
dev.zio:zio-stacktracer, 
dev.zio:izumi-reflect, 
com.github.ghostdogpr:caliban-macros, 
dev.zio:izumi-reflect-thirdparty-boopickle-shaded, 
dev.zio:zio, 
com.github.ghostdogpr:caliban, 
dev.zio:zio-streams
4

0 回答 0