From ca17ab60460ed85d49a8d78a3a24e53fd10accab Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Tue, 30 Mar 2021 13:27:37 +0200 Subject: [PATCH] Deprecate sbt-dotty when using sbt >= 1.5.0-RC2 --- sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala b/sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala index 30582dc35933..1432aaa625f4 100644 --- a/sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala +++ b/sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala @@ -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 } )