title: how to dump all gradle values used for build
body: <p>we have a multi-project gradle build in android studio. every now and then we have to change something in it, and usually its only 1 or two lines of code, but its never easy knowing where to put those. I find it quite hard to know which properties exist where so I would love to have something like dump-everything where I could see all properties and their children at the point in time, this would make changes much easier</p>
  
  <p>I have found this</p>
  
  <pre><code>def void explainMe(it){
      //println "Examining $it.name:"
      println "Meta:"
      println it.metaClass.metaMethods*.name.sort().unique()
      println "Methods:"
      println it.metaClass.methods*.name.sort().unique()
      println "Depends On:"
      //println it.dependsOn.collect({it*.getName()})
      println "Properties:"
      println it.properties.entrySet()*.toString()
          .sort().toString().replaceAll(", ","\n")
  }
  </code></pre>
  
  <p>which is OK, but I would like to call it on top level scope and for all its children recursively, and in best case store output to file to be able to search through it. any idea  would be appreciated? alternatively would it be possible to attach debugger to gradle build and inspect /watch variables inside?</p>
  
  <p>thanks</p>