-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
49 lines (45 loc) · 1.52 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
//版本
ext.versions = [
'minSdk' : 23,
'compileSdk': 31,
'targetSdk' : 31,
]
//依赖
ext.deps = [
'core' : [
'ui' : 'com.github.caoyanglee:universalui:0.6.24'
]
]
//常规
ext.kotlin_version = '1.7.0'
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }//阿里云 maven & jcenter
maven { url "https://jitpack.io" } // 添加jitpack
maven { url 'https://maven.aliyun.com/repository/google' }//阿里云 google
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
allprojects {
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }//阿里云 maven & jcenter
maven { url "https://jitpack.io" } // 添加jitpack
maven { url 'https://maven.aliyun.com/repository/google' }//阿里云 google
}
//加上这些
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
}