// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { apply from: 'versions.gradle' //addRepos(repositories) repositories { google() jcenter() maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } mavenCentral() maven { url "https://jitpack.io" } // 友盟 maven { url 'https://dl.bintray.com/umsdk/release' } maven { url MAVEN_PUBLIC_URL credentials { username MAVEN_USERNAME password MAVEN_PASSWORD } } // // 私有仓库地址 // maven { url "http://lib.gcssloop.com/repository/gcssloop-central/" } } dependencies { classpath deps.android_gradle_plugin classpath deps.kotlin_gradle_plugin classpath deps.butterknife_gradle_plugin // classpath 'com.jakewharton:butterknife-gradle-plugin:10.1.0' // 知乎相册需要 classpath 'com.novoda:bintray-release:0.9.1' // emoji classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' } // repositories { // google() // jcenter() // mavenCentral() // maven { url "https://jitpack.io" } // // 友盟 // maven { url 'https://dl.bintray.com/umsdk/release' } // } } allprojects { repositories { // 支付宝 SDK AAR 包所需的配置 flatDir { dirs project(':uchat_account').file('libs') dirs project(':uchat_core').file('libs') } google() jcenter() maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } mavenCentral() maven { url "https://dl.bintray.com/rongcloud/maven" } maven { url "https://jitpack.io" } // 友盟 maven { url 'https://dl.bintray.com/umsdk/release' } maven { url MAVEN_PUBLIC_URL credentials { username MAVEN_USERNAME password MAVEN_PASSWORD } } maven { url 'https://dl.bintray.com/linkedme2016/lkme-deeplinks' } // // 私有仓库地址 // maven { url "http://lib.gcssloop.com/repository/gcssloop-central/" } } // 组件缓存更新时间设置(默认每次build都更新) configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'minutes' } } //allprojects { // addRepos(repositories) // subprojects { // project.configurations.all { // resolutionStrategy.eachDependency { details -> // if (details.requested.group == 'com.android.support' // && !details.requested.name.contains('multidex')) { // details.useVersion "27.0.2" // } // } // } // } // // // 组件缓存更新时间设置(默认每次build都更新) // configurations.all { // resolutionStrategy.cacheChangingModulesFor 0, 'minutes' // } //} task clean(type: Delete) { delete rootProject.buildDir }