Use only script stage for gradle powered builds

As coordinated with @gildegoma on #126, this PR makes `gradle` powered builds for Java use only a single stage approach. I've not changed `maven` behavior because I don't know if exists an equivalent command for it.

This is a pretty simple change, but if anyone find any issue with it, please inform me so I can provide any eventual fix.

Thanks :smile: