add scalacOptions for scaladoc

This commit is contained in:
xuwei-k 2018-02-22 10:33:45 +09:00 committed by Eugene Yokota
parent f6b1cbde8c
commit db4f3484a2
1 changed files with 8 additions and 0 deletions

View File

@ -61,6 +61,14 @@ def commonSettings: Seq[Setting[_]] = Def.settings(
testOptions in Test += Tests.Argument(TestFrameworks.ScalaCheck, "-w", "1"),
testOptions in Test += Tests.Argument(TestFrameworks.ScalaCheck, "-verbosity", "2"),
javacOptions in compile ++= Seq("-Xlint", "-Xlint:-serial"),
scalacOptions in (Compile, doc) ++= {
Seq(
"-sourcepath",
(baseDirectory in LocalRootProject).value.getAbsolutePath,
"-doc-source-url",
s"""https://github.com/sbt/sbt/tree/${sys.process.Process("git rev-parse HEAD").lineStream_!.head}€{FILE_PATH}.scala"""
)
},
crossScalaVersions := Seq(baseScalaVersion),
bintrayPackage := (bintrayPackage in ThisBuild).value,
bintrayRepository := (bintrayRepository in ThisBuild).value,