-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
75 lines (64 loc) · 2.64 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.uploadInfo = [
'userOrg' : 'why8n',
'groupId' : 'com.whyn',
'artifactId_annotations': 'asmbutterknife-annotations',
'artifactId_plugin' : 'asmbutterknife-plugin',
'website' : 'https://github.com/Why8n/AsmButterknife',
'licences' : ['Apache-2.0'],
]
ext.versions = [
'asmbutterknife_annotations': '1.0.0',
'asmbutterknife_plugin' : '1.1.0',
'bintrayRelease' : '0.8.1',
'minSdk' : 15,
'compileSdk' : 27,
'versionCode' : 1,
'versionName' : '1.0',
'supportLibrary' : '27.0.2',
'androidPlugin' : '3.1.1',
'runner' : '1.0.1',
'espresso_core' : '3.0.1',
]
ext.deps = [
android : [
'gradlePlugin': "com.android.tools.build:gradle:${versions.androidPlugin}",
],
'support' : [
'compat' : "com.android.support:appcompat-v7:${versions.supportLibrary}",
'annotations' : "com.android.support:support-annotations:${versions.supportLibrary}",
'recyclerview': "com.android.support:recyclerview-v7:${versions.supportLibrary}",
],
junit : 'junit:junit:4.12',
runner : "com.android.support.test:runner:${versions.runner}",
'espresso_core': "com.android.support.test.espresso:espresso-core:${versions.espresso_core}",
]
ext.local_maven_repo_path = 'E:/code/Android/repos'
repositories {
google()
jcenter()
maven {//local maven repo path
url uri(local_maven_repo_path)
}
}
dependencies {
classpath "com.android.tools.build:gradle:${versions.androidPlugin}"
classpath "com.novoda:bintray-release:${versions.bintrayRelease}"
classpath "${uploadInfo.groupId}:${uploadInfo.artifactId_plugin}:${versions.asmbutterknife_plugin}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {//local maven repo path
url uri(local_maven_repo_path)
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}