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

Error using version 1.5.0 | Execution failed for task ':generateGitProperties'. #107

Closed
varunmehta opened this issue Jun 5, 2018 · 7 comments
Labels
Milestone

Comments

@varunmehta
Copy link

spring-boot-version: 1.5.13

plugin version:
id "com.gorylenko.gradle-git-properties" version "1.5.0"

...
11:57:03.314 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Build operation 'Resolve org.eclipse.jgit.ui.jar (org.eclipse.jgit:org.eclipse.jgit.ui:5.0.0.201805301535-rc2)' completed
... 
11:57:03.323 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Build operation 'Resolve org.eclipse.jgit.jar (org.eclipse.jgit:org.eclipse.jgit:5.0.0.201805301535-rc2)' completed
...
Execution failed for task ':generateGitProperties'.
> No signature of method: org.eclipse.jgit.internal.storage.file.FileRepository.getRef() is applicable for argument types: (java.lang.String) values: [HEAD]
  Possible solutions: getAt(java.lang.String), getFS(), grep(), exactRef(java.lang.String), findRef(java.lang.String), getAllRefs()```
@varunmehta varunmehta changed the title Error using version 1.5.0 Error using version 1.5.0 | Execution failed for task ':generateGitProperties'. Jun 5, 2018
@cdmbr
Copy link

cdmbr commented Jun 5, 2018

Temporary kludge to avoid this error:

classpath ("gradle.plugin.com.gorylenko.gradle-git-properties:gradle-git-properties:+") {
    exclude group: "org.eclipse.jgit", module: "org.eclipse.jgit"
}
classpath "org.eclipse.jgit:org.eclipse.jgit:4.11.+"

@tha2015
Copy link
Collaborator

tha2015 commented Jun 5, 2018

If possible, can you provide a minimal build.gradle to reproduce the issue? Thanks.

@tha2015
Copy link
Collaborator

tha2015 commented Jun 5, 2018

Never mind, I can reproduce the issue now. Will provide a fix soon. Thanks for reporting.

@tha2015
Copy link
Collaborator

tha2015 commented Jun 5, 2018

This issue comes from grgit 2.1.1 which being used by this plugin (see ajoberstar/grgit#229 ). Specifically, grgit 2.1.1 using jgit with dynamic version range, so jgit 4.x is upgraded automatically to jgit 5.x when 5.x available recently (which is not backward compatible to 4.x).

Solution: We will need to upgrade the plugin dependency from grgit 2.1.1 to grgit 2.2.1 (using static version of jgit)

tha2015 added a commit that referenced this issue Jun 5, 2018
…ture of method: org.eclipse.jgit.internal.storage.file.FileRepository.getRef()) (#108)
tha2015 added a commit that referenced this issue Jun 5, 2018
…ture of method: org.eclipse.jgit.internal.storage.file.FileRepository.getRef())
@tha2015 tha2015 added the bug label Jun 5, 2018
@tha2015 tha2015 added this to the 1.5.1 milestone Jun 5, 2018
@tha2015
Copy link
Collaborator

tha2015 commented Jun 5, 2018

I have delivered the fix for this issue.

@n0mer Can you help to publish a new version to fix this critical issue soon? Thanks.

@tha2015
Copy link
Collaborator

tha2015 commented Jun 6, 2018

@varunmehta @cdmbr New version v1.5.1 is just published thanks to @n0mer

@varunmehta
Copy link
Author

Tested and works! Thanks a lot guys.

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

No branches or pull requests

3 participants