mirror of https://github.com/sbt/sbt.git
add scalacOptions for scaladoc
This commit is contained in:
parent
f6b1cbde8c
commit
db4f3484a2
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue