Classifier jars: separate Java library from native libs#1388
Classifier jars: separate Java library from native libs#1388
Conversation
|
I have been pondering whether instead of per OS, we should publish classifier jars per OS/Arch combination instead. However i am not entirely sure of how the consumers of the library would be able to get all the native libs for a particular OS, without having to explicitly list all the archs… |
|
@gotson have you seen how javafx separates os-specific stuff in separate dependencies separated by classifiers? |
I was not aware, however i don't think we need OS detection on Maven side. The different libraries are more for packaging an app, is what i think, but again i may be wrong. It seems those other projects support less OS/arch couples than we do too. |
Alternative to #1387
Not sure which approach we should go for.
The following classifiers are added:
natives-android,natives-linux,natives-linux_musl,natives-freebsd,natives-mac,natives-windows. Not sure if splitting Linux and Linux-Musl makes sense or not.natives-desktop. The name may not be the best, but at least it's better thanall.without-nativesThis way of doing has much less friction on the overall project than the multi-modules approach.