-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
75 lines (62 loc) · 2.14 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
plugins {
id 'java'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.13'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'org.beryx.jlink' version '3.0.1'
}
group 'fr.elpine'
version '1.0'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.postgresql:postgresql:42.2.27'
implementation 'org.slf4j:slf4j-api:2.0.9'
implementation 'ch.qos.logback:logback-classic:1.4.14'
implementation 'com.opencsv:opencsv:5.9'
}
compileJava.options.encoding = 'UTF-8'
application {
mainModule = 'fr.elpine.astre'
mainClass = 'fr.elpine.astre.Controleur'
}
javafx {
version = '17.0.6'
modules = ['javafx.controls', 'javafx.fxml']
}
jar {
manifest {
attributes 'Implementation-Title': "astre", 'Main-Class': application.mainClass
}
}
jlink {
imageZip = project.file("${buildDir}/distributions/astre-image.zip")
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher{
name = 'Astre'
noConsole = true
jvmArgs = ['-Dlogback.configurationFile=./logback.xml']
}
jpackage {
skipInstaller = false
installerOptions += [
'--description', 'Astre Project',
'--app-version', '1.0',
'--copyright', 'Copyrigtht 2024 El-Pine',
'--license-file', 'LICENSE',
'--vendor', 'El-Pine'
]
if (org.gradle.internal.os.OperatingSystem.current().windows) {
imageOptions += ['--icon', 'src/main/resources/fr/elpine/astre/ihm/icon.ico']
installerOptions += ['--win-per-user-install', '--win-dir-chooser', '--win-menu', '--win-shortcut']
}
if (org.gradle.internal.os.OperatingSystem.current().linux) {
imageOptions += ['--icon', 'src/main/resources/fr/elpine/astre/ihm/icon.png']
installerOptions += ['--linux-menu-group', 'Office', '--linux-shortcut']
}
if (org.gradle.internal.os.OperatingSystem.current().macOsX) {
imageOptions += ['--icon', 'src/main/resources/fr/elpine/astre/ihm/icon.icns']
}
}
}