Skip to content

Commit

Permalink
Correct version via sbt-dynver
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Sep 30, 2022
1 parent 16f3efe commit 84607e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion project/OmnidocBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import sbt.Keys._
import interplay._
import interplay.PlayBuildBase.autoImport._
import xerial.sbt.Sonatype.autoImport.sonatypeProfileName
import sbtdynver.DynVerPlugin.autoImport._

object OmnidocBuild {

Expand Down Expand Up @@ -116,13 +117,17 @@ object OmnidocBuild {

def projectSettings: Seq[Setting[_]] = Seq(
name := "play-omnidoc",
version := playVersion,
ThisBuild / playBuildRepoName := "omnidoc",
crossScalaVersions := Seq(ScalaVersions.scala212, ScalaVersions.scala213),
resolvers ++= Resolver.sonatypeOssRepos("snapshots") ++
Resolver.sonatypeOssRepos("releases"),
useCoursier := false, // so updatePlaydocClassifiers isn't empty
updateSbtClassifiers / useCoursier := true, // https://github.com/sbt/sbt/issues/5263#issuecomment-626462593
ThisBuild / dynverVTagPrefix := false, // Customise sbt-dynver's behaviour to make it work with tags which aren't v-prefixed
Global / onLoad := (Global / onLoad).value.andThen { s =>
dynverAssertTagVersion.value // Sanity-check: assert that version comes from a tag (e.g. not a too-shallow clone)
s // https://github.com/dwijnand/sbt-dynver/#sanity-checking-the-version
},
)

def dependencySettings: Seq[Setting[_]] = Seq(
Expand Down

0 comments on commit 84607e4

Please sign in to comment.