Merge pull request #6310 from eed3si9n/wip/warn_version_scheme

Warn on missing versionScheme
This commit is contained in:
eugene yokota 2021-02-15 20:55:47 -05:00 committed by GitHub
commit 9692707d28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -3045,6 +3045,14 @@ object Classpaths {
)
},
publishConfiguration := {
val s = streams.value
val vs = versionScheme.value
if (vs.isEmpty)
s.log.warn(
s"""versionScheme setting is empty; set `ThisBuild / versionScheme := Some("early-semver")` or `Some("pvp")`
|so tooling can use it for evction errors etc - https://www.scala-sbt.org/1.x/docs/Publishing.html""".stripMargin
)
else ()
publishConfig(
publishMavenStyle.value,
deliverPattern(crossTarget.value),