openjfx / javafx-gradle-plugin

Gradle plugin that makes it easy to work with JavaFX 11+
https://openjfx.io/
BSD 3-Clause "New" or "Revised" License
359 stars 62 forks source link

Create extra variable to force which platform should be used by JavaFX framework #134

Closed kristofmoens closed 2 years ago

kristofmoens commented 2 years ago

The extra parameter can be used similar to:

javafx {
    version = '12'
    modules = ['javafx.controls', 'javafx.base', 'javafx.graphics']
    forcedPlatform = 'windows-x86_64'
}

Which will force to use the Windows libraries for JavaFX. This will make it possible to cross-compile libraries for different operating systems.