SoruceSet for WAR plugin

I have two source sets:

sourceSets {
dev{
}
prd{
}
}

it produces tasks “processDevResources” and “processPrdResources” but then there is no “prdWar” task and “devWar” task. When running the war task “war” it picks up the normal tasks like “processResources”

Shouldn’t the WAR plugin generate tasks automatically per source set? how to do I go around this?