-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·102 lines (89 loc) · 2.35 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
102
plugins {
id "com.github.spotbugs" version "5.0.3"
}
plugins {
id "org.sonarqube" version "2.8"
}
allprojects {
repositories {
mavenCentral()
}
}
subprojects {
version = '2.3.1-SNAPSHOT'
}
ext {
slf4jVersion = '1.7.32'
log4jVersion = '2.17.1'
jaxbVersion = '2.4.0-b180830.0359'
jaxbRuntime = '2.4.0-b180830.0438'
jsonSimpleVersion = '4.0.0'
swingxVersion = '1.6.5-1'
jupyterVersion = '5.8.2'
jupyterPlatformVersion = '1.8.2'
assertjVersion = '3.21.0'
mockitoVersion = '4.1.0'
assertjSwingVersion = '3.17.1'
eqVerVersion = '3.1.11'
}
subprojects {
apply plugin: 'checkstyle'
checkstyle {
toolVersion = "8.29"
ignoreFailures = false
}
tasks.withType(Checkstyle).each { checkstyleTask ->
checkstyleTask.doLast {
reports.all { report ->
def outputFile = report.destination
if (outputFile.exists() && outputFile.text.contains("<error ")) {
throw new GradleException("There were checkstyle warnings! For more info check $outputFile")
}
}
}
}
}
subprojects {
apply plugin: 'pmd'
pmd {
toolVersion = "6.21.0"
ignoreFailures = false
reportsDir = file("$project.buildDir/reports/pmd")
ruleSets = []
ruleSetFiles = files(
"$rootProject.projectDir/config/pmd/rulesets.xml",
"$rootProject.projectDir/config/pmd/rulesets-tests.xml"
)
}
}
subprojects {
apply plugin: 'com.github.spotbugs'
spotbugs {
toolVersion = "4.5.2"
ignoreFailures = false
effort = "max"
excludeFilter = file("$rootProject.projectDir/config/spotbugs/excludeFilter.xml")
}
}
subprojects {
apply plugin: 'jacoco'
apply plugin: 'java'
jacoco {
toolVersion = "0.8.5"
}
jacocoTestReport {
reports {
html.enabled(true)
xml.enabled(true)
csv.enabled(true)
}
}
}
sonarqube {
properties {
property "sonar.projectKey", "Martin-Idel_mealplaner"
property "sonar.organization", "db6325a72edfe68173ffc6f44eb2b28a219c24f6899c4e7dc6595c3eadf9fcb4"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.login", "a67374f1a27e906ec29af1a22cc63b745147c93c"
}
}