Skip to content

Commit 657385b

Browse files
authored
Merge pull request #3132 from allanrenucci/sbt
Move `genDocs` from `inputTask` to `task`
2 parents d46d7a3 + 1481db3 commit 657385b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

project/Build.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ object Build {
8484
inputKey[Unit]("run compiled binary using the correct classpath, or the user supplied classpath")
8585

8686
// Compiles the documentation and static site
87-
lazy val genDocs = inputKey[Unit]("run dottydoc to generate static documentation site")
87+
lazy val genDocs = taskKey[Unit]("run dottydoc to generate static documentation site")
8888

8989
// Shorthand for compiling a docs site
9090
lazy val dottydoc = inputKey[Unit]("run dottydoc")
@@ -315,7 +315,7 @@ object Build {
315315
fork in Test := true,
316316
parallelExecution in Test := false,
317317

318-
genDocs := Def.inputTaskDyn {
318+
genDocs := Def.taskDyn {
319319
val dottyLib = (packageAll in `dotty-compiler`).value("dotty-library")
320320
val dottyInterfaces = (packageAll in `dotty-compiler`).value("dotty-interfaces")
321321
val otherDeps = (dependencyClasspath in Compile).value.map(_.data).mkString(":")
@@ -332,7 +332,7 @@ object Build {
332332
(runMain in Compile).toTask(
333333
s""" dotty.tools.dottydoc.Main ${args.mkString(" ")} ${sources.mkString(" ")}"""
334334
)
335-
}.evaluated,
335+
}.value,
336336

337337
dottydoc := Def.inputTaskDyn {
338338
val args: Seq[String] = spaceDelimited("<arg>").parsed

0 commit comments

Comments
 (0)