Skip to content

Gradle plugin error: Cannot add extension with name 'jbbp', as there is an extension already registered with that name #41

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

Closed
int02h opened this issue Jun 16, 2023 · 5 comments
Assignees
Labels

Comments

@int02h
Copy link

int02h commented Jun 16, 2023

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 raydac self-assigned this Jun 16, 2023
@raydac raydac added the bug label Jun 16, 2023
@raydac
Copy link
Owner

raydac commented Jun 16, 2023

I have removed duplication, is it possible to check snapshot version on your side?

@int02h
Copy link
Author

int02h commented Jun 16, 2023

Yep, sure. Which version should I check?

@raydac
Copy link
Owner

raydac commented Jun 16, 2023

I will add autotests for gradle to be sure that it works

raydac added a commit that referenced this issue Jun 16, 2023
raydac added a commit that referenced this issue Jun 17, 2023
@raydac
Copy link
Owner

raydac commented Jun 17, 2023

I have published new version of Gradle plugin, 2.0.5

@raydac raydac closed this as completed Jun 17, 2023
@int02h
Copy link
Author

int02h commented Jun 18, 2023

Yes, I confirm that 2.0.5 solved the issue. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants