-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
70 lines (57 loc) · 1.44 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
buildscript {
repositories {
google()
jcenter()
maven {
url 'https://api.mapbox.com/downloads/v2/releases/maven'
authentication {
basic(BasicAuthentication)
}
credentials {
username = "mapbox"
password = project.hasProperty('SDK_REGISTRY_TOKEN') ? project.property('SDK_REGISTRY_TOKEN') : System.getenv('SDK_REGISTRY_TOKEN')
}
}
}
dependencies {
apply from: "${rootDir}/gradle/dependencies.gradle"
if (SDK_REGISTRY == 'true') {
classpath pluginDependencies.mapboxSdkRegistry
}
}
}
plugins {
id 'groovy'
id 'jacoco'
}
group GROUP
version VERSION_NAME
sourceCompatibility = 1.8
repositories {
mavenCentral()
google()
jcenter()
}
jacoco {
toolVersion = "0.8.4"
reportsDir = file("$buildDir/reports/jacoco")
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled true
}
}
dependencies {
apply from: "${rootDir}/gradle/dependencies.gradle"
testImplementation dependenciesList.junit
implementation gradleApi()
}
apply from: "${rootDir}/gradle/checkstyle.gradle"
apply from: "${rootDir}/gradle/codenarc.gradle"
apply from: "${rootDir}/gradle/sdk-registry.gradle"
afterEvaluate {
tasks.findByName('check').dependsOn('checkstyle')
}
// TODO Add code coverage tool based on necessity.