-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
42 lines (33 loc) · 1.06 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "config.gradle"
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'me.tatarka:gradle-retrolambda:3.7.0'
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
//本地maven库地址
// maven { url 'F:/MyProject/GitCoding/MvpPractice/maven_lib/local_maven_repository' }
//远程maven nexus地址(远程仓库一定要打开,允许匿名用户访问服务器,否则无法访问该url)
maven { url 'http://127.0.0.1:8081/repository/funny/' }
}
//清除maven库的缓存
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}