diff --git a/scalac-options/src/main/scala/com/thoughtworks/sbtBestPractice/scalacOptions/ClasspathCache.scala b/scalac-options/src/main/scala/com/thoughtworks/sbtBestPractice/scalacOptions/ClasspathCache.scala index 3feaacb..e5f4b88 100644 --- a/scalac-options/src/main/scala/com/thoughtworks/sbtBestPractice/scalacOptions/ClasspathCache.scala +++ b/scalac-options/src/main/scala/com/thoughtworks/sbtBestPractice/scalacOptions/ClasspathCache.scala @@ -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