forked from bitcoin-s/bitcoin-s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inThisBuild.sbt
28 lines (20 loc) · 854 Bytes
/
inThisBuild.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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