-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
temporarily disable scaladoc on 2.13 (#2354)
* fixing the scalac option in unidoc add publishLocal back to build * temporarily disable scaladoc on 2.13 * remove alleycats from combined doc
- Loading branch information
1 parent
22dd38e
commit 2c53c61
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,11 +44,15 @@ lazy val commonSettings = Seq( | |
doctestGenTests := { | ||
val unchanged = doctestGenTests.value | ||
if(priorTo2_13(scalaVersion.value)) unchanged else Nil | ||
}, | ||
//todo: re-enable disable scaladoc on 2.13 due to https:/scala/bug/issues/11045 | ||
sources in (Compile, doc) := { | ||
val docSource = (sources in (Compile, doc)).value | ||
if (priorTo2_13(scalaVersion.value)) docSource else Nil | ||
} | ||
) ++ warnUnusedImport ++ update2_12 ++ xlint | ||
|
||
|
||
|
||
def macroDependencies(scalaVersion: String) = | ||
CrossVersion.partialVersion(scalaVersion) match { | ||
case Some((2, minor)) if minor < 13 => Seq( | ||
|
@@ -203,7 +207,11 @@ lazy val docSettings = Seq( | |
"-doc-source-url", scmInfo.value.get.browseUrl + "/tree/master€{FILE_PATH}.scala", | ||
"-sourcepath", baseDirectory.in(LocalRootProject).value.getAbsolutePath, | ||
"-diagrams" | ||
), | ||
) ++ (if(priorTo2_13(scalaVersion.value)) Seq( | ||
"-Yno-adapted-args", | ||
) else Seq( | ||
"-Ymacro-annotations" | ||
)), | ||
scalacOptions in Tut ~= (_.filterNot(Set("-Ywarn-unused-import", "-Ywarn-dead-code"))), | ||
git.remoteRepo := "[email protected]:typelevel/cats.git", | ||
includeFilter in makeSite := "*.html" | "*.css" | "*.png" | "*.jpg" | "*.gif" | "*.js" | "*.swf" | "*.yml" | "*.md" | "*.svg", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters