12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
- apply from: "config.gradle"
- buildscript {
- repositories {
- google()
- jcenter()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:3.5.3'
- // add greendao plugin
- classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0'//greenDao生产代码插件
- classpath 'com.novoda:bintray-release:0.7.0'
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
- }
- allprojects {
- repositories {
- google()
- jcenter()
- mavenCentral()
- maven {
- url "http://mvn.gt.igexin.com/nexus/content/repositories/releases/"
- }
- maven { url 'https://jitpack.io' }
- //Maven URL地址
- }
- subprojects {
- project.configurations.all {
- resolutionStrategy.eachDependency { details ->
- if (details.requested.group == 'com.android.support'
- && !details.requested.name.contains('multidex')) {
- details.useVersion "27.1.0"
- }
- }
- }
- }
- // 组件缓存更新时间设置(默认每次build都更新)
- configurations.all {
- resolutionStrategy.cacheChangingModulesFor 0, 'minutes'
- }
- }
- task clean(type: Delete) {
- delete rootProject.buildDir
- }
|