diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e2eaf4213..903a559966 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,7 +113,7 @@ jobs: uses: actions/setup-java@v3.12.0 with: distribution: temurin - java-version: '17' + java-version: '11' check-latest: true - run: | sbt ++2.12.x -Dquill.scala.version=2.12.x -Dquill.macro.log=false ci-release diff --git a/build.sbt b/build.sbt index ea216deb88..f35a152b51 100644 --- a/build.sbt +++ b/build.sbt @@ -740,7 +740,12 @@ lazy val docs = project scalacOptions -= "-Yno-imports", scalacOptions -= "-Xfatal-warnings", scalacOptions += "-Xlog-implicits", - libraryDependencies ++= Seq("dev.zio" %% "zio" % Version.zio), + libraryDependencies ++= Seq("dev.zio" %% "zio" % Version.zio) ++ { + CrossVersion.partialVersion(scalaVersion.value) match { + case Some((2, _)) => Seq(compilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")) + case _ => Seq.empty + } + }, projectName := "ZIO Quill", mainModuleName := (`quill-core` / moduleName).value, // With Scala 2.12, these projects doc isn't compiling.