Build JNI/native library for Android and server from same project

Perhaps I worded my question wrong, my library is already using C/C++ libraries with a JNI layer.

My problem is whenever I attempt to pack it all up into an AAR and publish it using the maven-publish plugin, it only takes the application layer of my library but not the native code.

I posted a question with more details here, if you don’t mind me bothering. I’ll take a look at the project and maybe be able to find what I’m missing by comparing it with my own.

Thanks for your answer!