I'm developing a library on Android Studio (a SDK, let's say module A). To test it out, I also got a demoApp
I also have another lib with the SDK dependencies (a plugin, let's say module B)
So in my project, there are 3 modules : the SDK (A), the demoApp and the plugin (B)
Now I need to distribute my SDK and / or my plugin in jar files so people can use it in their project
The question is : how can I generate a jar for the SDK and a jar for the plugin (including all the necessaries dependencies of course like jar in libs folder) with Gradle tasks (I don't need any ressources or assets) ?
I'm very new to Gradle, I cross this answer but I don't know if it match my needs (need to be Android compatible)
EDIT : to clarify I added letter
- I need a jar file for A
- B need A to run (dependencies)
- I need a jar file for B