Skip to content

Commit

Permalink
SBT: in local builds, use simple -SNAPSHOT version
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Nov 29, 2024
1 parent 5261e85 commit 2a37097
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ def crossSetting[A](

inThisBuild(
List(
version ~= { dynVer =>
if (System.getenv("CI") != null) dynVer
else {
import scala.sys.process._
// drop `v` prefix
"git describe --abbrev=0 --tags".!!.drop(1).trim + "-SNAPSHOT"
}
},
scalaVersion := scala213,
crossScalaVersions := allScalaVersions,
organization := "org.scalameta",
Expand Down

0 comments on commit 2a37097

Please sign in to comment.