Open altavir opened 5 years ago
is there any progress in this issue?
would love that too!
We would also love that feature.
Provide a way to explicitly declare target platform for distribution. For example, it could be done like this:
For us, this point is integral. Good news: #99 and the corresponding PR #103 propose a way to solve this. So progress is being made.
Is there a currently recommended way to build cross-platform fat jar-s with JavaFX that would work on any mainstream OS?
EDIT: If a single cross-platform jar isn't possible, is there a recommended way to build jar-s for all major platforms with one task?
41 allows to remove platform lock, but it does not provide full cross-platform support requested by #18 and #35. The proposal has several parts:
[ ] Automatically declare javafx dependencies as compileOnly for projects without application plugin or otherwise marked as library, so there would be no mistakes from including several dependencies for different platforms. Turn dependencies to
implementation
only for projects withapplication
plugin.[ ] Provide a way to explicitly declare target platform for distribution. For example, it could be done like this:
In case platform clause present, it should create a configuration for each platform and create a distribution for each (using
implementation
mode for plarform-specific dependency).[ ] Provide a regime in which dependencies are not included, but resolved from specific place:
[ ] Automatically download and install system-specific dependencies into path provided by
fxpath
. This requires a lot of work and is not first order concern.