Hi Rene,
the new approach works. I have moved the META-INF into src/main/application to test whether gradle creates my ear zip properly. Here’s my solution:
ear {
into("META-INF") {
from("META-INF") {
exclude 'application.xml'
}
}
}