diff --git a/build.sbt b/build.sbt index c1b7facbd..b4c31017c 100644 --- a/build.sbt +++ b/build.sbt @@ -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 }