-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
92 lines (76 loc) · 1.98 KB
/
Copy pathbuild.gradle
File metadata and controls
92 lines (76 loc) · 1.98 KB
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
plugins {
id 'java'
id 'application'
id 'checkstyle'
id 'pmd'
id "com.github.spotbugs" version "6.0.26"
}
java.sourceCompatibility "1.16"
java.targetCompatibility "1.16"
group 'edu.rit.iste-422'
version '1.0-SNAPSHOT'
ext {
javaMainClass = 'Runner'
}
test {
testLogging.showStandardStreams = true
}
application {
mainClass = javaMainClass
}
task runCheckingFixture(type: JavaExec) {
group = "Execution"
description = "Run CheckingAccountTestFixture class"
classpath = sourceSets.test.runtimeClasspath
main = "CheckingAccountTestFixture"
}
task runSavingsFixture(type: JavaExec) {
group = "Execution"
description = "Run SavingsAccountTestFixture class"
classpath = sourceSets.test.runtimeClasspath
main = "SavingsAccountTestFixture"
}
task obfuscator(type: JavaExec) {
main = 'Obfuscator'
classpath = sourceSets.test.runtimeClasspath
}
task runObfuscatorUtils(type: JavaExec) {
group="Execution";
classpath=sourceSets.test.runtimeClasspath; main="ObfuscatorUtils"
}
repositories {
mavenCentral()
}
checkstyle {
configFile file("${project.rootDir}/config/checkstyle/sun_checks.xml")
showViolations = false
toolVersion = "10.19.0"
}
pmd {
ignoreFailures = true
consoleOutput = false
// toolVersion = "6.55.0"
toolVersion = "7.7.0" // v7 only works with Gradle 8.6+
ruleSets = [
"category/java/errorprone.xml",
// "category/java/design.xml",
"category/java/performance.xml"
]
}
spotbugs {
ignoreFailures = true
reportsDir = file("$buildDir/reports/spotbugs")
}
tasks.spotbugsMain {
reports.create("html") {
required = true
outputLocation = file("$buildDir/reports/spotbugs.html")
setStylesheet("fancy-hist.xsl")
}
}
dependencies {
testImplementation 'junit:junit:4.13.1'
testImplementation 'org.hamcrest:hamcrest-library:2.1'
implementation 'org.apache.logging.log4j:log4j-api:2.13.3'
implementation 'org.apache.logging.log4j:log4j-core:2.13.3'
}