-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.gradle
More file actions
129 lines (110 loc) · 3.28 KB
/
build.gradle
File metadata and controls
129 lines (110 loc) · 3.28 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
plugins {
id 'java'
id 'eclipse'
id 'application'
id 'distribution'
id 'com.gradleup.shadow' version '9.1.0'
id 'org.openjfx.javafxplugin' version '0.1.0'
id 'org.beryx.jlink' version '3.1.2' // Add this for better JavaFX packaging
}
application {
mainClass = 'com.portalmedia.embarc.gui.Launcher'
}
// GUI Setings
//mainClass = 'com.portalmedia.embarc.gui.Launcher'
// CLI Settings
//mainClassName = 'com.portalmedia.embarc.cli.Main'
version = '1.4'
repositories {
mavenCentral()
mavenLocal()
}
sourceSets {
main {
java {
srcDirs = ['src/main']
}
resources {
srcDirs = ['src/main', 'src/resources']
}
}
/*
test {
java {
srcDirs = ['src/tests']
}
resources {
srcDir 'tests/resources'
}
}
*/
}
javafx {
version = '21'
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.base', 'javafx.graphics' ]
configuration = 'implementation'
run.jvmArgs = ['--add-exports=javafx.graphics/com.sun.javafx.css.parser=ALL-UNNAMED']
}
dependencies {
implementation 'commons-cli:commons-cli:1.10.0'
implementation 'commons-collections:commons-collections:3.1'
implementation 'commons-io:commons-io:2.20.0'
implementation 'commons-lang:commons-lang:2.6'
implementation 'org.kordamp.ikonli:ikonli-javafx:12.3.1'
implementation 'org.kordamp.ikonli:ikonli-fontawesome5-pack:12.3.1'
implementation 'org.kordamp.ikonli:ikonli-materialdesign-pack:12.3.1'
implementation 'javax.activation:activation:1.1.1'
implementation 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359'
implementation 'net.byteseek:byteseek:2.0.3'
implementation 'net.sf.supercsv:super-csv:2.4.0'
implementation 'net.sf.trove4j:trove4j:3.0.3'
implementation 'org.apache.tika:tika-core:3.2.2'
implementation 'org.controlsfx:controlsfx:11.2.2'
implementation 'org.dizitart:nitrite:3.1.0'
implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.5'
implementation 'org.json:json:20250517'
implementation files('embARC-maj/target/classes')
implementation 'uk.gov.nationalarchives:droid-core:6.9.4'
implementation 'uk.gov.nationalarchives:droid-core-interfaces:6.9.4'
implementation gradleApi()
implementation 'junit:junit:4.13.2'
// Explicit JavaFX dependencies for runtime
runtimeOnly "org.openjfx:javafx-controls:21:win"
runtimeOnly "org.openjfx:javafx-controls:21:linux"
runtimeOnly "org.openjfx:javafx-controls:21:mac"
runtimeOnly "org.openjfx:javafx-fxml:21:win"
runtimeOnly "org.openjfx:javafx-fxml:21:linux"
runtimeOnly "org.openjfx:javafx-fxml:21:mac"
runtimeOnly "org.openjfx:javafx-base:21:win"
runtimeOnly "org.openjfx:javafx-base:21:linux"
runtimeOnly "org.openjfx:javafx-base:21:mac"
runtimeOnly "org.openjfx:javafx-graphics:21:win"
runtimeOnly "org.openjfx:javafx-graphics:21:linux"
runtimeOnly "org.openjfx:javafx-graphics:21:mac"
}
jar {
manifest {
attributes(
'Main-Class': application.mainClass
)
}
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
shadowJar {
zip64 = true
// Merge service files to avoid JavaFX issues
mergeServiceFiles()
}
task writeVersionProperties {
doLast {
def file = file("${projectDir}/src/main/resources/version.properties")
file.text = "version=${version}\n"
}
}
processResources.dependsOn writeVersionProperties
test {
systemProperties = ['property': 'value']
}