=pro fix unidoc/javadoc settings

This commit is contained in:
Konrad Malawski 2016-01-13 12:00:46 +01:00
parent 7efc6e7a27
commit 098ef546d7
4 changed files with 64 additions and 17 deletions

View file

@ -99,6 +99,14 @@ object UnidocRoot extends AutoPlugin {
override def trigger = noTrigger
val akkaSettings = UnidocRoot.CliOptions.genjavadocEnabled.ifTrue(Seq(
javacOptions in (JavaUnidoc, unidoc) ++= Seq("-Xdoclint:none"), // TODO likely still needed
// genjavadoc needs to generate synthetic methods since the java code uses them
scalacOptions += "-P:genjavadoc:suppressSynthetic=false",
// FIXME: see #18056
sources in(JavaUnidoc, unidoc) ~= (_.filterNot(_.getPath.contains("Access$minusControl$minusAllow$minusOrigin")))
)).getOrElse(Nil)
def settings(ignoreAggregates: Seq[Project], ignoreProjects: Seq[Project]) = {
val withoutAggregates = ignoreAggregates.foldLeft(inAnyProject) { _ -- inAggregates(_, transitive = true, includeRoot = true) }
val docProjectFilter = ignoreProjects.foldLeft(withoutAggregates) { _ -- inProjects(_) }