2018-03-24 18:05:15 +01:00
|
|
|
lazy val commonSettings = Seq(
|
|
|
|
organization := "org.bitcoins",
|
|
|
|
name := "bitcoin-s-core",
|
2018-03-24 22:32:28 +01:00
|
|
|
version := "0.0.1-SNAPSHOT",
|
2018-03-24 18:05:15 +01:00
|
|
|
scalaVersion := "2.11.7"
|
|
|
|
)
|
|
|
|
|
|
|
|
lazy val appName = "bitcoin-s-core"
|
|
|
|
lazy val scalaV = "2.11.7"
|
|
|
|
lazy val slf4jV = "1.7.5"
|
|
|
|
lazy val logbackV = "1.0.13"
|
2018-03-28 17:19:22 +02:00
|
|
|
lazy val scalaTestV = "3.0.5"
|
2018-04-11 22:25:35 +02:00
|
|
|
lazy val scalacheckV = "1.13.4"
|
2018-03-24 18:05:15 +01:00
|
|
|
lazy val sprayV = "1.3.2"
|
2018-03-24 19:34:29 +01:00
|
|
|
lazy val bouncyCastleV = "1.55"
|
2018-03-24 18:05:15 +01:00
|
|
|
lazy val appDependencies = Seq(
|
2018-03-28 17:19:22 +02:00
|
|
|
"org.scalatest" %% "scalatest" % scalaTestV % "test",
|
2018-03-24 18:05:15 +01:00
|
|
|
"com.novocode" % "junit-interface" % "0.10" % "test",
|
|
|
|
"org.scalacheck" %% "scalacheck" % scalacheckV withSources() withJavadoc(),
|
|
|
|
|
|
|
|
("org.bitcoinj" % "bitcoinj-core" % "0.14.4" % "test").exclude("org.slf4j", "slf4j-api"),
|
2018-03-24 19:34:29 +01:00
|
|
|
"org.bouncycastle" % "bcprov-jdk15on" % bouncyCastleV,
|
2018-03-24 18:05:15 +01:00
|
|
|
|
|
|
|
"org.slf4j" % "slf4j-api" % slf4jV % "provided",
|
|
|
|
"ch.qos.logback" % "logback-classic" % logbackV % "test",
|
|
|
|
|
|
|
|
"io.spray" %% "spray-json" % sprayV % "test"
|
|
|
|
)
|
|
|
|
|
|
|
|
lazy val root = Project(appName, file(".")).enablePlugins().settings(
|
|
|
|
commonSettings,
|
|
|
|
libraryDependencies ++= appDependencies
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2017-08-10 20:13:34 +02:00
|
|
|
//test in assembly := {}
|
|
|
|
|
2018-02-15 18:58:23 +01:00
|
|
|
testOptions in Test += Tests.Argument(TestFrameworks.ScalaCheck, "-verbosity", "2")
|
2017-08-10 20:13:34 +02:00
|
|
|
|
2018-02-14 00:21:22 +01:00
|
|
|
//testOptions in Test += Tests.Argument("-oF")
|
|
|
|
|
2018-03-28 17:19:22 +02:00
|
|
|
//parallelExecution in Test := false
|
|
|
|
|
2017-08-10 20:13:34 +02:00
|
|
|
coverageExcludedPackages := ".*gen"
|
|
|
|
|
|
|
|
coverageMinimum := 90
|
|
|
|
|
|
|
|
coverageFailOnMinimum := true
|
|
|
|
|
|
|
|
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)
|
|
|
|
|
2018-01-22 17:15:12 +01:00
|
|
|
scalacOptions ++= Seq("-Xmax-classfile-name", "140")
|