-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
88 lines (73 loc) · 2.35 KB
/
build.gradle
File metadata and controls
88 lines (73 loc) · 2.35 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
plugins {
id 'java'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.13'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group = 'it.unicam.cs.mpgc'
version = '1.0.0'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
repositories {
mavenCentral()
}
dependencies {
// JavaFX
implementation 'org.openjfx:javafx-controls:17.0.2'
implementation 'org.openjfx:javafx-fxml:17.0.2'
// JPA API e Hibernate
implementation 'javax.persistence:javax.persistence-api:2.2'
implementation 'org.hibernate:hibernate-core:5.6.15.Final'
implementation 'org.hibernate:hibernate-hikaricp:5.6.15.Final'
// Database & Connection Pool
implementation 'com.h2database:h2:2.1.214'
implementation 'com.zaxxer:HikariCP:5.0.1'
// JSON
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2'
// Logging
implementation 'org.slf4j:slf4j-api:1.7.36'
implementation 'ch.qos.logback:logback-classic:1.2.12'
// Utilità
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'org.apache.commons:commons-math3:3.6.1'
// Testing
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
testImplementation 'org.mockito:mockito-core:5.4.0'
testImplementation 'org.mockito:mockito-junit-jupiter:5.4.0'
testImplementation 'org.assertj:assertj-core:3.24.2'
}
javafx {
version = '17.0.2'
modules = ['javafx.controls', 'javafx.fxml']
}
application {
mainClass = 'it.unicam.cs.mpgc.jbudget122631.JBudgetApplication'
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}
}
// Configurazione Javadoc
javadoc {
options.encoding = 'UTF-8'
options.charSet = 'UTF-8'
options.windowTitle = "JBudget ${version} - API Documentation"
options.docTitle = "JBudget ${version} - Gestione Budget Familiare"
options.header = "<b>JBudget v${version}</b>"
options.addStringOption('Xdoclint:none', '-quiet')
options.links('https://docs.oracle.com/en/java/javase/11/docs/api/')
failOnError = false
}
// Crea un JAR eseguibile completo (fat jar)
shadowJar {
archiveBaseName.set('jbudget')
archiveVersion.set(version)
archiveClassifier.set('')
}