Move Xsource flag into commonCompilerOpts

For the last few builds publishing snapshots has failed.
This is because Scaladocs haven't been compiling with
the Xsource flag, which we need for 2.11/2.12 compat
reasons.
This commit is contained in:
Torkel Rogstad 2019-07-03 11:21:19 +02:00
parent 243e6cb65b
commit 6d2f2e9444

View File

@ -16,7 +16,8 @@ lazy val timestamp = new java.util.Date().getTime
lazy val commonCompilerOpts = {
List(
"-Xmax-classfile-name",
"128"
"128",
"-Xsource:2.12"
)
}
@ -35,8 +36,7 @@ lazy val compilerOpts = Seq(
"-Ywarn-unused",
"-unchecked",
"-deprecation",
"-feature",
"-Xsource:2.12"
"-feature"
) ++ commonCompilerOpts
lazy val testCompilerOpts = commonCompilerOpts
@ -54,7 +54,7 @@ lazy val commonSettings = List(
),
////
// scaladoc settings
Compile / doc / scalacOptions := List(
Compile / doc / scalacOptions ++= List(
"-doc-title",
"Bitcoin-S",
"-doc-version",