// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { // ext.kotlin_version = '1.2.30' repositories { maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' } maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' } maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' } maven { url "https://jitpack.io" } mavenCentral() google() jcenter() maven { url 'https://maven.google.com/' name 'Google' } } dependencies { classpath 'com.android.tools.build:gradle:4.2.1' classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0' // classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' } maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' } maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' } maven { url "https://jitpack.io" } mavenCentral() google() jcenter() maven { url 'https://maven.google.com/' name 'Google' } } } task clean(type: Delete) { delete rootProject.buildDir } ext { android = [ minSdkVersion : 17, targetSdkVersion : 28, compileSdkVersion: 28, buildToolsVersion: "28.0.3", versionCode : 13, versionName : "v1.0.3" ] depsVersion = [ junitVersion : "4.12", appcompatV7Version : "28.0.0", stethoVersion : "1.5.0", fastjsonVersion : "1.2.39", xUtilsVersion : "2.6.14", okhttpVersion : "3.9.0", smartRefreshLayoutVersion : '1.0.5', BaseRecyclerViewAdapterHelperVersion: '2.9.30', smartTableVersion : '2.2.0', basePopupVersion : '2.1.5', permissonVersion : '2.0.0-rc12', switchViewVersion : "1.0.2", multiTypeFilePickerVersion : '1.0.8' ] deps = [ junit : 'junit:junit:' + depsVersion.junitVersion, appcompatV7 : 'com.android.support:appcompat-v7:' + depsVersion.appcompatV7Version, stetho : 'com.facebook.stetho:stetho:' + depsVersion.stethoVersion, fastjson : 'com.alibaba:fastjson:' + depsVersion.fastjsonVersion, xUtils : 'com.jiechic.library:xUtils:' + depsVersion.xUtilsVersion, okhttp : 'com.squareup.okhttp3:okhttp:' + depsVersion.okhttpVersion, switchView : 'com.github.luongvo:iOS-SwitchView:' + depsVersion.switchViewVersion, smartRefreshLayout : 'com.scwang.smartrefresh:SmartRefreshLayout:' + depsVersion.smartRefreshLayoutVersion, smartRefreshHeader : 'com.scwang.smartrefresh:SmartRefreshHeader:' + depsVersion.smartRefreshLayoutVersion, BaseRecyclerViewAdapterHelper: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:' + depsVersion.BaseRecyclerViewAdapterHelperVersion, smartTable : 'com.github.huangyanbin:SmartTable:' + depsVersion.smartTableVersion, basePopup : 'com.github.razerdp:BasePopup:' + depsVersion.basePopupVersion, permisson : 'com.yanzhenjie:permission:' + depsVersion.permissonVersion, recyclerview : 'com.android.support:recyclerview-v7:' + depsVersion.appcompatV7Version, MultiTypeFilePicker : 'com.vincent.filepicker:MultiTypeFilePicker:' + depsVersion.multiTypeFilePickerVersion, ] }