buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.0.0' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4' } } allprojects { repositories { mavenCentral() def androidHome = System.getenv("ANDROID_HOME") maven { url "$androidHome/extras/android/m2repository/" } maven { url "$androidHome/extras/google/m2repository/" } def userHome = System.getenv("HOME") maven { url "$userHome/.m2/repository/" } flatDir { dirs 'misc/libs' } if (!project.hasProperty("ossrhUsername")) { ext.ossrhUsername = "no-username" } if (!project.hasProperty("ossrhPassword")) { ext.ossrhPassword = "no-password" } } }