axion-release-plugin
axion-release-plugin copied to clipboard
Cannot sign commits - missing credentials provider
My .gitconfig is configured in the following way:
[user]
signingkey = 6ADCBD3FF206F341D2CF8E2C49D1B5ACCF53CA1C
[commit]
gpgsign = true
I have a hook which modifies a package.json and then commits it with:
val jsonFile = project.file("package.json")
hooks.preReleaseHooks.add(ReleaseHookAction { context: HookContext ->
val packageJson = json.parseToJsonElement(jsonFile.readText()).jsonObject.toMutableMap()
packageJson["version"] = JsonPrimitive(
project.rootProject.version.toString().toVersion().toString(Semver.Style.COMPACT)
)
jsonFile.writeText(json.encodeToString(packageJson))
context.commit(listOf(jsonFile.canonicalPath), "Bump '${project.name}'s 'package.json's version")
But when I use gradle release, the plugin crashes with the following message:
> Task :verifyRelease
Looking for uncommitted changes..
Skipping ahead of remote check
Checking for snapshot versions..
> Task :release FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':release'.
> missing credentials provider
@cwrau I'm going to update jgit (I also had problems with signing commits, but mine was resolved just by updating) #370 I'll get back to you with a snapshot release to test, ok? :)
That would be awesome, thanks for your help!
@cwrau could you test it simply by cloning this repository and building a snapshot from master branch? you can then publish it to your local maven for testing ;)
Sorry for taking so long!
When trying the new version, I get the following error;
shadow.org.eclipse.jgit.api.errors.ServiceUnavailableException: Signing service is not available
When I tried to debug, I removed all shadowing, as I couldn't really debug with it.
That fixed that problem, but then I got
unable to find associated secret key for public key: 49d1b5accf53ca1c
Which is funnily the same error I get when not running the locally built version 😅