1// Top-level build file where you can add configuration options common to all sub-projects/modules. 2ext { 3 // This will be set by local.properties file. By default it 4 // will use the public release version (24.0.0). You can run 5 // python build-local.py to build the local verison. That script will 6 // figure out the local library version based on maven metadata for leanback 7 // library and update local.properties file. Gradle build file in turn 8 // will pick up the settings from local.properties. 9 Properties properties = new Properties() 10 properties.load(project.rootProject.file('local.properties').newDataInputStream()) 11 supportLibVersion = properties.getProperty('LIBRARY_VERSION') 12 supportLibVersion = supportLibVersion ? supportLibVersion : "24.0.0" 13 localRepo = properties.getProperty('LOCAL_REPO') 14} 15 16buildscript { 17 repositories { 18 jcenter() 19 } 20 dependencies { 21 classpath 'com.android.tools.build:gradle:2.2.1' 22 23 // NOTE: Do not place your application dependencies here; they belong 24 // in the individual module build.gradle files 25 } 26} 27 28allprojects { 29 repositories { 30 maven { url "${localRepo}/out/host/gradle/frameworks/support/build/support_repo/"} 31 jcenter() 32 } 33} 34