Use separate modules in order to build both a java as well as an android artifact, with separate and shared test cases.