jncultural/build.gradle

119 lines
3.4 KiB
Groovy
Raw Normal View History

2020-05-27 13:32:22 +08:00
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
2020-06-08 10:09:08 +08:00
mavenCentral()
2020-05-27 13:32:22 +08:00
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'
classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
classpath "com.alibaba:arouter-register:1.0.2"
2020-06-08 10:09:08 +08:00
classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.6'
2020-05-27 13:32:22 +08:00
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
subprojects {
//TODO 重复依赖问题
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex')) {
details.useVersion '28.0.0'//这个版本号设置为你想要的版本
}
if (details.requested.group == 'com.squareup.okhttp3'
&& !details.requested.name.contains('okhttp3')) {
details.useVersion '3.12.0'//这个版本号设置为你想要的版本
}
if (details.requested.group == 'com.squareup.okio'
&& !details.requested.name.contains('okio')) {
details.useVersion '1.15.0'//这个版本号设置为你想要的版本
}
}
}
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url "https://jitpack.io"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
gCompileSdkVersion = 29
2022-02-09 11:29:14 +08:00
gMinSdkVersion = 21
2020-05-27 13:32:22 +08:00
gTargetSdkVersion = 29
gVersionCode = 12
gVersionName = '1.1.2'
2020-05-27 13:32:22 +08:00
gBuildToolsVersion = "29.0.2"
// gVersionCode=26
// gVersionName='1.3.0'
//Router编译版本
gRouterApiVersion = '1.4.1'
gRouterCompileVersion = '1.2.2'
//appcompat
gAppcompatVersion_v7_28 = '28.0.0'
//constraint-layout
gConstraint_layout = '1.1.3'
//butterknife
gButterKnifeVersion = '10.2.1'
//Gson
gGsonVersion = '2.8.6'
//Retrofit
gRetrofitVersion = '2.5.0'
//Rxjava
gRxJavaVersion = '2.2.7'
gRxAndroid = '2.1.1'
//Okhttp
gOkHttp3Version = '4.5.0'
//EventBus
gEventBus = '2.4.0'
//ZXing
gZXingVersion = '3.3.0'
//视频播放g
gPlayerVersion = '6.3.1'
//图片压缩
gLubanVersion = '1.1.8'
//Rcyclerview扩展
gXRecyclerViewVersion = '1.5.9'
//rxview
gRxjavaBindingVersion = '2.1.1'
gPickerViewVersion = '4.1.6'
2020-06-08 10:09:08 +08:00
wheelVersion = '4.1.0'
2020-05-27 13:32:22 +08:00
gBoomMenu = '2.1.1'
gFilePicker = '1.8.0'
pickerViewVersion = '4.1.9'
//bottomNavBar
supportBottomNavBar = '2.0.5'
eventButsVersion = '3.1.1'
bannerVersion = '2.0.8'
plugVersion = '27.1.1'
pickerViewVersion = '4.1.6'
xRecyclerViewVersion = '1.5.9'
lfilepickerlibraryVersion = '1.8.0'
mIndicatorVersion = '1.5.0'
lubanVersio = '1.1.8'
//socket
gSocket = '4.2.2'
//Gson
supportGson = '2.8.5'
//Glide
supportGlide = '4.11.0'
2020-07-22 10:05:04 +08:00
2022-02-15 16:20:31 +08:00
gSmartRefreshLayoutVersion = '2.0.3'
2020-05-27 13:32:22 +08:00
leonidslibVersion = '1.3.2'
ijkPlayer = '0.8.8'
2020-07-20 15:51:07 +08:00
pdfVersion='2.8.2'
downloadVersion='1.7.7'
2020-05-27 13:32:22 +08:00
}