Publish Android library to BinTray (JCenter), AAR vs. JAR and optional dependency

Working on Android open-source I needed to publish two libraries (Android-Image-Cropper and Android-Fast-Image-Loader) to JCenter.
 
What I will touch in this post:

  • Publishing AAR
  • "Sources not found" issue with AAR
  • AAR vs. JAR
  • Publishing JAR
  • Handling optional dependency in Gradle

 
TL;DR see the release gradle script.
 
clip_image001.png
Continue reading

Advertisements