mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-19 09:52:09 +01:00
f586e25699
* Get Scala 2.13.4 compiling * Fix broken test case, in general use if() else() statements for Vectors rather than pattern match as I am unsure of how to correctly pattern match on Vector0,Vector1,...,Vector6() * Bump CI to 2.13.4 * OVerride CurrencyUnit.equals() so that it works on Scala 2.13.4, not sure why there was a regression here between Scala versions 2.13.4/2.13.3 * Add explicit unit tests making sure bitcoin/satoshi currency units are equivalent
21 lines
536 B
Scala
21 lines
536 B
Scala
import sbt.Keys.excludeLintKeys
|
|
|
|
import scala.util.Properties
|
|
|
|
val scala2_12 = "2.12.12"
|
|
val scala2_13 = "2.13.4"
|
|
|
|
scalafmtOnCompile in ThisBuild := !Properties.envOrNone("CI").contains("true")
|
|
|
|
scalaVersion in ThisBuild := scala2_13
|
|
|
|
crossScalaVersions in ThisBuild := List(scala2_13, scala2_12)
|
|
|
|
//https://github.com/sbt/sbt/pull/5153
|
|
//https://github.com/bitcoin-s/bitcoin-s/pull/2194
|
|
excludeLintKeys in Global ++= Set(
|
|
com.typesafe.sbt.packager.Keys.maintainer,
|
|
Keys.mainClass,
|
|
com.typesafe.sbt.SbtGit.GitKeys.gitRemoteRepo
|
|
)
|