Adding gradle as a dev dependency.
Reverting use of #open3

because JRuby.