How do I print the build output graph that shows the directories where my classes reside?

Ideally I would like a task or some kind of task action that can print the list of files and where they reside in my completed war file. I am able to print out a source tree of where the files are before they get copied but that doesn’t put my mind at ease for the final output of the directory file structure.

Something like this…

task showWar {
  dependsOn war
  doLast {
    zipTree(war.archivePath).visit {
      println it.path
    }
  }
}

Luke, Thank you so much that is exactly what I needed!!!

Glad that helps. Happy Gradling.