got some problems regarding the addon v-leaflet and gradle
The following errors occur after
gradle vaadinRun :
[ERROR]
Errors in 'jar:file:/C:/Users/martin.nigbur/.gradle/caches/modules-2/files-2.1/org.vaadin.addon/v-leaflet/1.0.0-b7/6316a69b3dfb48948c0b60aaa4678daac39b34f2/v-leaflet-1.0.0-b7.jar!/org/vaadin/addon/leaflet/client/LeafletCircleConnector.java'
[ERROR]
Line 73: No source code is available for type org.peimari.gleaflet.client.MouseOutListener; did you forget to inherit a required module?
[ERROR]
Line 63: No source code is available for type org.peimari.gleaflet.client.MouseOverListener; did you forget to inherit a required module?
[ERROR]
Line 38: No source code is available for type org.peimari.gleaflet.client.LatLng; did you forget to inherit a required module?
[ERROR]
Line 48: No source code is available for type org.peimari.gleaflet.client.MouseEvent; did you forget to inherit a required module?
did you found out a solution to this problem? I am trying to do the same thing, but did not found anything till now. Thank you in advance for your info.
Looks like gradle donāt seem to resolve the transitive g-leaflet dependency. Iām a total disaster with gradle, but maybe adding that directly could help?
Hmm, the vaadin vaadin gradel plugin should do that automatically. You could maybe try with its latest version and without the above configuration. Let me know if it donāt yet work and weāll ask the gradle expert directlye after taht.
Hi folks,
I tried this issue with the fi.jasoft.plugin.vaadin version 1.1.1 and 1.1.2 (latest).
I have the same problems as Martin.
If i try to run āgradle vaadinRunā gradle canāt find the sources while doing āvaadinCompileā.
Looks like v-leaflet is still not Vaadin 8 compatible and the Gradle Vaadin plugin will use Vaadin 8 by default (maybe Matti could quickly fix that in the addon ).
For now to make it work, you will need to tell the vaadin plugin to use vaadin 7. Here is a working gradle build file which you can adopt (
Note that you do not need to add the vaadin dependencies or boms yourself to your build, the plugin will do it for you! ).
plugins {
id 'fi.jasoft.plugin.vaadin' version '1.1.2'
}
vaadin {
version '7.+' // Use Vaadin 7 as v-leaflet is not yet compatible with Vaadin 8
}
dependencies {
compile 'org.vaadin.addon:v-leaflet:+'
}
// Tell Gradle to add Vaadin support
plugins {
id 'fi.jasoft.plugin.vaadin' version '1.1.2'
}
vaadin {
version '7.+' // Use Vaadin 7 as v-leaflet is not yet compatible with Vaadin 8
}
// Tell Gradle that we are working in idea
apply plugin: 'idea'
apply plugin: 'java'
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile group: 'com.vaadin.tapio', name: 'googlemaps', version: '1.3.4'
// https://mvnrepository.com/artifact/com.google.gwt.google-apis/gwt-ajaxloader
compile group: 'com.google.gwt.google-apis', name: 'gwt-ajaxloader', version: '1.1.0'
// https://mvnrepository.com/artifact/com.github.branflake2267/gwt-maps-api
compile group: 'com.github.branflake2267', name: 'gwt-maps-api', version: '3.10.0-alpha-7'
}
output:
Line 69: No source code is available for type com.google.gwt.maps.client.overlays.InfoWindowOptions; did you forget to inherit a required module?
Line 73: No source code is available for type com.google.gwt.maps.client.overlays.Marker; did you forget to inherit a required module?
Line 56: No source code is available for type com.google.gwt.maps.client.overlays.InfoWindow; did you forget to inherit a required module?
Line 69: No source code is available for type com.google.gwt.maps.client.MapWidget; did you forget to inherit a required module?
Line 58: No source code is available for type com.google.gwt.maps.client.events.closeclick.CloseClickMapHandler; did you forget to inherit a required module?