Skip to content

Commit

Permalink
Retrieve local snapshot version from git
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishiking committed Nov 14, 2019
1 parent 1ac6359 commit f14229d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import Dependencies._
import sbtcrossproject.CrossPlugin.autoImport.crossProject
def localSnapshotVersion = "2.2.3-SNAPSHOT"

def parseTagVersion: String = {
import scala.sys.process._
// drop `v` prefix
"git describe --abbrev=0 --tags".!!.drop(1).trim
}
def localSnapshotVersion: String = s"$parseTagVersion-SNAPSHOT"
def isCI = System.getenv("CI") != null

def scala211 = "2.11.12"
Expand Down

0 comments on commit f14229d

Please sign in to comment.