Environment setup for modifying logstash plugin

Is there a tutorial for setting up your environment for modifying an existing logstash ruby plugin i.e. what version of java to use, jruby to use, how to install jars etc. How to write a Logstash output plugin | Logstash Reference [7.13] | Elastic provides information about writing the plugin but not much about environment setup and I'm running into problems that aren't googleable.