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

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

Open
miikeat opened this issue Sep 23, 2021 · 0 comments

Comments

@miikeat
Copy link

miikeat commented Sep 23, 2021

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?

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