-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (83 loc) · 1.96 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
plugins {
id "maven"
id "eclipse"
id "idea"
id "checkstyle"
id "pmd"
id "com.github.ksoichiro.console.reporter" version "0.6.2"
id "org.xtext.builder" version "2.0.4" apply false
id "org.xtext.xtend" version "2.0.4" apply false
}
allprojects {
repositories {
jcenter()
}
apply plugin: "maven"
apply plugin: "jacoco"
apply plugin: "pmd"
apply plugin: "checkstyle"
group = "com.rigiresearch.${rootProject.name}"
version = "0.1.0"
jacoco {
toolVersion = "0.8.3+"
}
pmd {
ruleSetFiles = files("${rootDir}/config/pmd/ruleset.xml")
// It must be empty for exclusions to work
// From https://stackoverflow.com/a/34145485
ruleSets = []
}
checkstyle {
configFile = file("${rootDir}/config/checkstyle/checkstyle.xml")
}
}
subprojects { project ->
apply plugin: "java"
apply from: "${rootDir}/gradle/sourceLayout.gradle"
apply plugin: "eclipse"
apply plugin: "idea"
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
// Tests
testImplementation "org.junit.jupiter:junit-jupiter:5.4.2"
// Logs
implementation "ch.qos.logback:logback-classic:1.2.3"
// Annotation processor to ease development
implementation "org.projectlombok:lombok:1.18.6"
annotationProcessor "org.projectlombok:lombok:1.18.6"
}
configurations.all {
exclude group: "asm"
}
test {
useJUnitPlatform()
if (System.properties["skip.integration"] == "true") {
exclude "**/*integration*"
}
}
jacocoTestReport {
reports {
xml.enabled = false
csv.enabled = false
html {
enabled = true
destination = file("${buildDir}/reports/jacoco")
}
}
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.0
}
}
}
}
check.dependsOn jacocoTestCoverageVerification
test.finalizedBy(project.tasks.jacocoTestReport)
consoleReporter {
cobertura.enabled = false
}
}