-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (53 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.4.32'
ext.kotlin_coroutines_version = '1.4.1'
ext.objectboxVersion = '2.9.1'
repositories {
google()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url "https://www.jitpack.io" }
//友盟更新远程仓库
maven { url 'https://repo1.maven.org/maven2/' }
maven {url 'http://maven.aliyun.com/nexus/content/repositories/releases/'}
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
//数据库操作框架
classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0'
classpath "io.objectbox:objectbox-gradle-plugin:$objectboxVersion"
}
}
allprojects {
repositories {
google()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url "https://www.jitpack.io" }
//友盟更新远程仓库
maven { url 'https://repo1.maven.org/maven2/' }
maven {url 'http://maven.aliyun.com/nexus/content/repositories/releases/'}
mavenCentral()
}
}
ext {
minSdkVersion = 21
targetSdkVersion = 30
compileSdkVersion = 30
buildToolsVersion ="30.0.3"
versionCode = 1
versionName = "1.0.0"
dbVersion = 1
recyclerviewVersion="1.1.0"
preferenceVersion="1.1.0"
annotationVersion="1.1.0"
ottoVersion="1.3.8"
ijkVersion="0.8.8"
core_ktx="1.3.2"
lifecycle_ktx="2.2.0"
javaVersion="1.8"
}
task clean(type: Delete) {
delete rootProject.buildDir
}