Skip to content

Commit 0f2922b

Browse files
committed
Default to Scala3doc
1 parent dbc1186 commit 0f2922b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

community-build/src/scala/dotty/communitybuild/projects.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ final case class SbtCommunityProject(
155155
++ s"++$compilerVersion!; "
156156

157157
override val testCommand = s"$baseCommand$sbtTestCommand"
158-
override val publishCommand = if sbtPublishCommand eq null then null else s"$baseCommand$sbtPublishCommand"
158+
override val publishCommand = if sbtPublishCommand eq null then null else
159+
val disableDocCommand =
160+
if sbtDocCommand eq null then "" else "set every useScala3doc := false;"
161+
s"$baseCommand$disableDocCommand$sbtPublishCommand"
159162
override val docCommand =
160163
if sbtDocCommand eq null then null else
161164
val cmd = if sbtDocCommand.startsWith(";") then sbtDocCommand else s";$sbtDocCommand"

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 := false,
365+
useScala3doc := true,
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)