-
Notifications
You must be signed in to change notification settings - Fork 89
/
build.gradle
72 lines (63 loc) · 2.32 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
snapshot = Boolean.valueOf(SNAPSHOT)
buildCode = new Date().format('yyMMdd')
buildName = Long.toHexString(Long.valueOf(new Date().format('yyMMddhhmmss'))).toUpperCase()
versionUploaded = VERSION_NAME
versionName = "$versionUploaded build $buildCode"
// Version of Demo App in Google Play
versionCode = Integer.valueOf(buildCode + VERSION_CODE)
mavenVersionName = "$versionUploaded${if (snapshot) ".$buildName-SNAPSHOT" else ""}"
println("*************** PRE BUILD INFO ***************")
println("- maven version: $mavenVersionName")
println("- bottle version: $versionUploaded")
println("- google play version code: $versionCode")
println("- build name: $versionName")
println("- build code: $buildName")
println("**********************************************")
minSdkVersion = Integer.valueOf(MIN_SDK)
compileSdkVersion = Integer.valueOf(COMPILE_SDK)
targetSdkVersion = Integer.valueOf(TARGET_SDK)
buildToolsVersion = BUILD_TOOLS
javaVersion = JavaVersion.VERSION_1_7
libraries = [
gradle: '2.2.1',
kotlin: '1.1.4-3',
support: '23.4.0',
junit: '4.12',
leakcanary: '1.4',
okhttp: '2.4.0',
okhttp3: '3.4.2',
debugbottle: versionUploaded
]
}
repositories {
mavenCentral()
jcenter()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
dependencies {
classpath "com.android.tools.build:gradle:${libraries.gradle}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${libraries.kotlin}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
// Used for upload
version = VERSION_NAME
group = GROUP
repositories {
mavenCentral()
jcenter()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}