// Top-level build file where you can add configuration options common to all sub-projects/modules. /** * 导入全局gradle文件 */ apply from: "config.gradle" buildscript { repositories { google() // jcenter() // maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'https://maven.aliyun.com/repository/public/' } maven { allowInsecureProtocol = true url 'https://www.airkoon.cn/nexus/repository/airkoon-maven' credentials{ username("hongrd") password("hongrd123") } } mavenCentral() // add repository } dependencies { classpath 'com.android.tools.build:gradle:8.0.0' //避免butterKnife在library中使用出现id冲突 classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // add plugin classpath 'org.aspectj:aspectjtools:1.8.9' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.3' } } allprojects { repositories { google() // jcenter() maven { url "https://jitpack.io" } maven { url 'https://maven.aliyun.com/repository/public/' } // maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { allowInsecureProtocol = true url 'https://www.airkoon.cn/nexus/repository/airkoon-maven' credentials{ username("wum") password("12345678") } } /*flatDir { // 由于Library module中引用了 gif 库的 aar,在多 module 的情况下, // 其他的module编译会报错,所以需要在所有工程的repositories // 下把Library module中的libs目录添加到依赖关系中 dirs project(':common_base').file('libs') }*/ } } task clean(type: Delete) { delete rootProject.buildDir }