2016-10-31 16:58:46 +08:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
buildscript {
|
2019-11-23 22:01:31 +08:00
|
|
|
ConfigUtils.init(gradle)
|
2016-10-31 16:58:46 +08:00
|
|
|
repositories {
|
2019-07-14 18:25:56 +08:00
|
|
|
// use for debug plugin local
|
2019-11-23 22:01:31 +08:00
|
|
|
if (Config.depConfig.plugin_bus.useLocal || Config.depConfig.plugin_api.useLocal) {
|
2019-07-14 18:25:56 +08:00
|
|
|
maven() {
|
2020-03-26 11:56:03 +08:00
|
|
|
url new File("mavenLocal")
|
2019-07-13 20:51:18 +08:00
|
|
|
}
|
|
|
|
|
}
|
2017-10-27 23:20:55 +08:00
|
|
|
google()
|
2017-10-28 13:43:56 +08:00
|
|
|
jcenter()
|
2016-10-31 16:58:46 +08:00
|
|
|
}
|
2018-02-10 15:14:12 +08:00
|
|
|
|
2018-07-17 21:10:42 +08:00
|
|
|
dependencies {
|
2019-07-14 18:25:56 +08:00
|
|
|
for (def entrySet : ConfigUtils.getApplyPlugins().entrySet()) {
|
|
|
|
|
classpath entrySet.value.dep
|
2018-12-10 02:21:17 +08:00
|
|
|
}
|
2016-10-31 16:58:46 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
|
repositories {
|
2020-04-10 04:47:43 +08:00
|
|
|
maven { url "https://jitpack.io" }
|
2017-10-27 23:20:55 +08:00
|
|
|
google()
|
2017-10-28 13:43:56 +08:00
|
|
|
jcenter()
|
2016-10-31 16:58:46 +08:00
|
|
|
}
|
2018-04-26 15:20:52 +08:00
|
|
|
|
|
|
|
|
configurations.all {
|
|
|
|
|
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
|
|
|
|
|
|
|
|
|
|
resolutionStrategy.eachDependency {
|
|
|
|
|
if (it.requested.group == 'com.android.support'
|
2018-07-17 21:10:42 +08:00
|
|
|
&& !it.requested.name.contains('multidex')) {
|
2019-11-30 23:49:07 +08:00
|
|
|
it.useVersion Config.supportVersion
|
2018-04-26 15:20:52 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-11-23 15:46:47 +08:00
|
|
|
}
|
2016-10-31 16:58:46 +08:00
|
|
|
|
2017-11-23 15:46:47 +08:00
|
|
|
task clean(type: Delete) {
|
|
|
|
|
delete rootProject.buildDir
|
2020-03-26 11:56:03 +08:00
|
|
|
}
|