Skip to content

Commit

Permalink
Version is consumed from git (#33)
Browse files Browse the repository at this point in the history
Co-authored-by: Karel Cemus <[email protected]>
  • Loading branch information
KarelCemus and Karel Cemus authored Nov 7, 2023
1 parent fe45844 commit 40ccbb1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ pomExtra :=

// Publish settings
publishTo := sonatypePublishToBundle.value

enablePlugins(GitVersioning)
git.gitTagToVersionNumber := { tag: String =>
if(tag matches "[0-9]+\\..*") Some(tag)
else None
}
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// library release
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.21")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")

Expand Down

0 comments on commit 40ccbb1

Please sign in to comment.