Skip to content

Commit

Permalink
Don't set -Ycache-plugin-class-loader and -Ycache-macro-class-loader …
Browse files Browse the repository at this point in the history
…for Scala 3 (#284)
  • Loading branch information
Atry authored Jan 9, 2023
1 parent f98c39b commit 3fd59da
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ object ClasspathCache extends AutoPlugin {

override def projectSettings: Seq[Def.Setting[_]] = Seq(
scalacOptions ++= {
val versionNumbers = VersionNumber(scalaVersion.value).numbers
import scala.Ordering.Implicits._
if (VersionNumber(scalaVersion.value).numbers >= Seq(2L, 12L, 5L)) {
if (versionNumbers >= Seq(2L, 12L, 5L) && versionNumbers < Seq(3L)) {
Seq("-Ycache-plugin-class-loader:last-modified", "-Ycache-macro-class-loader:last-modified")
} else {
Nil
Expand Down

0 comments on commit 3fd59da

Please sign in to comment.