I am using the eclipse-wtp plugin (together with the war and the java plugin) which generates my web deployment assembly. I am mostly using default settings and even tried to strip down my build.gradle to essentials, but the problem seems to be related to the eclipse-wtp plugin itself.
When using the eclipse task I would expect the file “.settings/org.eclipse.wst.common.component” to be generated with the following content:
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="myDeployName">
<property name="context-root" value="myContextRoot"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/resources"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/java"/>
<wb-resource deploy-path="/" source-path="src/main/webapp"/>
// some dependent modules
...
</wb-module>
</project-modules>
But in fact it is generated with this content:
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="myDeployName">
<property name="context-root" value="myContextRoot"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/resources"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/java"/>
<wb-resource deploy-path="/" source-path="src/main/webapp"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/resources"/>
// some dependent modules
...
</wb-module>
</project-modules>
What’s even more suprising: When creating the file with the eclipseWtpComponent task everything works as expected. The problem only occurs when using the task “eclipse” to generate everything needed by the IDE,
I tested this with gradle-1.10 and gradle-1.11 but none of the two version works as expected.