-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
130 lines (104 loc) · 4.09 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'java'
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
maven{ url 'https://maven.aliyun.com/repository/google'}
maven{ url 'https://maven.aliyun.com/repository/gradle-plugin'}
maven{ url 'https://maven.aliyun.com/repository/public'}
maven{ url 'https://maven.aliyun.com/repository/jcenter'}
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven{ url 'https://maven.aliyun.com/repository/google'}
maven{ url 'https://maven.aliyun.com/repository/gradle-plugin'}
maven{ url 'https://maven.aliyun.com/repository/public'}
maven{ url 'https://maven.aliyun.com/repository/jcenter'}
jcenter()
// required to find the project's artifacts
maven { url "https://jitpack.io" }
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
maven {
url 'https://clojars.org/repo/'
}
google()
}
// gradle.projectsEvaluated {
// tasks.withType(JavaCompile) {
// options.compilerArgs << "-Xbootclasspath/a:" + System.properties.get("java.home") + "/lib/rt.jar"
// }
// }
tasks.withType(JavaCompile){
options.encoding = "UTF-8"
sourceCompatibility = org.gradle.api.JavaVersion.VERSION_1_8
targetCompatibility = org.gradle.api.JavaVersion.VERSION_1_8
}
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
enabled = false
}
}
clean {
delete rootProject.buildDir
}
task customClean(type: Delete) {
delete rootProject.buildDir
}
clean.dependsOn customClean
ext {
// Sdk and tools
minSdkVersion = 21
targetSdkVersion = 28
compileSdkVersion = 30
versionCode =1
versionName ="1.0"
buildToolsVersion = '30.0.2'
retrofit = 'com.squareup.retrofit2:retrofit:2.3.0'
gson = 'com.google.code.gson:gson:2.8.0'
okhttp = 'com.squareup.okhttp3:okhttp:3.8.1'
adapter_rxjava3 = "com.squareup.retrofit2:adapter-rxjava3:2.9.0"
rxJava = 'io.reactivex.rxjava3:rxjava:3.0.9'
rxAndroid = 'io.reactivex.rxjava3:rxandroid:3.0.0'
navi = 'com.trello.navi2:navi:2.1.0'
lifecycle = 'androidx.lifecycle:lifecycle-runtime:2.2.0'
lifecycleProcessor = 'androidx.lifecycle:lifecycle-compiler:2.2.0'
lifecycleExtensions = 'androidx.lifecycle:lifecycle-extensions:2.2.0'
appCompat = 'androidx.appcompat:appcompat:1.1.0'
preferenceCompat = 'androidx.preference:preference:1.1.1'
supportAnnotations = 'androidx.annotation:annotation:1.1.0'
jsr305Annotations = 'com.google.code.findbugs:jsr305:3.0.2'
kotlinStdlib = "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
kotlin_stdlib_jdk8 = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
kotlin_coroutines_android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9"
fragmentktx = "androidx.fragment:fragment-ktx:1.2.5"
lifecycle_runtime_ktx = "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0"
lifecycle_livedata_ktx = "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0"
ifecycle_viewmodel_ktx = "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
lifecycle_service = 'androidx.lifecycle:lifecycle-service:2.3.0-beta01'
glide = 'com.github.bumptech.glide:glide:4.12.0'
glideProcessor = 'com.github.bumptech.glide:compiler:4.12.0'
}
gradle.beforeProject {project->
}
gradle.taskGraph.whenReady {taskGraph ->
}
//gradle.buildFinished{r
//
//}
configure(subprojects.findAll { it.name.startsWith("wear") }) {
apply plugin:'com.android.application'
}