From 824c999c7f691abe609e2ecb36dbf16f9d6d745d Mon Sep 17 00:00:00 2001 From: Doris Lam Date: Mon, 11 Sep 2023 13:46:23 -0700 Subject: [PATCH] set javafx compile for win --- build.gradle | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index c52aa27ab..613d6e7cd 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,7 @@ buildscript { } dependencies { classpath "io.github.gradle-nexus:publish-plugin:1.0.0" - classpath group: 'org.openjfx', name: 'javafx-plugin', version: '0.0.9' + classpath group: 'org.openjfx', name: 'javafx-plugin', version: '0.0.14' } } @@ -23,7 +23,7 @@ plugins { id 'eclipse' id 'java' id 'distribution' - id 'org.openjfx.javafxplugin' version '0.0.9' + id 'org.openjfx.javafxplugin' version '0.0.14' } String buildProfile = project.getProperties().getOrDefault('buildProfile', 'opensource') @@ -224,9 +224,9 @@ dependencies { preImplementation group: 'net.sourceforge.docbook', name: 'docbook-xsl', version: '1.79.1', classifier: docbookNameVersion, ext: 'zip' // JavaFX - preImplementation group: 'org.openjfx', name: 'javafx-fxml', version: '11.0.2' - preImplementation group: 'org.openjfx', name: 'javafx-controls', version: '11.0.2' - preImplementation group: 'org.openjfx', name: 'javafx-swing', version: '11.0.2' + //preImplementation group: 'org.openjfx', name: 'javafx-fxml', version: '11.0.2' + //preImplementation group: 'org.openjfx', name: 'javafx-controls', version: '11.0.2' + //preImplementation group: 'org.openjfx', name: 'javafx-swing', version: '11.0.2' // This ensures classpath load order to match the MagicDraw provided order and then includes extras needed for non-OpenAPI stuff. // This was necessary because of the Application class stubbing that was done in the chromium libraries. @@ -249,6 +249,8 @@ dependencies { javafx { version = "11.0.2" modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.swing' ] + platform = 'win' + configurations = ['preImplementation'] } task extractDependencies {