I can't seem to find any clear answers on how to accomplish this task.
I want to take make a "Commons" library for my android project. This needs to have access to the android SDK at compile time.
I want it to be a jar.
I want it to upload to nexus (maven) and be downloadable using gradle in my other android projects.
I've managed to alternately get things to compile as an apk, as an aar and jar, or just an aar. I can't ever seem to get a straight jar out of the process, and I can't seem to get that jar uploaded.
Could somone either provide a very simple example of this in practice, or point me to a good - up to date - solution?