centralise last code snippets from android build.gradle's.
use maven-publish plugin for publishing rosjava packages.