I am trying to migrate the DataImport add-on from platform version 6.x to 7.01. After I have chnaged to Vaadin version 8 and run “install AppComponent”, I got two exceptions.
Commons pack lang: resolved by changing it to lang3 as below: import org.apache.commons.lang3.StringUtils
I need help in the following error:
> Task :dataimport-global:compileGroovy FAILED
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/Users/mak/Projects/appComponents v7/cuba-component-data-import-master/modules/global/src/de/diedavids/cuba/dataimport/converter/JsonImportDataConverter.groovy: 4: unable to resolve class groovy.json.JsonSlurper
@ line 4, column 1.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':dataimport-global:compileGroovy'.
> Compilation failed; see the compiler error output for details.
You have to manually add the groovy-all in your build.gradle file.
Unfortunately you will get the next errors after that. The groovy test files will create errors.
You can try to temporarily remove these test files - this will prevent the new errors but I’m not sure if this solves the whole migration task.
Please let us all know if you get the app component running …
As said by steven, the dependencies changed in 7.0. They have to be replaced / re-added in case of groovy.
I assume you are working on a copy of the project directly. So why don’t you just create a fork of the project on Github, try to come up with the required changes and send a pull request. That would be awesome and help all the others that want to use the plugin as well…