axion-release-plugin
axion-release-plugin copied to clipboard
class "org.eclipse.jgit.transport.JschConfigSessionFactory"'s signer information does not match signer information of other classes in the same package
I use this plugin in version '1.14.0'. The axion-release-plugin has a dependency on
project.ext.versions = [
jgit : '5.12.0.202106070339-r',
]
...
implementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: versions.jgit
I have another plugin which is using jgit:
dependencies {
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.2.0.202206071550-r'
// implementation 'org.eclipse.jgit:org.eclipse.jgit:5.13.0.202109080827-r'
}
When I update jgit in the other plugin from version 5 to version 6 I get the following error:
A problem occurred evaluating root project 'PluginComsumer'.
class "org.eclipse.jgit.transport.JschConfigSessionFactory"'s signer information does not match
signer information of other classes in the same package
I reduced the problem to a really simple no operation plugin. The plugin is really doing nothing just having a dependency on jgit.
The error does only occur in the main project as soon as I add
allprojects {
project.version = scmVersion.version
}
So I have two conditions:
- there must be a dependency to jgit v6 in another gradle plugin (not lib)
- the main project must be configured with
project.version = scmVersion.version
I guess this can be fixed by updating jgit. But maybe then the error occurs the other way around.