Skip to content

Commit beae1c9

Browse files
committed
Exclude doc-related scalacOptions for dotty
1 parent c4b81a9 commit beae1c9

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

build.sbt

+16-13
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,22 @@ lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatfor
1111
apiMappings += (scalaInstance.value.libraryJar ->
1212
url(s"https://www.scala-lang.org/api/${scalaVersion.value}/")),
1313

14-
scalacOptions in (Compile, doc) ++= Seq(
15-
"-diagrams",
16-
"-doc-source-url",
17-
s"https://github.com/scala/scala-parser-combinators/tree/v${version.value}€{FILE_PATH}.scala",
18-
"-sourcepath",
19-
(baseDirectory in LocalRootProject).value.absolutePath,
20-
"-doc-title",
21-
"Scala Parser Combinators",
22-
"-doc-version",
23-
version.value,
24-
if (isDotty.value) "-language:Scala2"
25-
else ""
26-
),
14+
scalacOptions in (Compile, doc) ++= {
15+
if (isDotty.value)
16+
Seq("-language:Scala2")
17+
else
18+
Seq(
19+
"-diagrams",
20+
"-doc-source-url",
21+
s"https://github.com/scala/scala-parser-combinators/tree/v${version.value}€{FILE_PATH}.scala",
22+
"-sourcepath",
23+
(baseDirectory in LocalRootProject).value.absolutePath,
24+
"-doc-title",
25+
"Scala Parser Combinators",
26+
"-doc-version",
27+
version.value
28+
)
29+
},
2730
unmanagedSourceDirectories in Compile ++= {
2831
(unmanagedSourceDirectories in Compile).value.map { dir =>
2932
CrossVersion.partialVersion(scalaVersion.value) match {

0 commit comments

Comments
 (0)