Skip to content

Commit d2d45d8

Browse files
authored
Update build.gradle
JavaFX and associated plugin
1 parent 98126a9 commit d2d45d8

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

build.gradle

+2-16
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ plugins {
22
id 'java'
33
id 'org.springframework.boot' version '3.1.4'
44
id 'io.spring.dependency-management' version '1.1.3'
5+
id 'application' // Add JavaFX Gradle plugin
6+
id 'org.openjfx.javafxplugin' version '0.1.0' // Add JavaFX Gradle plugin
57
}
68

79
group = 'tools.sctrade'
@@ -13,7 +15,6 @@ java {
1315

1416
repositories {
1517
mavenCentral()
16-
maven { url "https://github.com/openjdk/jfx" } // Add OpenJFX repository
1718
}
1819

1920
dependencies {
@@ -109,20 +110,5 @@ task copyStartScript(type: Copy) {
109110
include "${rootProject.name}-admin.bat"
110111
}
111112

112-
// Configure the Java execution environment to include OpenJFX modules
113-
tasks.all { task ->
114-
if (task instanceof JavaExec) {
115-
doFirst {
116-
def modulePath = file("${projectDir}/src/main/resources/module-path")
117-
118-
if (!modulePath.exists()) {
119-
modulePath.createNewFile()
120-
modulePath.appendText("${configurations.runtimeClasspath.asPath.replace(':', ';')}") // Use ; as a separator on Windows
121-
}
122-
}
123-
}
124-
}
125-
126-
127113
task dist(dependsOn: ['copyJar', 'copyTessdata', 'copyStartScript', 'jlink']) {
128114
}

0 commit comments

Comments
 (0)