Converting Android library modules to pure java kotlin modules - sergei-lapin/pimp-my-gradle-recipes GitHub Wiki

So, what if I tell you that it's possible to convert your android library modules to pure java/kotlin modules in case if there's no android resources in them?
What benefit one will gain from that you might ask?
You'll get less tasks, smaller artifact output, simpler builscript configuration and total reduce of your build times.
All of it is possible thanks to Stepan Goncharov and his plugins androidJar and aar2jar.
Please refer to this simple example that I have set up for you in order to clarify on how to set up this approach in your project.