-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
56 lines (52 loc) · 1.7 KB
/
build.gradle
File metadata and controls
56 lines (52 loc) · 1.7 KB
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.61'
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.alibaba:arouter-register:1.0.2"
//jcenter plugins
//自动化maven打包插件 --》 https://github.com/bintray/gradle-bintray-plugin
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
//自动上传至Bintray平台插件 --》 https://github.com/dcendents/android-maven-gradle-plugin
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
//https://github.com/Kotlin/dokka
classpath 'org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.18'
//https://github.com/novoda/bintray-release
classpath 'com.novoda:bintray-release:0.9.1'
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://dl.bintray.com/vension/maven' }//审核前可使用
}
tasks.withType(Javadoc) {
options{
encoding "UTF-8"
charSet 'UTF-8'
links "http://docs.oracle.com/javase/7/docs/api"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
/**项目统一配置*/
ext {
compileSdkVersion = 29
minSdkVersion = 19
targetSdkVersion = 29
androidXCompatVersion = "1.1.0"
androidXCoreVersion = "1.1.0"
versionCode = 002
versionName = '0.0.2'
}