How can I publish a NativeSharedLibrary to a maven repository

(Richard Sunderland) #1

I am currently using gradle within my Java team and I am trying to encourage our c++ team to adopt it as well. Currently I can’t see how to make the maven-publish plugin work with shared libraries. I’ve tried adding artifacts that reference the build tasks, but that is not working. I’ve also had a look at ArtifactResolutionQuery to find the built resources but could not get anything useful from it. I’ve considered added an intermediate tar/zip task, but that does not solve the problem as I don’t know where the inputs will come from. This is a multi-platform build so I would rather not hard code references to files as the extension is platform specific.

Any pointers as to where to go next?

(Schalk Cronjé) #2

Have a look at

I cannot comment on how mature it is.