-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (50 loc) · 1.55 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
buildscript {
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://repo.spring.io/libs-release" }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.1'
}
}
allprojects {
apply plugin: 'idea'
apply plugin: 'checkstyle'
group 'nl.fhict.happynews'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
maven { url "https://repo.spring.io/libs-release" }
maven { url "https://maven.google.com" }
}
checkstyle {
toolVersion = "7.6.1"
}
tasks.withType(Checkstyle).matching({ task -> !task.name.startsWith('checkstyleGenerated')}).all {
reports {
xml.enabled false
html.enabled true
}
rootProject.tasks.checkstyle.dependsOn it
}
tasks.withType(JacocoReport) {
rootProject.tasks.generateCoverageReports.dependsOn it
}
}
// Don't generate .ipr and .iws files when running 'idea' task
ideaProject.enabled = false
ideaWorkspace.enabled = false
task clean {
delete "${buildDir}/"
}
task installGitHooks(type: Copy) {
from new File(rootProject.rootDir, 'hooks/pre-commit')
into { new File(rootProject.rootDir, '.git/hooks') }
}
task checkstyle
task generateCoverageReports