bitcoin-s/inThisBuild.sbt
Chris Stewart 328e1653a9
Drop support for scalac 2.12.x (#4704)
* Drop support for scalac 2.12.x

* Turn logging level OFF

* Remove more 2.12.x files
2022-09-03 10:16:22 -05:00

29 lines
854 B
Scala

import sbt.Keys.excludeLintKeys
import scala.util.Properties
val scala2_13 = "2.13.8"
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.typesafe.sbt.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