bitcoin-s/inThisBuild.sbt
Chris Stewart dbd54ca55f
2022 11 11 sbt 1.8.0 (#4883)
* upgrade to scala 2.13.10

* Remove 2.13.8 from CI

* Try upgrading to sbt 1.8.0-RC1 to see if build works on CI

* Try to update scoverage to 2.0.6

* Upgrade sbt native packager to 1.9.11

* Upgrade to sbt 1.8.0
2022-11-16 12:05:59 -06:00

30 lines
858 B
Scala

import sbt.Keys.excludeLintKeys
import scala.util.Properties
val scala2_13 = "2.13.10"
ThisBuild / scalafmtOnCompile := !Properties.envOrNone("CI").contains("true")
ThisBuild / scalaVersion := scala2_13
ThisBuild / crossScalaVersions := List(scala2_13)
//https://github.com/sbt/sbt/pull/5153
//https://github.com/bitcoin-s/bitcoin-s/pull/2194
Global / excludeLintKeys ++= Set(
com.typesafe.sbt.packager.Keys.maintainer,
Keys.mainClass,
com.github.sbt.git.SbtGit.GitKeys.gitRemoteRepo
)
//needed so that we can use our versions with docker
//see: https://github.com/dwijnand/sbt-dynver#portable-version-strings
//https://github.com/bitcoin-s/bitcoin-s/issues/2672
ThisBuild / dynverSeparator := "-"
//don't require the leading 'v' on dynver versioning
//as that doesn't work with windows or mac versioning
ThisBuild / dynverVTagPrefix := false