// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { // ext.kotlin_version = '1.2.30' repositories { google() jcenter() maven { url 'https://maven.google.com/' name 'Google' } } dependencies { classpath 'com.android.tools.build:gradle:3.1.3' 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 { google() jcenter() maven { url 'https://maven.google.com/' name 'Google' } maven { url "https://jitpack.io" } } } task clean(type: Delete) { delete rootProject.buildDir } ext { android = [ minSdkVersion : 16, targetSdkVersion : 28, compileSdkVersion: 28, buildToolsVersion: "28.0.3", versionCode : 2, versionName : "v2.0" ] 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', 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, 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, ] }