Skip to content

Commit 74c3d40

Browse files
committed
sbt-dotty: Don't break scaladoc in non-Dotty projects
1 parent f95ac7a commit 74c3d40

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,12 @@ object DottyPlugin extends AutoPlugin {
153153
scalaOrganization.value
154154
},
155155

156-
scalacOptions in (Compile, doc) ++= Seq("-project", name.value),
156+
scalacOptions in (Compile, doc) ++= {
157+
if (isDotty.value)
158+
Seq("-project", name.value)
159+
else
160+
Seq()
161+
},
157162

158163
incOptions in Compile := {
159164
val inc = (incOptions in Compile).value

0 commit comments

Comments
 (0)