Clean up
Grails create-app
command generates many code we do not really need in the application. Let's clean it up.
Remove assets
We can remove grails-app/assets
folder because all required assets are provided by Vaadin.
Remove views
When we use Vaadin as UI framework, we need no .gsp
pages in our application. We can remove grails-app/views
.
Dependencies
There are not needed dependencies if we use Vaadin. We can exclude them globaly.
Add excludes in BuildConfig.groovy
as follows.
Verify what has been excluded by running
grails dependency-report
command. You can add a scope as the parameter, for example,grails dependency-report compile
,grails dependency-report runtime
and so on. In order to be sure that a dependency is excluded, rungrails clean-all
before the commands mentioned above.
The second step in clearing dependencies is to remove all dependencies and plugins that are generated by Grails. Dependencies and plugins part of BuildConfig.groovy
will then become like this.
Last step
Last updated
Was this helpful?