The ear task in Gradle 1.8 generates an ejb module for each subdirectory of the configured ‘appDirName’. This leads to a broken application because those directories normally do not represent a valid ejb module (See the screenshots for an example).
I also tried to use the default project layout with src/main/application. Same result.
The exactly the same buildscript is working correctly with Gradle versions 1.5 and 1.6.
I have run into the same problem. A build that worked under 1.7 now fails. I get the exact same problem as Johannes, with a module of name META-INF specified in my application.xml.
Johannes, would you mind trying it out with the latest nightly build. I want to verify that your use case is covered. In case it doesn’t work, could you provide us with a same project?