n0mer / gradle-git-properties

Gradle plugin for `git.properties` file generation
https://plugins.gradle.org/plugin/com.gorylenko.gradle-git-properties
Apache License 2.0
323 stars 55 forks source link

Gradle 6.0.1 No signature of method: org.ajoberstar.grgit.service.BranchService.current() #140

Closed sdelamo closed 4 years ago

sdelamo commented 4 years ago

I am getting an error when I apply the plugin to a Gradle 6.0.1 build.

Execution failed for task ':api:generateGitProperties'.
> No signature of method: org.ajoberstar.grgit.service.BranchService.current() is applicable for argument types: () values: []
  Possible solutions: getCurrent(), collect(), print(java.io.PrintWriter), collect(groovy.lang.Closure), print(java.lang.Object), collect(java.util.Collection, groovy.lang.Closure)
tha2015 commented 4 years ago

@sdelamo I suspect that there is another plugin using a different git library version and caused a version conflict. You can try to use v1.4.x to see if it fixes the issue (more info here https://github.com/n0mer/gradle-git-properties/issues/133#issuecomment-531011047 ) To have more info about the issue, can you run gradle with --stacktrace --debug and see what is the root cause?

tha2015 commented 4 years ago

This is not a bug. The other plugin is causing a version conflict.So closing this issue.