-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
117 lines (96 loc) · 3.08 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds
*/
plugins {
id 'java'
id "com.diffplug.spotless" version "5.17.1"
id 'checkstyle'
id 'pmd'
}
repositories {
mavenLocal()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
// jcenter()
mavenCentral()
}
spotless {
format 'misc', {
// define the files to apply `misc` to
target '*.gradle', '*.md', '.gitignore'
// define the steps to apply to those files
trimTrailingWhitespace()
indentWithTabs() // or spaces. Takes an integer argument if you don't like 4
endWithNewline()
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'
repositories {
// jcenter()
mavenLocal()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
mavenCentral()
}
dependencies {
implementation 'net.kieker-monitoring:kieker:2.0.0-SNAPSHOT'
implementation 'de.cau.cs.se.teetime:teetime:3.1.1-SNAPSHOT'
implementation 'com.beust:jcommander:1.78'
implementation 'ch.qos.logback:logback-classic:1.4.7'
implementation 'org.slf4j:slf4j-api:1.7.32'
compileOnly 'org.projectlombok:lombok:1.18.26'
testCompileOnly 'org.projectlombok:lombok:1.18.26'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.26'
// Use JUnit test framework
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation 'de.cau.cs.se.teetime:teetime:3.1.1-SNAPSHOT:test'
}
sourceCompatibility = '11'
apply plugin: 'pmd'
pmd { // is represented by the groovy class "PmdExtension"
// the used PMD version should be the same version as the PMD Eclipse plugin (https://marketplace.eclipse.org/content/eclipse-pmd) uses
toolVersion = pmdVersion
ignoreFailures = true
consoleOutput = true
// Clear the rule set first. Otherwise we would have a lot of additional rules in our rule set.
ruleSets = []
ruleSetFiles = files(rootProject.file("qa-configurations/pmdrules.xml"))
}
tasks.withType(Pmd) {
reports {
xml.required = true
html.required = true
}
}
apply plugin: 'checkstyle'
checkstyle {
toolVersion = checkstyleVersion
ignoreFailures = true
showViolations = false
configFile = rootProject.file("qa-configurations/checkstyle-rules.xml")
configDirectory = rootProject.file("qa-configurations")
}
tasks.withType(Checkstyle) {
reports {
xml.required = true
html.required = true
// html.stylesheet resources.text.fromFile(rootProject.projectDir.path + '/config/checkstyle-noframes-severity-sorted.xsl')
}
}
spotless {
format 'misc', {
// define the files to apply `misc` to
target '*.gradle', '*.md', '.gitignore'
// define the steps to apply to those files
trimTrailingWhitespace()
indentWithTabs() // or spaces. Takes an integer argument if you don't like 4
endWithNewline()
}
}
}