Support both android and java projects.
fix javadoc task
merge from SimonVT/gradle-mvn-push, support android and java project