Updated gradle scripts to build aar artifacts.