Skip to content

Commit

Permalink
Merge pull request scala#11947 from dotty-staging/deprecate-sbt-dotty
Browse files Browse the repository at this point in the history
Deprecate sbt-dotty when using sbt >= 1.5.0-RC2
  • Loading branch information
adpi2 authored Mar 30, 2021
2 parents a90ce46 + ca17ab6 commit bcf6c72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ object DottyPlugin extends AutoPlugin {
if (!VersionNumber(sbtV).matchesSemVer(SemanticSelector(requiredVersion)))
sys.error(s"The sbt-dotty plugin cannot work with this version of sbt ($sbtV), sbt $requiredVersion is required.")

val deprecatedVersion = ">=1.5.0-RC2"
val logger = sLog.value
if (VersionNumber(sbtV).matchesSemVer(SemanticSelector(deprecatedVersion)))
logger.warn(s"The sbt-dotty plugin is no longer neeeded with sbt >= 1.5, please remove it from your build.")

state
}
)
Expand Down

0 comments on commit bcf6c72

Please sign in to comment.