Skip to content

Deprecate sbt-dotty when using sbt >= 1.5.0-RC2 #11947

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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