Skip to content

Commit 7c0946b

Browse files
abgruszeckismarter
andauthored
Update sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala
Co-authored-by: Guillaume Martres <[email protected]>
1 parent 0f2922b commit 7c0946b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ object DottyPlugin extends AutoPlugin {
362362

363363
// Configuration for the doctool
364364
resolvers ++= (if(!useScala3doc.value) Nil else Seq(Resolver.jcenterRepo)),
365-
useScala3doc := true,
365+
useScala3doc := VersionNumber(scalaVersion.value).matchesSemVer(SemanticSelector(">=3.0.0-M3")),
366366
// We need to add doctool classes to the classpath so they can be called
367367
scalaInstance in doc := Def.taskDyn {
368368
if (isDotty.value)

0 commit comments

Comments
 (0)