scala - Disable sbt subproject doc generation -
i have multi-project scala build in sbt, in have root project aggregates 2 subprojects: macro library , core library uses macro library. i'm using excellent sbt-unidoc plugin create single, unified scaladoc api entire library (macro + core combined). unfortunately, sbt-unidoc has limitations. instance, default, not hook doc task, , output placed in target directory's unidoc folder, instead of api folder. combined, these prevent resulting documentation being generated , packaged when executing publish or publishlocal commands. fortunately (and an issue raised inkytonic on sbt-unidoc github site), there's simple solution this: lazy val customunidocsettings = unidocsettings ++ seq ( doc in compile := (doc in scalaunidoc).value, target in unidoc in scalaunidoc := crosstarget.value / "api" ) these settings employed in root project: lazy val macro = (project in file ("macro")). settings ( name = "foo-macro" ) la...