Hide private members in documentation (#30370)
Co-Authored-By: Arnout Engelen <arnout@bzzt.net> Co-authored-by: Andrei Arlou <andrei.arlou@gmail.com>
This commit is contained in:
parent
33e263e731
commit
0ad1783017
1 changed files with 15 additions and 4 deletions
|
|
@ -159,10 +159,21 @@ object UnidocRoot extends AutoPlugin {
|
|||
UnidocRoot.CliOptions.genjavadocEnabled
|
||||
.ifTrue(
|
||||
Seq(
|
||||
// akka.stream.scaladsl.GraphDSL.Implicits.ReversePortsOps contains code that
|
||||
// genjavadoc turns into (probably incorrect) Java code that in turn confuses the javadoc tool.
|
||||
JavaUnidoc / unidocAllSources ~= { v =>
|
||||
v.map(_.filterNot(_.getAbsolutePath.endsWith("scaladsl/GraphDSL.java")))
|
||||
v.map(_.filterNot(s =>
|
||||
// akka.stream.scaladsl.GraphDSL.Implicits.ReversePortsOps
|
||||
// contains code that genjavadoc turns into (probably
|
||||
// incorrect) Java code that in turn confuses the javadoc
|
||||
// tool.
|
||||
s.getAbsolutePath.endsWith("scaladsl/GraphDSL.java") ||
|
||||
// Since adding -P:genjavadoc:strictVisibility=true,
|
||||
// the javadoc tool would NullPointerException while
|
||||
// determining the upper bound for some generics:
|
||||
s.getAbsolutePath.endsWith("TopicImpl.java") ||
|
||||
s.getAbsolutePath.endsWith("PersistencePlugin.java") ||
|
||||
s.getAbsolutePath.endsWith("GraphDelegate.java") ||
|
||||
s.getAbsolutePath.contains("/impl/")
|
||||
))
|
||||
}))
|
||||
.getOrElse(Nil))
|
||||
}
|
||||
|
|
@ -186,6 +197,6 @@ object BootstrapGenjavadoc extends AutoPlugin {
|
|||
override lazy val projectSettings = UnidocRoot.CliOptions.genjavadocEnabled
|
||||
.ifTrue(Seq(
|
||||
unidocGenjavadocVersion := "0.17",
|
||||
Compile / scalacOptions ++= Seq("-P:genjavadoc:fabricateParams=false", "-P:genjavadoc:suppressSynthetic=false")))
|
||||
Compile / scalacOptions ++= Seq("-P:genjavadoc:fabricateParams=false", "-P:genjavadoc:suppressSynthetic=false", "-P:genjavadoc:strictVisibility=true")))
|
||||
.getOrElse(Nil)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue