Ear Generation - War archivepath

Hi, I am able to generate multiple war using “task task1” task task2" and create multiple wars using createDists. But when I am trying to build ear , the war archive path is including only one war and missing out another war. My settings.gradle includes both root project with two different wars. Also, my application.xml has both war files in context root. However, its including only one war file and missing out other war file