ruby-gradle-example/README.md

868 B

Ruby + Gradle Example

This project relies heavily on the marvelous TorqueBox Rubygems Maven repo and my own jruby-gradle-plugin

Usage

In order to prepare the dependencies for the JRuby application you must invoke gradle:

% ./gradlew jrubyWar

This will do a few things:

  1. Resolve Ruby gem dependencies
  2. Resolve Java dependencies
  3. Extract Ruby gems into vendor/
  4. Cache jars into .jarcache/ (for easily referencing at JRuby interpreter runtime)
  5. Create a runnable .war of what's in src/main/webapp

Running locally

% PATH=./vendor/bin:$PATH GEM_HOME=./vendor rackup src/main/webapp/WEB-INF/config.ru

Requirements

  • JRuby (for one form of local development)
  • Rubygems (gem) for extracting gems
  • Java 7