Skip to content

Commit 4a86a83

Browse files
abgruszeckimichelou
authored andcommitted
Fix detecting Scala3 version in useScaladoc
1 parent 283731b commit 4a86a83

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
@@ -374,7 +374,7 @@ object DottyPlugin extends AutoPlugin {
374374
resolvers ++= (if(!useScaladoc.value) Nil else Seq(Resolver.jcenterRepo)),
375375
useScaladoc := {
376376
val v = scalaVersion.value
377-
v.startsWith("3.0.0") && !v.startsWith("3.0.0-M1") && !v.startsWith("3.0.0-M2")
377+
v.startsWith("3") && !v.startsWith("3.0.0-M1") && !v.startsWith("3.0.0-M2")
378378
},
379379
// We need to add doctool classes to the classpath so they can be called
380380
doc / scalaInstance := Def.taskDyn {

0 commit comments

Comments
 (0)