nemerosa / versioning

Gradle plug-in to generate version information from the SCM branch (Git or Svn)
MIT License
200 stars 40 forks source link

MissingMethodException with gradle 5.2.1 #60

Open denisrossi opened 5 years ago

denisrossi commented 5 years ago

Using gradle 5.2.1 and running the task versionDisplay the following error occurs:

Caused by: groovy.lang.MissingMethodException: No signature of method: org.eclipse.jgit.internal.storage.file.FileRepository.getRef() is applicable for argument types: (String) values: [HEAD]
Possible solutions: getAt(java.lang.String), getFS(), grep(), exactRef(java.lang.String), findRef(java.lang.String), getAllRefs()
        at org.ajoberstar.grgit.service.BranchService.current(BranchService.groovy:59)
        at org.ajoberstar.grgit.service.BranchService.getCurrent(BranchService.groovy:70)
        at net.nemerosa.versioning.git.GitInfoService.getInfo(GitInfoService.groovy:49)
        at net.nemerosa.versioning.SCMInfoService$getInfo.call(Unknown Source)
        at net.nemerosa.versioning.VersioningExtension.computeInfo(VersioningExtension.groovy:195)
        at net.nemerosa.versioning.VersioningExtension.getInfo(VersioningExtension.groovy:182)
        at net.nemerosa.versioning.VersioningExtension_Decorated.getInfo(Unknown Source)