-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
115 lines (97 loc) · 3.17 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
plugins {
// Apply the java plugin to add support for Java
id 'java'
// Apply the application plugin to add support for building a CLI application.
id 'application'
/* Project specific plugins */
id 'checkstyle'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'distribution'
id 'jacoco'
id 'org.openjfx.javafxplugin' version '0.0.8'
id 'org.owasp.dependencycheck' version '5.3.2.1'
id 'org.sonarqube' version '2.8'
}
repositories {
jcenter()
}
dependencies {
// Use JUnit Jupiter API for testing.
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.2'
// Use JUnit Jupiter Engine for testing.
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.6.2'
/* Project specific dependencies */
compile 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
compile 'com.jfoenix:jfoenix:9.0.9'
compile 'javax.persistence:javax.persistence-api:2.2'
compile 'mysql:mysql-connector-java:5.1.13'
compile 'org.apache.logging.log4j:log4j-api:2.13.3'
compile 'org.apache.logging.log4j:log4j-core:2.13.3'
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.13.3'
compile 'org.hibernate:hibernate-core:5.4.15.Final'
implementation 'com.calendarfx:view:11.8.3'
implementation('org.controlsfx:controlsfx:11.0.1') {
exclude group: 'org.controlsfx'
}
testCompile 'org.mockito:mockito-core:3.3.3'
testCompile 'org.testfx:testfx-core:4.0.16-alpha'
testCompile 'org.testfx:testfx-junit5:4.0.16-alpha'
/* Team C specific dependencies */
compile 'de.jensd:fontawesomefx:8.2'
}
group = 'at.fhv.teamb.symphoniacus'
version = '0.3.1'
application {
mainClassName = 'at.fhv.teamb.symphoniacus.Main'
applicationDefaultJvmArgs = [
'--add-opens=javafx.base/com.sun.javafx.binding=ALL-UNNAMED',
'--add-opens=javafx.base/com.sun.javafx.event=ALL-UNNAMED',
'--add-opens=javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED',
'--add-opens=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED',
'--add-opens=javafx.graphics/com.sun.javafx.css=ALL-UNNAMED',
'--add-opens=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED',
'--add-opens=javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED'
]
}
test {
useJUnitPlatform()
}
/* Checkstyle configuration */
checkstyle {
toolVersion = '8.32'
configFile = file("${rootDir}/config/checkstyle/checkstyle.xml")
}
checkstyleMain.exclude '**/at/fhv/orchestraria/**'
checkstyleTest.exclude '**/at/fhv/orchestraria/**'
/* JavaFX configuration */
javafx {
version = '14'
modules = ['javafx.controls', 'javafx.fxml', 'javafx.graphics', 'javafx.media']
}
/* JaCoCo configuration */
jacoco {
toolVersion = '0.8.5'
}
jacocoTestReport {
reports {
xml.enabled true
}
}
shadowJar {
archiveFileName = 'Symphoniacus.jar'
mergeServiceFiles()
manifest {
attributes(
'Main-Class': "at.fhv.teamb.symphoniacus.Main"
)
}
}
distributions {
main {
distributionBaseName = 'main'
contents {
from shadowJar
}
}
}
build.dependsOn jacocoTestReport