/
build.gradle
81 lines (66 loc) · 1.62 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
plugins {
id 'java'
id 'checkstyle'
id 'pmd'
id 'com.github.spotbugs' version '4.7.2'
id 'jacoco'
}
sourceCompatibility = 11
targetCompatibility = 11
checkstyle {
toolVersion = '9.0.1'
// checkstyleMain.enabled = false
checkstyleTest.enabled = false
}
pmd {
toolVersion = '6.40.0'
}
pmdMain {
ruleSetFiles = files("config/pmd/ruleset-config.xml")
ruleSets = []
enabled = false
}
pmdTest {
ruleSetFiles = files("config/pmd/ruleset-config-test.xml")
ruleSets = []
}
spotbugs {
toolVersion = '4.4.2'
}
spotbugsMain {
reports {
xml.enabled = false
html.enabled = true
}
}
spotbugsTest {
reports {
xml.enabled = false
html.enabled = true
}
}
repositories {
mavenCentral()
}
dependencies {
compileOnly 'net.jcip:jcip-annotations:1.0'
compileOnly 'com.github.spotbugs:spotbugs-annotations:3.1.3'
implementation group: 'commons-cli', name: 'commons-cli', version: '1.5.0'
implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
implementation files('lib/opencsv.jar')
implementation files('lib/wattdepot-lib-client.jar')
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.junit.vintage:junit-vintage-engine:5.8.1'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation 'org.junit.platform:junit-platform-runner:1.8.1'
}
jar {
from configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
wrapper {
gradleVersion = '7.2'
}
test {
useJUnitPlatform()
}