allprojects { task hello << { task -> println "I'm $task.project.name" } } subprojects { repositories { mavenCentral() } } buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:2.3.0' } }