Skip to content

Commit

Permalink
fallback to old doc for maven publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
tdas committed Aug 9, 2023
1 parent 86d2221 commit 2c3b501
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion project/Unidoc.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ object Unidoc {
updatedProject = updatedProject.enablePlugins(ScalaUnidocPlugin)
}
updatedProject
.enablePlugins(GenJavadocPlugin, PublishJavadocPlugin, JavaUnidocPlugin)
.enablePlugins(GenJavadocPlugin, JavaUnidocPlugin)
// TODO: Allows maven publishing to use unidoc doc jar, but it currently throws errors.
// .enablePlugins(PublishJavadocPlugin)
.settings(
libraryDependencies ++= Seq(
// Ensure genJavaDoc plugin is of the right version that works with Scala 2.12
Expand Down Expand Up @@ -128,6 +130,14 @@ object Unidoc {
allSourceFiles = (JavaUnidoc / unidoc / unidocAllSources).value,
sourceFilePatternsToKeep = unidocSourceFilePatterns.value)
},

// Settings for plain, old Java doc needed for successful doc generation during publishing.
Compile / doc / javacOptions ++= Seq(
"-public",
"-noqualifier", "java.lang",
"-tag", "implNote:a:Implementation Note:",
"-tag", "apiNote:a:API Note:",
"-Xdoclint:all")
)

val scalaUnidocSettings = if (generateScalaDoc) Seq(
Expand Down

0 comments on commit 2c3b501

Please sign in to comment.