java: Re-organize to use Maven packaging
java: Add gradle build support as well