forked from liulilei/CoroutinePermissions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (46 loc) · 1.59 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.72'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.novoda:bintray-release:0.9.1'//添加
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url "https://jitpack.io"
}
maven {
url "https://dl.bintray.com/liul1/maven"
}
mavenCentral()
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
//统一声明配置
ext {
userOrg = 'liul1' //网站注册时候的用户名
groupId = 'com.github.lilei' //一般为上传工程的包名
uploadName = 'CoroutinePermissions' // 上传的名字,可为工程名
publishVersion = '1.0.1'//上传的版本号
desc = 'Kotlin 协程 一行代码动态申请权限(CoroutinePermissions)' //详细说明,可自己编辑
website = "https://github.com/liulilei/${rootProject.name}" //github地址
licences = ['Apache-2.0']
}