This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
55 lines (47 loc) · 1.59 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
import groovyx.GroovyAndroidPlugin
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'org.codehaus.groovy:groovy-android-gradle-plugin:1.1.0'
}
}
ext {
runningOnJenkins = System.getenv('JENKINS_URL') != null
nexusReleasesRepository = getEnvOrProperty('NEXUS_RELEASES_REPOSITORY')
nexusSnapshotsRepository = getEnvOrProperty('NEXUS_SNAPSHOTS_REPOSITORY')
nexusUsername = getEnvOrProperty('NEXUS_USERNAME')
nexusPassword = getEnvOrProperty('NEXUS_PASSWORD')
compileSdkVersion = 24
buildToolsVersion = '24.0.3'
targetSdkVersion = 24
supportVersion = '24.2.1'
daggerVersion = '2.6.1'
retrofitVersion = '2.1.0'
butterknifeVersion = '8.4.0'
leakcanaryVersion = '1.5'
}
allprojects {
repositories {
jcenter()
maven { url "https://raw.github.com/laenger/maven-releases/master/releases" }
maven { url "https://raw.github.com/laenger/maven-releases/master/snapshots" }
}
plugins.withType(GroovyAndroidPlugin) {
dependencies {
testCompile 'org.codehaus.groovy:groovy:2.4.7:grooid'
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
testCompile 'cglib:cglib-nodep:3.2.4'
testCompile 'org.objenesis:objenesis:2.4'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
def getEnvOrProperty(String name) {
return System.getenv(name) ?: project.hasProperty(name) ? project[name] : '';
}