Fix a bug with gradle and jruby.