How do I compile the project via gradle/maven?

You should store the project into a remote GitHub repository. Then you want clone the project into other machine. Have a look at the following comment of mine:

See the following document for Katalon Studio - Git integration: