Refactor into a package, and maven deployment to gradle.