Skip to content

Commit f156f42

Browse files
smartermichelou
authored andcommitted
Deprecate sbt-dotty when using sbt >= 1.5.0-RC2
1 parent 4a86a83 commit f156f42

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ object DottyPlugin extends AutoPlugin {
181181
if (!VersionNumber(sbtV).matchesSemVer(SemanticSelector(requiredVersion)))
182182
sys.error(s"The sbt-dotty plugin cannot work with this version of sbt ($sbtV), sbt $requiredVersion is required.")
183183

184+
val deprecatedVersion = ">=1.5.0-RC2"
185+
val logger = sLog.value
186+
if (VersionNumber(sbtV).matchesSemVer(SemanticSelector(deprecatedVersion)))
187+
logger.warn(s"The sbt-dotty plugin is no longer neeeded with sbt >= 1.5, please remove it from your build.")
188+
184189
state
185190
}
186191
)

0 commit comments

Comments
 (0)