Skip to content

Commit

Permalink
Update sbt-unidoc to version 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospereira committed Mar 15, 2019
1 parent 3f291b6 commit f6133bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions project/Doc.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
package lagom

import sbt._
import sbtunidoc.Plugin.UnidocKeys._
import sbtunidoc.Plugin.{Genjavadoc, JavaUnidoc, ScalaUnidoc, scalaJavaUnidocSettings}
import sbtunidoc.{BaseUnidocPlugin, GenJavadocPlugin, JavaUnidocPlugin, ScalaUnidocPlugin}

import sbtunidoc.BaseUnidocPlugin.autoImport._
import sbtunidoc.JavaUnidocPlugin.autoImport._
import sbtunidoc.GenJavadocPlugin.autoImport._
import sbtunidoc.ScalaUnidocPlugin.autoImport._

import sbt.Keys._
import sbt.File
import sbt.ScopeFilter.ProjectFilter
Expand Down Expand Up @@ -41,6 +46,8 @@ object UnidocRoot extends AutoPlugin {

override def trigger = noTrigger

override def requires = BaseUnidocPlugin && ScalaUnidocPlugin && JavaUnidocPlugin

private def projectsAndDependencies(projects: Seq[ProjectReference]): ProjectFilter = {
//projects.map(p => inDependencies(p, transitive = true, includeRoot = true)).reduce(_ || _)
projects.map(p => inProjects(p)).reduce(_ || _)
Expand Down Expand Up @@ -88,7 +95,7 @@ object UnidocRoot extends AutoPlugin {
case _ => Seq("--allow-script-in-comments")
}

override lazy val projectSettings = scalaJavaUnidocSettings ++ Seq(
override lazy val projectSettings = Seq(
unidocAllSources in (JavaUnidoc, unidoc) ++= allGenjavadocSources.value,
unidocAllSources in (JavaUnidoc, unidoc) := {
(unidocAllSources in (JavaUnidoc, unidoc)).value
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ libraryDependencies ++= Seq(
"org.scala-sbt" % "scripted-plugin" % sbtVersion.value
)

addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.3.3")
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.2")

// the plugins used during release can have an impact on default values
// of the build. To validate your changes on the release plugins don't
Expand Down

0 comments on commit f6133bc

Please sign in to comment.