Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 06 2022 11:40

    raboof on main

    Added support for different git… Merge pull request #197 from li… (compare)

  • Apr 06 2022 11:40
    raboof closed #197
  • Apr 06 2022 11:40
    raboof closed #196
  • Apr 06 2022 11:38
    raboof commented #197
  • Apr 06 2022 10:20
    liorregev commented #197
  • Apr 06 2022 10:20
    lightbend-cla-validator commented #197
  • Apr 06 2022 10:20
    liorregev synchronize #197
  • Apr 06 2022 09:52
    lightbend-cla-validator commented #197
  • Apr 06 2022 09:52
    liorregev synchronize #197
  • Apr 06 2022 08:41

    raboof on main

    Fix console reader issues (#219… (compare)

  • Apr 06 2022 08:41
    raboof closed #219
  • Apr 05 2022 19:10
    djspiewak synchronize #219
  • Apr 05 2022 18:53
    lightbend-cla-validator commented #219
  • Apr 05 2022 18:53
    djspiewak opened #219
  • Mar 29 2022 14:52
    SethTisue commented #215
  • Mar 29 2022 14:52
    armanbilge commented #215
  • Mar 29 2022 14:51
    SethTisue closed #215
  • Mar 29 2022 14:51
    SethTisue commented #215
  • Mar 29 2022 14:48

    SethTisue on v2.0.0

    (compare)

  • Mar 29 2022 14:36
    SethTisue closed #216
Boris Chazalet
@bchazalet
this is something I do in a couple of my projects
Steven Kessler
@stvnksslr
@bchazalet this looks like exactly what I was looking for thank you!
Boris Chazalet
@bchazalet
:thumbsup:
Greg Silin
@gregsilin
Hi everyone, where is sbt-git hosted these days? Neither sonatype nor the typesafe releases repo seem to have it anymore. The documentation doesn't specify a resolver and the default resolvers don't have it.
https://maven-repository.com/search?q=sbt-git doesn't surface anything either
halp?
however, the jar name doesn't have the version it and the resolution fails. I'll work around it but thought I'd report it.
Josh Suereth
@jsuereth
@gregsilin sorry didn't notice this. I can try to fix that
Ghost
@ghost~561280c7d33f749381a8525a
is there a way to get the date of the current HEAD commit? i just wanted to ask if there is maybe an undocumented setting somewhere before i start implementing the feature myself.
Boris Chazalet
@bchazalet
@leonardehrenfried I don't think there is
Pedro Silva
@pedromss
Hi there,
What are the imports I need in order to use .enablePlugins(GitVersioning) and .enablePlugins(GitBranchPrompt)? Intellij doesn't seem to be able to figure it out and the README of the project doesn't specify it...
Boris Chazalet
@bchazalet
@pedromss if you're using a build.sbt file and a sbt version > 0.13.5 you shouldn't have to import anything
if you're using a build.Scala file, try importing com.typesafe.sbt.{ GitVersioning, GitBranchPrompt }
Pedro Silva
@pedromss
Using a build.sbt file. For some reason when i opened the project this morning it recognized the plugin. Thx anyways.
Ghost
@ghost~561280c7d33f749381a8525a
in the last few days a few prs have been merged. is there a plan to release a new version at some stage?
Arkadiusz Komarzewski
@akkomar
Hi everyone, is there a way to generate version number with sbt-git exactly the same way as git describe --tags --match "[0-9]*" works?
I have lots of lightweight tags in my repo and I'd like to only take into account annotated tags matching predefined pattern for version number generation
Boris Chazalet
@bchazalet

@akkomar have you seen git.useGitDescribe := true and

git.gitTagToVersionNumber := { tag: String =>
  if(tag matches "[0-9]+\\..*") Some(tag)
  else None
}

in the readme file?

is that what you want?
Greg Pfeil
@sellout
I’m trying to resolve 47deg/sbt-microsites#117, which seems to be triggered by sbt-ghpages using an old version of sbt-git. But the README for sbt-git is confusing, because it implies that there is a newer version than 0.8.5, but then makes it look like 0.8.5 is the current version (and I’m hoping there is a newer version, because 0.8.5 relies on an ancient org.eclipse.jgit, which I think is the root of the problem).
Greg Pfeil
@sellout
Ok, so it looks like the fix to JGit hasn’t actually been merged yet, so even forcing JGit 4.6.0 didn’t fix it. I’ll come whine about a new release once that’s sorted.
Bruno Bonfils
@asyd
Hello folks. I would like to know how to set the version of my docker (version in Docker :=) using git id. Note I'm a scala/sbt n00b, I tried version in Docker := git.baseVersion but off course that doesn't work
Bruno Bonfils
@asyd
I reply to myself: version in Docker := git.gitHeadCommit.value.get
Raj
@getmetorajesh
Any ideas on how I can access the sbt git inside a scala class. I want to show the current branch and git tag within my scala program, added sbt-git to plugins.sbt and tried to import but no luck
Andy Petrella
@andypetrella
@getmetorajesh you need a Build Info, I do it in the spark-notebook
Check the repo
Heiko Seeberger
@hseeberger
@dwijnand thanks for releasing 0.9.0!
Just in case the other maintainers would like to cut a release in the future: how is that done here? Do we have a doc for that?
Dale Wijnand
@dwijnand
So I've never collaborated on releasing an sbt plugin.
I'll ask Eugene how it's done.
so I don't know how you do this with mulitple maintainers releasing..
after updating the build a bit, the steps for releasing are: (1) git tag the repo, (2) run reload (to reset version), (3) run publish
Heiko Seeberger
@hseeberger
I think we can release directly to sbt on bintray. At least I can.
Heiko Seeberger
@hseeberger
Released 0.9.1.
Dale Wijnand
@dwijnand
sweet :)
Heiko Seeberger
@hseeberger
Yeah, glad that the machinery works ;-)
Heiko Seeberger
@hseeberger
Released 0.9.2. Now completely without depending on Log4j 1.
Anusha
@anushaBuzz_twitter
Hey, I'm new to using sbt-git. How I can set the log level? I keep seeing DEBUG messages.
Boris Chazalet
@bchazalet
@anushaBuzz_twitter you probably want to try adding the slf4j no-op as a dependency
see the known issue in the readme file: https://github.com/sbt/sbt-git#known-issues
Ghost
@ghost~561280c7d33f749381a8525a
what is the reason that sbt-git as well as many other plugins are deployed to bintray and not maven central?
in my experience bintray is way slower than maven central.
Boris Chazalet
@bchazalet
@leonardehrenfried I honestly don't know. Perhaps it's easier to setup an account on bintray?
Ghost
@ghost~561280c7d33f749381a8525a
i'm having a horrible time trying to get sbt-git to build on travis at the moment.
Boris Chazalet
@bchazalet
because of java 8?
Ghost
@ghost~561280c7d33f749381a8525a
no, downloads from repo.typesafe.com time out or they simply throw an error.
Boris Chazalet
@bchazalet
that may be related to the previous error you were having on travis then?