-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (45 loc) · 1.26 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
plugins {
id 'application'
id 'com.dua3.javafxgradle7plugin' version '0.0.9'
id 'org.beryx.jlink' version '2.24.1'
}
application {
mainModule = 'TaskTimer'
mainClass = 'HuimangTech.App'
applicationName = 'TaskTimer'
}
repositories {
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/com.jfoenix/jfoenix
implementation 'com.jfoenix:jfoenix:9.0.10'
}
javafx {
version = "17"
modules = ['javafx.controls', 'javafx.fxml']
}
sourceSets {
main {
resources {
srcDirs = ["src/main/java"]
includes = ["**/*.fxml", "**/*.css", "**/*.png", "**/*.properties"]
}
}
}
jlink {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'TaskTimer'
jvmArgs = ['-Dlog4j.configurationFile=./log4j2.xml']
}
jpackage {
//imageOptions = ["--win-console"] // <--- for Debug
imageName = 'TaskTimer'
skipInstaller = true
installerName = 'TaskTimer'
installerType = 'exe'
imageOptions = ['--icon', 'src/main/java/resources/Images/TaskTimer.ico','--vendor', 'Trium']
}
forceMerge('log4j-api')
}