Skip to content

Commit

Permalink
skip javadoc compilation for 2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
kailuowang committed May 22, 2016
1 parent eb3caf8 commit b106f1d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ lazy val commonJvmSettings = Seq(
// JVM settings. https:/tkawachi/sbt-doctest/issues/52
) ++ catsDoctestSettings

lazy val catsSettings = buildSettings ++ commonSettings ++ publishSettings ++ scoverageSettings
lazy val catsSettings = buildSettings ++ commonSettings ++ publishSettings ++ scoverageSettings ++ skip210DocSettings

lazy val scalacheckVersion = "1.12.5"

Expand All @@ -106,6 +106,14 @@ def noDocProjects(sv: String): Seq[ProjectReference] = CrossVersion.partialVersi
case _ => Nil
}

lazy val skip210DocSettings = Seq(
sources in (Compile, doc) := (
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 10)) => Nil
case _ => (sources in (Compile, doc)).value
})
)

lazy val docSettings = Seq(
autoAPIMappings := true,
unidocProjectFilter in (ScalaUnidoc, unidoc) :=
Expand Down

0 comments on commit b106f1d

Please sign in to comment.