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
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
val
s in the exported object, let me check it for ya: https://github.com/sbt/sbt-git/blob/master/src/main/scala/com/typesafe/sbt/SbtGit.scala#L14
gitCurrentTags
which gives you a Seq
of tags
git.gitCurrentTags
as a SettingKey
reload
to update those values...
git describe
within a custom sbt task that would have to invoke the corresponding sbt command, provided by the plugin... I did go that path for some things and it's not too pretty, but it should be feasible... the complicated piece with sbt is that you want to call a command (that needs a build state) from a task, which has none. There's a Task already to get the state, but I couldn't yet figure out how to read sbt's logged output for the describe command as something that the task can return as a value...