I assemble WAR for GWT application through gradle.
When GWT is included like
dependencies {
compile "com.google.gwt:gwt-user:2.5.1"
compile "com.google.gwt:gwt-dev:2.5.1"
...
}
then I have gwt-user.jar and gwt-dev.jar in resulting WAR file. They are not really needed and are big. If I delete these jars from WAR - application works well.
But when I try to assemble WAR without these jars inside using
dependencies {
providedCompile "com.google.gwt:gwt-user:2.5.1"
providedCompile "com.google.gwt:gwt-dev:2.5.1"
...
}
then the application cannot start in tomcat saying
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [application-context.xml]: Invocation of init method failed; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)
and other strange error messages.
How can I correctly exclude just gwt-user and gwt-dev jars from gradle build?