Other jars that are listed in compile
section did disappear from WAR too. It can be quickchecked (you may not assemble the whole war) with
gradle :dependencies
and checking providedCompile
section. In my case it was validation-api
as subdependency of gwt-user.
+--- com.google.gwt:gwt-user:2.5.1
| +--- javax.validation:validation-api:1.0.0.GA
| \--- org.json:json:20090211
+--- com.google.gwt:gwt-dev:2.5.1
| \--- org.json:json:20090211
\--- javax.servlet:servlet-api:2.5
It is required by the app and its jar was removed resulting WAR.
To persist them, I had to write the following in build.gradle:
providedCompile ("com.google.gwt:gwt-user:$gwtVersion") {
transitive = false;
}
providedCompile ("com.google.gwt:gwt-dev:$gwtVersion") {
transitive = false;
}
and everything went ok.