Moved code from jruby-gradle-plugin to here