-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
63 lines (59 loc) · 1.71 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
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* ************************************************************
* 文件:build.gradle 模块:component 项目:component
* 当前修改时间:2019年04月23日 18:23:20
* 上次修改时间:2019年04月21日 10:45:16
* 作者:Cody.yi https://github.com/codyer
*
* 描述:component
* Copyright (c) 2019
* ************************************************************
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "config-versions.gradle"
apply from: "config-define.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'
//多渠道打包
classpath 'com.leon.channel:plugin:2.0.3'
//添加bugly mapping上传
classpath 'com.tencent.bugly:symtabfileuploader:2.2.1'
}
}
allprojects {
repositories {
//本地Maven仓库地址
maven {
url LOCAL_REPOSITORY
}
google()
jcenter()
maven { url 'https://jitpack.io' }
// 友盟
maven { url 'https://repo1.maven.org/maven2/' }
}
configurations {
all {
resolutionStrategy {
force "androidx.lifecycle:lifecycle-livedata:2.1.0-alpha04"
force "androidx.lifecycle:lifecycle-livedata-core:2.1.0-alpha04"
force "androidx.arch.core:core-runtime:2.1.0-alpha01"
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task hello {
doLast {
println 'Hello world!'
}
}