You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My request is, to add a EmptyPlatform or CustomPlatform where the plugin does not configure anything (e.g. components), but let myself setup the only artifacts needed.
Full story:
I'm trying to publish a Java library with JNI natives to Maven Central. It should support Android and desktop JVM ( mac/win/linux), so there will be .dll, .so files for each of the platfrom. Native libraries can only be built on the correct host OS, for example, .dylib can only be built on macOS.
I'm planning to publish the natives with classifiers:
But I have to run the publishing for each host OS. Since they are all configured with JavaLibrary, they will publish the same .jar and .pom 3 times, resulting to conflicts on Maven Central.
Currently I see no option for the plugin to configure an 'EmptyPlatform' where I can publish only the nativeJar artifact on some OSes.
I've came up with a possible workround that is, to build the native libraries before any publishing logic. Gather the libraries onto one machine, and publish them together:
Hi, thanks for your hard work!
TL;DR:
My request is, to add a
EmptyPlatform
orCustomPlatform
where the plugin does not configure anything (e.g. components), but let myself setup the only artifacts needed.Full story:
I'm trying to publish a Java library with JNI natives to Maven Central. It should support Android and desktop JVM ( mac/win/linux), so there will be
.dll
,.so
files for each of the platfrom. Native libraries can only be built on the correct host OS, for example,.dylib
can only be built on macOS.I'm planning to publish the natives with classifiers:
The above works if I only support one single OS.
But I have to run the publishing for each host OS. Since they are all configured with
JavaLibrary
, they will publish the same.jar
and.pom
3 times, resulting to conflicts on Maven Central.Currently I see no option for the plugin to configure an 'EmptyPlatform' where I can publish only the
nativeJar
artifact on some OSes.I've came up with a possible workround that is, to build the native libraries before any publishing logic. Gather the libraries onto one machine, and publish them together:
I haven't tried this yet. But I think it will be OK.
The text was updated successfully, but these errors were encountered: