Most interesting for you here is not the source code, but configs in .mainframer
folder.
This is a very common setup for basically any Gradle project (including multimodule), but of course you might need to tune some ignore configs for your project.
$ bash mainframer.sh ./gradlew build
Or any other Gradle task you want, btw it integrates with IntelliJ pretty easily! TODO add link to docs.
JDK 6+ installed on remote machine.