Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

MPR-based app compilation fails: com.vaadin.mpr.core.AbstractMprUIContent cannot be resolved #536

Open
mvysny opened this issue Feb 1, 2019 · 0 comments

Comments

@mvysny
Copy link

mvysny commented Feb 1, 2019

If you try to git clone https://gitlab.com/mvysny/karibu8-mpr-gradle-demo and remove workaround vaadinCompile("com.vaadin:mpr-core:1.1.0") from build.gradle.kts and compile it, the widgetset compilation will fail:

Errors in 'jar:file:/home/mavi/.gradle/caches/modules-2/files-2.1/com.vaadin/mpr-v8/1.1.0/fc35d630c9da190f6c8555521cfad27c1a4cf8c8/mpr-v8-1.1.0.jar!/com/vaadin/mpr/client/MprUIContentConnector.java'
Line 16: AbstractMprUIContentConnector cannot be resolved to a type
Line 1: The type com.vaadin.mpr.core.AbstractMprUIContent cannot be resolved. It is indirectly referenced from required .class files
Line 21: ComponentSettings cannot be resolved to a type
Line 11: Type mismatch: cannot convert from Class<MprUIContent> to Class<? extends Connector>
Line 15: The method getState() of type MprUIContentConnector must override or implement a supertype method
Line 6: The import com.vaadin.mpr.core.client.AbstractMprUIContentConnector cannot be resolved
Line 12: AbstractMprUIContentConnector cannot be resolved to a type
Line 7: The import com.vaadin.mpr.core.client.ComponentSettings cannot be resolved
Line 1: The type com.vaadin.mpr.core.client.ComponentSettings cannot be resolved. It is indirectly referenced from required .class files
Line 20: ComponentSettings cannot be resolved to a type
Line 20: The method getComponentSettings() of type MprUIContentConnector must override or implement a supertype method
Tracing compile failure path for type 'com.vaadin.mpr.client.MprUIContentState'
Errors in 'jar:file:/home/mavi/.gradle/caches/modules-2/files-2.1/com.vaadin/mpr-v8/1.1.0/fc35d630c9da190f6c8555521cfad27c1a4cf8c8/mpr-v8-1.1.0.jar!/com/vaadin/mpr/client/MprUIContentState.java'
Line 17: The import com.vaadin.mpr.core.client.ComponentSettings cannot be resolved
Line 29: ComponentSettings cannot be resolved to a type
Aborting compile due to errors in some input files

> Task :vaadinCompile FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':vaadinCompile'.
> Widgetset failed to compile. See error log.

The workaround is to add the following dependency:

vaadinCompile("com.vaadin:mpr-core:1.1.0")
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant