The Ear plugin is not generating WAR artifacts properly and the v1.x work around is no longer working with v2 and v2.1-rc-2. Using the samples provided with v2 and v2.1-rc-2 demonstrate this problem.
In specific, in v2.1-rc-2/samples/ear/earWithWar, when you run ‘gradle ear’ it generates an ear file, however the war project is not generated as a war… it’s generated as a jar file and placed in the ear file an ejb module. Not generating it as a war, means that the file extension is wrong and the additional resources are not included. As built, this sample ear is not spec compliant and won’t deploy.
Are there any work arounds to get this working with v2? After a couple hours of googling and playing with Gradle, I can’t get it to generate any spec-compliant ears.