-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (49 loc) · 1.77 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
plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id 'application'
id 'eclipse'
id 'org.openjfx.javafxplugin' version '0.1.0'
id 'org.beryx.jlink' version '3.0.1'
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
javafx {
version = '21'
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.swing']
}
dependencies {
implementation 'io.github.mkpaz:atlantafx-base:2.0.1'
implementation 'org.kordamp.ikonli:ikonli-core:12.3.1'
implementation 'org.kordamp.ikonli:ikonli-javafx:12.3.1'
implementation 'org.kordamp.ikonli:ikonli-material2-pack:12.3.1'
}
ext {
// Main class (for manifest entry)
mainModule = 'RRG'
mainClassName = 'com.bm.rrgfx.Main'
}
application {
mainModule = project.mainModule // name defined in module-info.java
mainClass = project.mainClassName// mainClass is mandatory
//applicationDefaultJvmArgs = ["--add-exports", "javafx.base/com.sun.javafx.event=org.controlsfx.controls"]
}
jlink {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = project.mainModule
//jvmArgs = defaultValue: the arguments configured in the applicationDefaultJvmArgs property of the application extension
}
addExtraDependencies("javafx")
//With the jpackage task you can create a platform-specific installer for your application
jpackage {
jpackageHome = 'c:/workspace/tools/jdk-20.0.2+9'
installerOptions = ['--win-per-user-install', '--win-dir-chooser']
//*** PER DEBUG (fa partire l'exe con la console) ***
//imageOptions += ['--win-console']
//icon = project.appIco
//vendor = project.vendor
}
}