buildscript { repositories { mavenLocal() jcenter() mavenCentral() } } repositories { mavenLocal() jcenter() mavenCentral() maven { url "https://kotlin.bintray.com/kotlinx" } } allprojects { ext { projectByName = { name -> for (subproject in rootProject.subprojects) { if (subproject.name == name) { return subproject } } return null } } }