Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version contains nonQualifier branch name. #34

Open
sureshg opened this issue May 31, 2021 · 4 comments
Open

Version contains nonQualifier branch name. #34

sureshg opened this issue May 31, 2021 · 4 comments

Comments

@sureshg
Copy link

sureshg commented May 31, 2021

After migrating to main from master the version string still shows the non-qualified branch name (which I changed to main).

  • Plugin version
plugins {
   id("fr.brouillard.oss.gradle.jgitver") version "0.10.0-rc03"
}

jgitver {
    useDirty = false
    nonQualifierBranches = "main"
}
  • Gradle Version
------------------------------------------------------------
Gradle 7.0.2
------------------------------------------------------------

Build time:   2021-05-14 12:02:31 UTC
Revision:     1ef1b260d39daacbf9357f9d8594a8a743e2152e

Kotlin:       1.4.31
Groovy:       3.0.7
Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM:          17-loom (Oracle Corporation 17-loom+7-342)
OS:           Mac OS X 11.4 x86_64
  • Version output
> Task :version
Version: 1.1.0-1-main
@sureshg
Copy link
Author

sureshg commented Jun 10, 2021

@McFoggy any idea whats wrong here?

@apiatti
Copy link

apiatti commented Nov 3, 2022

as reported many times and in multiple places, unfortunately and somehow, the configuration of jgitver is ignored. I still have no clue why.... This is indeed a bummer, as no one provided a solution for this

@sureshg
Copy link
Author

sureshg commented Nov 4, 2022

@apiatti yeah seems like this project is abandoned. Now I think the better option will be to fork this plugin and fix the bug there.

@apiatti
Copy link

apiatti commented Nov 4, 2022

@sureshg was able to find the root cause yesterday, with Gradle 7.2 the configuration of jgitver is completely ignored! Upgrading to 7.5 solved the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants