-
Notifications
You must be signed in to change notification settings - Fork 55
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
Update grgit-core dependency version to 4.0.1 from 3.3.1 #141
Conversation
I use `gradle-git-properties` in a project of mine, and I ran into an issue that can only be solved by updating the `grgit-core` dependency version to `6.0.1`. The issue is that version `3.1.1` of `grgit-core` currently depends on an outdated version of `org.eclipse.jgit`, which is breaking my project with the following message: Execution failed for task ':generateGitProperties'. > No signature of method: org.eclipse.jgit.api.DescribeCommand.setTags() is applicable for argument types: (Boolean) values: [false] Possible solutions: setLong(boolean), setTarget(java.lang.String), setTarget(org.eclipse.jgit.lib.ObjectId), getClass(), equals(java.lang.Object) I believe that this upgrade will fix my issue, as well as possibly #140
@tha2015 I appreciate the quick response! I'll try putting a minimal example together to emulate what I'm experiencing. |
I can't seem to reproduce it on my Windows machine. However, I'm going to build a local version of |
Can you try gradle-git-properties 1.5.2 to see if it fixes the issue? I suspect that there is another plugin which also using a different of jgit (see #133 (comment) ) |
Version 1.5.2 resolves the issue. The only other plugin that I'm using that depends on a different version of |
I looked into spotless plugin and they seem to use jgit version 5.5 which is new. If we can find out the combination of spotless+gradle-git-properties which having the issue, it will be helpful. For the mean time, I would suggest you to use v1.5.2 until we know more about the issue and release a fix. I might take several days until we know more. Thanks, |
I'm using the latest version of Spotless in my project, which depends on version 5.5 of jgit, as you stated. If building my own version of |
I just noticed that my project also depended on a Gradle semantic versioning plugin, which depended on an older version of jgit (4.8.0), ultimately causing the issue. Everything is fine after removing the semantic versioning plugin, even when using Gradle 6.0.1 with version 2.2.0 of I'm sorry for thinking this was caused by this plugin! |
I use
gradle-git-properties
in a project of mine, and I ran into an issue that can only be solved by updating thegrgit-core
dependency version to6.0.1
.The issue is that version
3.1.1
ofgrgit-core
currently depends on an outdated version oforg.eclipse.jgit
, which is breaking my project's build with the following message:I believe that this upgrade will fix my issue, as well as possibly #140
Thanks!