From 62301ced0e736fdc445d830f5dadf377cb65cc6d Mon Sep 17 00:00:00 2001 From: Marcelo Vanzin Date: Sat, 9 Jun 2018 10:59:39 -0700 Subject: [PATCH] [SPARK-23732][docs] Fix source links in generated scaladoc. Apply the suggestion on the bug to fix source links. Tested with the 2.3.1 release docs. --- project/SparkBuild.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala index 4cb6495a33b6..adc2b6b5d273 100644 --- a/project/SparkBuild.scala +++ b/project/SparkBuild.scala @@ -729,7 +729,8 @@ object Unidoc { scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( "-groups", // Group similar methods together based on the @group annotation. - "-skip-packages", "org.apache.hadoop" + "-skip-packages", "org.apache.hadoop", + "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath ) ++ ( // Add links to sources when generating Scaladoc for a non-snapshot release if (!isSnapshot.value) {