gradle-semantic-release-plugin icon indicating copy to clipboard operation
gradle-semantic-release-plugin copied to clipboard

"No signature of method" Error when se.bjurr.gitchangelog.git-changelog-gradle-plugin is used as well

Open miikeat opened this issue 3 years ago • 0 comments

As we are not using github we can't use the existing changelog functionality of this plugin, so I was searching for a plugin to write the changelog to a file.

I wanted to try se.bjurr.gitchangelog.git-changelog-gradle-plugin but as soon as I added it:

plugins {
    ...
    id("de.gliderpilot.semantic-release") version "1.4.2"
    id("se.bjurr.gitchangelog.git-changelog-gradle-plugin") version "1.71.4"

I get the following error:

A problem occurred configuring root project 'demo'.
> 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()

In the stacktrace I saw that this might be an issue of semantic-release-plugin...

	at org.ajoberstar.grgit.service.BranchService.getCurrent(BranchService.groovy:61)
	at de.gliderpilot.gradle.semanticrelease.SemanticReleaseInitialStateService.memoizedMethodPriv$initialState(SemanticReleaseInitialStateService.groovy:44)
	at de.gliderpilot.gradle.semanticrelease.SemanticReleaseInitialStateService$_closure1.doCall(SemanticReleaseInitialStateService.groovy)
	at de.gliderpilot.gradle.semanticrelease.SemanticReleaseInitialStateService$_closure1.doCall(SemanticReleaseInitialStateService.groovy)
	at de.gliderpilot.gradle.semanticrelease.SemanticReleaseInitialStateService.initialState(SemanticReleaseInitialStateService.groovy)
	at de.gliderpilot.gradle.semanticrelease.SemanticReleaseInitialStateService$initialState.call(Unknown Source)
	at de.gliderpilot.gradle.semanticrelease.SemanticReleaseStrategy.selector(SemanticReleaseStrategy.groovy:71)
	at org.ajoberstar.gradle.git.release.base.VersionStrategy$selector.call(Unknown Source)
...

Is there a way to get both plugins working or do they just use conflicting versions of grgit?

miikeat avatar Sep 23 '21 15:09 miikeat