mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-22 14:33:06 +01:00
qAddress issue where source and target fields don't work completely for jdk 9+ when trying to target jvm 1.8 (#636)
This commit is contained in:
parent
220d8d160e
commit
90dbb9d9f8
1 changed files with 16 additions and 4 deletions
20
build.sbt
20
build.sbt
|
@ -39,6 +39,11 @@ lazy val compilerOpts = Seq(
|
|||
|
||||
lazy val testCompilerOpts = commonCompilerOpts
|
||||
|
||||
lazy val isCI = {
|
||||
sys.props
|
||||
.get("CI")
|
||||
.isDefined
|
||||
}
|
||||
lazy val commonSettings = List(
|
||||
organization := "org.bitcoin-s",
|
||||
homepage := Some(url("https://bitcoin-s.org")),
|
||||
|
@ -66,16 +71,23 @@ lazy val commonSettings = List(
|
|||
////
|
||||
scalacOptions in Compile := compilerOpts,
|
||||
scalacOptions in Test := testCompilerOpts,
|
||||
Compile / compile / javacOptions ++= Seq("-source", "1.8", "-target", "1.8"),
|
||||
Compile / compile / javacOptions ++= {
|
||||
if (isCI) {
|
||||
//jdk11 is used on CI, we need to use the --release flag to make sure
|
||||
//byte code is compatible with jdk 8
|
||||
//https://github.com/eclipse/jetty.project/issues/3244#issuecomment-495322586
|
||||
Seq("--release", "8")
|
||||
} else {
|
||||
Seq("-source", "1.8", "-target", "1.8")
|
||||
}
|
||||
},
|
||||
//show full stack trace of failed tests
|
||||
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oF"),
|
||||
//show duration of tests
|
||||
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oD"),
|
||||
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
|
||||
// Travis has performance issues on macOS
|
||||
Test / parallelExecution := !(Properties.isMac && sys.props
|
||||
.get("CI")
|
||||
.isDefined)
|
||||
Test / parallelExecution := !(Properties.isMac && isCI)
|
||||
)
|
||||
|
||||
lazy val commonTestSettings = Seq(
|
||||
|
|
Loading…
Add table
Reference in a new issue