// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { //mavenLocal() google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' //无需再单独引用tinker的其他库 classpath "com.tinkerpatch.sdk:tinkerpatch-gradle-plugin:${TINKERPATCH_VERSION}" } } allprojects { repositories { //mavenLocal() google() jcenter() } } // See http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html. if (JavaVersion.current().isJava8Compatible()) { allprojects { tasks.withType(Javadoc) { options.addStringOption('Xdoclint:none', '-quiet') } } } subprojects { tasks.withType(JavaCompile) { sourceCompatibility = JavaVersion.VERSION_1_7 targetCompatibility = JavaVersion.VERSION_1_7 } } task clean(type: Delete) { delete rootProject.buildDir }