In the 1.6 release documentation for Init Scripts (http://www.gradle.org/docs/1.6/userguide/init_scripts.html), the example in section 5 (60.5) should have allprojects instead of allProjects in the init.gradle sample:
void apply(Gradle gradle) {
// ONLY USE COPORATE REPO FOR DEPENDENCIES
gradle.allProjects { project ->
project.repositories {
...
}
}
}
Using the example as is creates an error including the following:
* What went wrong:
A problem occurred evaluating initialization script.
> Could not find method allProjects() for arguments [EnterpriseRepositoryPlugin$_apply_closure1@16c1227] on build.