forked from codyer/ElegantBus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (46 loc) · 1.29 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* ************************************************************
* 文件:build.gradle 模块:ElegantBus 项目:ElegantBus
* 当前修改时间:2020年06月15日 14:54:49
* 上次修改时间:2020年06月15日 14:27:28
* 作者:Cody.yi https://github.com/codyer
*
* 描述:ElegantBus
* Copyright (c) 2020
* ************************************************************
*/
import java.util.function.Consumer
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "config-define.gradle"
apply from: "config-versions.gradle"
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'
// 使用github仓库代码
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
allprojects {
repositories {
//本地Maven仓库地址
maven {
url LOCAL_REPOSITORY
}
maven { url 'https://jitpack.io' }
google()
jcenter()
}
}
task clean(type: Delete) {
getSubprojects().forEach(new Consumer<Project>() {
@Override
void accept(final Project project) {
delete project.buildDir
}
})
delete rootProject.buildDir
}