I wanted to do a some basic Groovy scripting (figuring out which spring-context.xml to add to the build path) and pass this information into the build. I'm aware that there are gradle.properties to achive similar things, but I wanted to do some additional Groovy scripting, so using init.gradle seems to be the way.
so my question: Is this the correct use of init.gradle if I want to pass a value into the build.gradle?
If yes: please consider documenting it a bit better at
I found http://www.gradle.org/0.9.2/docs/userguide/init_scripts.html as this page documents special cases like dependencies but not the very basic
Please consider including the the words "switching environments" somewhere in the user guide or tutorials or FAQ as it was really hard to find via Google.