git-changelog-gradle-plugin icon indicating copy to clipboard operation
git-changelog-gradle-plugin copied to clipboard

"No signature of method" Error when de.gliderpilot.semantic-release is used as well

Open miikeat opened this issue 2 years ago • 2 comments

I'm using de.gliderpilot.semantic-release and as we are not using github I wanted to try this plugin to create the changelog.

Sadly, after adding git-changelog-gradle-plugin:

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

miikeat avatar Sep 23 '21 15:09 miikeat

Just saw in the stacktrace that this might be an issue of semantic-release...

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

I'm going to create an Issue over there...

miikeat avatar Sep 23 '21 15:09 miikeat

I also do semantic versioning. But with a shared script, like this: https://github.com/tomasbjerre/gradle-scripts

tomasbjerre avatar Sep 25 '21 06:09 tomasbjerre