-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
155 lines (135 loc) · 4.48 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
plugins {
id 'application'
id 'java'
id 'jacoco'
id 'com.diffplug.gradle.spotless' version '3.27.1'
id "io.freefair.lombok" version "5.0.0-rc6"
}
mainClassName = 'edu.wpi.cs3733.c21.teamY.Main'
repositories {
mavenCentral()
jcenter()
maven {
url 'https://apisite.crmyers.dev/maven'
}
}
dependencies {
implementation(
'de.jensd:fontawesomefx:8.9',
'com.jfoenix:jfoenix:8.0.10',
// You may comment out the database dependency you do not use
'org.xerial:sqlite-jdbc:3.30.1',
'org.apache.derby:derby:10.14.2.0',
'org.slf4j:slf4j-api:1.7.30',
'org.slf4j:slf4j-log4j12:1.7.30',
'org.slf4j:slf4j-simple:1.7.30',
'junit:junit:4.12',
//Used for emailing
'com.sun.mail:javax.mail:1.5',
'org.apache.commons:commons-email:1.5',
//Maps
'com.dlsc:GMapsFX:8.0.0',
//fuzzysearch
'me.xdrop:fuzzywuzzy:1.3.1',
//randomStringGenerator
'org.apache.commons:commons-lang3:3.12.0'
)
compile group: 'de.jensd', name: 'fontawesomefx', version: '8.9'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30'
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.30'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.30'
compile group: 'org.apache.derby', name: 'derby', version: '10.14.2.0'
compile group: 'com.jfoenix', name: 'jfoenix', version: '8.0.10'
compile group: 'com.sun.mail', name: 'javax.mail', version: '1.5'
compile group: 'org.apache.commons', name: 'commons-email', version: '1.5'
compile group: 'com.dlsc', name: 'GMapsFX', version: '8.0.0'
compile group: 'me.xdrop', name: 'fuzzywuzzy', version: '1.3.1'
compile 'org.apache.commons:commons-lang3:3.12.0'
testCompile(
'de.jensd:fontawesomefx:8.9',
"org.testfx:testfx-core:4.0.16-alpha",
'org.junit.jupiter:junit-jupiter:5.6.0',
'org.testfx:testfx-junit5:4.0.16-alpha',
'org.slf4j:slf4j-log4j12:1.7.30',
'org.apache.commons:commons-email:1.5',
'com.sun.mail:javax.mail:1.5',
'com.dlsc:GMapsFX:8.0.0',
'me.xdrop:fuzzywuzzy:1.3.1',
'org.apache.commons:commons-lang3:3.12.0',
)
}
test {
useJUnitPlatform()
}
jar {
manifest {
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
attributes 'Main-Class': mainClassName,
'Class-Path': configurations.runtime.files.collect { "$it.name" }.join(' ')
}
from configurations.runtime.collect { zipTree(it) }
}
def codeCoverageExcludes = [
'edu.wpi.cs3733.c21.teamY.App',
'edu.wpi.cs3733.c21.teamY.Main',
'edu.wpi.cs3733.c21.teamY.entity.Node',
'edu.wpi.cs3733.c21.teamY.entity.Edge',
'edu.wpi.cs3733.c21.teamY.entity.Service',
'edu.wpi.cs3733.c21.teamY.entity.ActiveGraph',
'edu.wpi.cs3733.c21.teamY.entity.TableNodes',
'edu.wpi.cs3733.c21.teamY.entity.Employee',
'edu.wpi.cs3733.c21.teamY.dataops.DataOperations',
'edu.wpi.cs3733.c21.teamY.dataops.GeneratePassword',
'edu.wpi.cs3733.c21.teamY.dataops.EmailUtils',
'edu.wpi.cs3733.c21.teamY.dataops.Settings',
'edu.wpi.cs3733.c21.teamY.algorithms.AlgorithmCalls',
'edu.wpi.cs3733.c21.teamY.pages.*'
]
jacoco {
toolVersion = "0.8.4"
}
jacocoTestCoverageVerification {
violationRules {
rule {
element = 'CLASS'
limit {
counter = 'CLASS'
value = 'COVEREDRATIO'
minimum = 1.0
}
excludes = codeCoverageExcludes
}
rule {
element = 'CLASS'
limit {
counter = 'LINE'
value = 'COVEREDRATIO'
minimum = 0.25
}
excludes = codeCoverageExcludes
}
rule {
element = 'CLASS'
limit {
counter = 'BRANCH'
value = 'COVEREDRATIO'
minimum = 0.25
}
excludes = codeCoverageExcludes
}
}
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
check.dependsOn jacocoTestCoverageVerification
jacocoTestCoverageVerification.dependsOn jacocoTestReport
compileJava.dependsOn 'spotlessApply'
spotless {
java {
googleJavaFormat()
}
}