Closed mvysny closed 4 years ago
The exception, for future reference:
Caused by: java.lang.IllegalArgumentException: Cannot add extension with name 'vaadin', 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:119)
at org.gradle.internal.extensibility.DefaultConvention.addWithDefaultPublicType(DefaultConvention.java:220)
at org.gradle.internal.extensibility.DefaultConvention.create(DefaultConvention.java:125)
at com.vaadin.gradle.VaadinPlugin$_apply_closure1$_closure4.doCall(VaadinPlugin.groovy:112)
at com.vaadin.gradle.VaadinPlugin$_apply_closure1.doCall(VaadinPlugin.groovy:106)
at com.vaadin.gradle.VaadinPlugin.apply(VaadinPlugin.groovy:98)
When both
com.devsoap.plugin.vaadin
andcom.vaadin
plugins are used in the same project (usually the MPR), they both publishvaadin{}
Gradle configuration extension which conflicts and will make Gradle fail with an exception. The simplest solution is to rename the extension ofcom.vaadin
to something else. Options:com.vaadin
to rename the extension to something else only whencom.devsoap.plugin.vaadin
is discovered? ORcom.vaadin
extension permanently to something else.Possible new names:
vaadin10
vaadin14
vaadinFlow
@mstahv what is your opinion please?