-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
51 lines (47 loc) · 1.38 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven{
url uri('./repo')
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
//本地未发布先注释,同时注释web-demo中的 plugin
//classpath 'com.uis.methodinject:MethodInject:0.0.1-SNAPSHOT'
classpath 'com.uis.methodtimer:MethodTimer:0.0.1-SNAPSHOT'
//classpath 'com.uis:method_timer:0.0.3'
classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1'
}
}
allprojects {
repositories {
jcenter()
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
compileVer = 26
buildVer = '26.0.2'
minVer = 19
targetVer = 26
supportVer = '26.1.0'
Properties propLocal = new Properties()
File localFile = new File("local.properties")
if(localFile.exists()) {
propLocal.load(localFile.newDataInputStream())
}
Properties propModule = new Properties()
propModule.load(new File('modules.properties').newDataInputStream())
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}