Gradle plugin error: Cannot add extension with name 'jbbp', as there is an extension already registered with that name
int02h opened this issue · 5 comments
int02h commented
Plugin version: 2.0.4
Gradle: 7.4.2
I am trying to apply the JBBP plugin to a simple empty command line project and get this error.
Stacktrace:
Caused by: java.lang.IllegalArgumentException: Cannot add extension with name 'jbbp', as there is an extension already registered with that name.
at org.gradle.internal.extensibility.ExtensionsStorage.add(ExtensionsStorage.java:40)
at org.gradle.internal.extensibility.DefaultConvention.add(DefaultConvention.java:120)
at org.gradle.internal.extensibility.DefaultConvention.create(DefaultConvention.java:138)
at org.gradle.internal.extensibility.DefaultConvention.create(DefaultConvention.java:132)
at com.igormaznitsa.jbbp.plugin.gradle.JBBPPlugin.apply(JBBPPlugin.java:14)
at com.igormaznitsa.jbbp.plugin.gradle.JBBPPlugin.apply(JBBPPlugin.java:7)
I quickly checked out the source code here and I indeed see double creation of extension.
raydac commented
I have removed duplication, is it possible to check snapshot version on your side?
int02h commented
Yep, sure. Which version should I check?
raydac commented
I will add autotests for gradle to be sure that it works
raydac commented
I have published new version of Gradle plugin, 2.0.5
int02h commented
Yes, I confirm that 2.0.5 solved the issue. Thank you.