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

cannot find jgit getRef #118

Closed
johannesjasper opened this issue Sep 24, 2018 · 1 comment
Closed

cannot find jgit getRef #118

johannesjasper opened this issue Sep 24, 2018 · 1 comment

Comments

@johannesjasper
Copy link

johannesjasper commented Sep 24, 2018

When I am running generateGitProperties I get the following error message:

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()

It seems to be related to #107 .
As far as I can make out, gradle-git-properties:1.5.2 uses grgit:2.2.1 which in turn uses jgit:4.11.0.201803080745-r. In that version getRef is still availbale but marked as deprecated.
In later versions it is removed in favour of findRef.

Is it possible that somehow, somewhere a newer version of grgit or jgit is used?

@johannesjasper
Copy link
Author

johannesjasper commented Sep 24, 2018

Never mind. I also had com.netflix.nebula:gradle-lint-plugin:latest.release included which used jgit:5.0.1.201806211838-r in its latest release. Downgrading it to 9.+ solves 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

1 participant