Skip to content

Commit 5b3a31d

Browse files
committed
Move JavaFX libraries to the bootstrap classpath
1 parent 06beb8f commit 5b3a31d

File tree

6 files changed

+32
-15
lines changed

6 files changed

+32
-15
lines changed

biz.ganttproject.app.libs/build.gradle

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ buildscript {
55
url "https://plugins.gradle.org/m2/"
66
}
77
}
8-
dependencies {
9-
classpath 'org.openjfx:javafx-plugin:0.1.0'
10-
}
8+
// dependencies {
9+
// classpath 'org.openjfx:javafx-plugin:0.1.0'
10+
// }
1111
}
1212

13-
apply plugin: 'org.openjfx.javafxplugin'
14-
13+
//apply plugin: 'org.openjfx.javafxplugin'
14+
//javafx {
15+
// version = "21"
16+
// modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.swing' ]
17+
//}
18+
//
1519
ext {
1620
libDir = 'lib'
1721
}
@@ -68,10 +72,10 @@ dependencies {
6872
exported fileTree(dir: project.ext.libDir, include: ['*.jar'])
6973
}
7074

71-
javafx {
72-
version = "17"
73-
modules = [ "javafx.controls","javafx.swing","javafx.web" ]
74-
}
75+
//javafx {
76+
// version = "17"
77+
// modules = [ "javafx.controls","javafx.swing","javafx.web" ]
78+
//}
7579

7680
def pluginDistDir = new File(rootProject.pluginsDir, project.name)
7781
task copyPlugin(dependsOn: assemble) {
@@ -87,9 +91,6 @@ task copyPlugin(dependsOn: assemble) {
8791
into(new File(pluginDistDir, "lib"))
8892
from(configurations.exported) {
8993
include "*.jar"
90-
if (!project.hasProperty("withJavafx")) {
91-
exclude "javafx*.jar"
92-
}
9394
exclude "slf4j*.jar"
9495
exclude "logback*.jar"
9596
}

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def installLibs(jar, project) {
101101
from(jar.outputs.getFiles().getFiles().flatten())
102102
from(project.configurations.compileClasspath.minus(project.configurations.providedCompile.resolve())) {
103103
include "*.jar"
104+
exclude "javafx*.jar"
104105
}
105106
rename { filename -> filename + ".lib" }
106107
}

ganttproject-builder/BUILD-HISTORY-MAJOR

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
2025-01-29 3316 fixed issue 2569, added group to MSI silent
1111
2025-07-04 3390 Test build of GanttProject 3.4 Beta I ....
1212
2026-01-16 3390 Test build of GanttProject 3.4 Beta I ....
13-
2026-01-17 3390 Test build of GanttProject 3.4 Beta I .
13+
2026-01-17 3390 Test build of GanttProject 3.4 Beta I ..
1414
--

ganttproject-builder/build.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
homepage="https://www.ganttproject.biz/"
5757
section="editors"
5858
priority="optional"
59-
depends="java17-runtime | bellsoft-java17-runtime | zulu17-jre | openjdk-17-jre | openjdk-21-jre | bellsoft-java21-runtime | zulu21-jre"
59+
depends="java21-runtime"
6060
conflicts="ganttproject-praha"
6161
replaces="ganttproject-praha"
6262
postrm="${distDebWork}/postrm"
@@ -82,6 +82,7 @@ GanttProject is distributed under GPLv3.
8282
<include name="*.jar"/>
8383
<include name="*.gan"/>
8484
<include name="logging.properties"/>
85+
<include name="logback.xml"/>
8586
<include name="lib/**"/>
8687
</tarfileset>
8788
<tarfileset dir="${distBin}" filemode="755" prefix="usr/share/${package.name}">

ganttproject-builder/ganttproject

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ if [ ! -f "$GP_HOME/eclipsito.jar" ]; then
189189
log "Can't find the required Eclipsito library at $GP_HOME/eclipsito.jar"
190190
exit 1
191191
fi
192-
CLASSPATH="$CLASSPATH:$GP_HOME/eclipsito.jar:$GP_HOME/lib/slf4j-api-2.0.17.jar:$GP_HOME/lib/logback-core-1.5.18.jar:$GP_HOME/lib/logback-classic-1.5.18.jar:$GP_HOME"
192+
CLASSPATH="$CLASSPATH:$GP_HOME/eclipsito.jar:$GP_HOME";
193+
for f in "$GP_HOME"/lib/*; do [ -f "$f" ] && CLASSPATH="$CLASSPATH:$f"; done
194+
193195
export CLASSPATH
194196
BOOT_CLASS=com.bardsoftware.eclipsito.Launch
195197

ganttproject/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,18 @@ task copyPlugin(dependsOn: jar) {
140140
include "logback.xml"
141141
}
142142
}
143+
def bootstrapLibDir = new File(rootProject.distBinDir, "lib")
144+
copy {
145+
into(bootstrapLibDir)
146+
from(project.configurations.compileClasspath.minus(project.configurations.providedCompile.resolve())) {
147+
if (project.hasProperty("withJavafx")) {
148+
include "javafx*.jar"
149+
} else {
150+
exclude "*"
151+
}
152+
}
153+
}
154+
143155
copy {
144156
into(pluginDistDir)
145157
from(fileTree(".")) {

0 commit comments

Comments
 (0)