raboof on main
Added support for different git… Merge pull request #197 from li… (compare)
raboof on main
Fix console reader issues (#219… (compare)
SethTisue on v2.0.0
scala> scala.sys.process.Process("git rev-parse --symbolic-full-name --abbrev-ref HEAD").!!.dropRight(1)
res0: String = master
git status
Error: Could not find or load main class org.eclipse.jgit.pgm.Main
[error] Nonzero exit code (1) running JGit.
// NOTE: this will always return 0 until sbt 0.13.1 due to the use of CustomOutput
if(code == 0) result else throw new MessageOnlyException("Nonzero exit code (" + code + ") running JGit.")
"org.eclipse.jgit" % "org.eclipse.jgit" % jgitVersion
useJGit
is not SettingKey
, it's a Setting
Setting
is already in ThisBuild
: https://github.com/sbt/sbt-git/blob/7e380cb63c7741bb42dad37d8f55b2bd917abca3/src/main/scala/com/typesafe/sbt/SbtGit.scala#L152def useJGit: Setting[_] = gitRunner in ThisBuild := JGitRunner
GitVersioning
and GitBranchPrompt
Some(“foo”)
from git.gitTagToVersionNumber
git status
from inside the shell when in sbt
. However, I am confused as to how to use the versioning feature of this plugin. in my build.sbt
i have a hardcoded value version := "1.1.5"
. I don't want this hardcoded value but rather want it generated from this plugin. Is this possible to do ?
show version