It seems that previous versions had a problem so our build scripts that create the descriptor for the EAR in Eclipse add “.war” using eclipse.wtp.component.whenMerged:
whenMerged { wtpComponent ->
def modules = wtpComponent.getWbModuleEntries()
def toRemove = []
modules.each { module ->
if(module instanceof org.gradle.plugins.ide.eclipse.model.WbDependentModule) {
def archiveName = module.getArchiveName()
// if(archiveName.endsWith('.war')) {
// module.setArchiveName(module.getArchiveName() + '.war')
// }
This is no longer necessary. So when removing that workaround all is fine. Sorry for the confusion.
Thomas