-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
98 lines (74 loc) · 3.05 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/7.3.3/userguide/building_java_projects.html
*/
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'
// JavaFX
id "org.openjfx.javafxplugin" version "0.0.14"
id 'io.github.fvarrui.javapackager.plugin' version "1.7.5"
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
// Use JUnit Jupiter for testing.
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.2'
// Needed for reading Excel input
implementation 'org.dhatim:fastexcel-reader:0.15.6'
// https://mvnrepository.com/artifact/org.dhatim/fastexcel
implementation 'org.dhatim:fastexcel:0.15.7'
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
implementation 'org.apache.logging.log4j:log4j-core:2.20.0'
annotationProcessor('org.apache.logging.log4j:log4j-core:2.20.0')
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api
implementation 'org.apache.logging.log4j:log4j-api:2.20.0'
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
implementation 'org.apache.commons:commons-lang3:3.13.0'
// https://mvnrepository.com/artifact/org.openjfx/javafx-base
implementation 'org.openjfx:javafx-base:20.0.2'
// https://mvnrepository.com/artifact/org.openjfx/javafx-graphics
implementation 'org.openjfx:javafx-graphics:20.0.2'
// https://mvnrepository.com/artifact/org.openjfx/javafx-fxml
implementation 'org.openjfx:javafx-fxml:20.0.2'
// https://mvnrepository.com/artifact/org.openjfx/javafx-controls
implementation 'org.openjfx:javafx-controls:20.0.2'
// https://mvnrepository.com/artifact/commons-io/commons-io
implementation 'commons-io:commons-io:2.13.0'
}
javafx {
version = '20.0.2'
modules = ['javafx.base', 'javafx.controls', 'javafx.graphics', 'javafx.fxml']
}
application {
// Define the main class for the application.
mainClass = 'org.ose.scheduler.SchedulerLauncher'
}
jar {
manifest {
attributes 'Main-Class': 'org.ose.scheduler.SchedulerLauncher'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
}
tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}
task packageScheduler(type: io.github.fvarrui.javapackager.gradle.PackageTask, dependsOn: build) {
// mandatory
mainClass = 'org.ose.scheduler.SchedulerLauncher'
additionalModulePaths = [file("$System.env.PATH_TO_FX_MODS")]
modules = ['javafx.base', 'javafx.controls', 'javafx.graphics', 'javafx.fxml']
// optional
bundleJre = true
generateInstaller = true
administratorRequired = false
}