Skip to content

Commit

Permalink
Merge pull request #751 from mkurz/update_build.sbt
Browse files Browse the repository at this point in the history
`dynverSonatypeSnapshots` is set to true by sbt-ci-release anyway
  • Loading branch information
mkurz authored Apr 24, 2022
2 parents 21aca51 + 05b62ba commit 31ea966
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,10 @@ val scalacOpts = Seq(
// Customise sbt-dynver's behaviour to make it work with tags which aren't v-prefixed
ThisBuild / dynverVTagPrefix := false

// We are publishing snapshots to Sonatype
ThisBuild / dynverSonatypeSnapshots := true

// Sanity-check: assert that version comes from a tag (e.g. not a too-shallow clone)
// https://github.com/dwijnand/sbt-dynver/#sanity-checking-the-version
Global / onLoad := (Global / onLoad).value.andThen { s =>
val v = version.value
if (dynverGitDescribeOutput.value.hasNoTags)
throw new MessageOnlyException(
s"Failed to derive version from git tags. Maybe run `git fetch --unshallow`? Version: $v"
)
dynverAssertTagVersion.value
s
}

Expand Down

0 comments on commit 31ea966

Please sign in to comment.