Changing artifact layout when building a war

(Paul Jimenez) #1

I’ve got one project that produces some build artifacts and I wnat to be able to essentally change their layout when I put them into a war.

I’m doing:

war {

from files(project(’:projectA’).file(“build/out/A”)) {



from files(project(’:projectA’).file(“build/out/B”)) {

into (‘yyy’)


from files(project(’:projectA’).file(“build/out/C”)) {

into (‘zzz’)

} }

but everything ends up in zzz/! am I missing something? doing it wrong? bug in gradle? what?

(Paul Jimenez) #2 has the answer - somehow the files() in the above is causing problems.