Skip to content

Commit

Permalink
set javafx compile for win
Browse files Browse the repository at this point in the history
  • Loading branch information
Doris Lam committed Sep 11, 2023
1 parent bd6d9d6 commit 824c999
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand All @@ -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')
Expand Down Expand Up @@ -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.
Expand All @@ -249,6 +249,8 @@ dependencies {
javafx {
version = "11.0.2"
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.swing' ]
platform = 'win'
configurations = ['preImplementation']
}

task extractDependencies {
Expand Down

0 comments on commit 824c999

Please sign in to comment.