The standard build tool in Java is Ant.
The standard build tool in Gosu is Aardvark.
You should try it.
You might find Aardvark's vark file informative...