What is wrong with me
Go to file
R. Tyler Croy d132bba97b Update README with new jruby plugin stuff 2014-08-15 11:39:39 -07:00
gradle/wrapper Initial commit 2014-07-25 13:52:45 -07:00
src/main/webapp/WEB-INF Add a Rakefile to make this sucker runnable 2014-08-10 15:32:31 -07:00
.gitignore Create a runnable war file using the WarMain from warbler 2014-07-28 13:30:11 -07:00
README.md Update README with new jruby plugin stuff 2014-08-15 11:39:39 -07:00
build.gradle Switch to the more recent 2.x version of the jruby plugin 2014-08-15 10:48:50 -07:00
gradlew Initial commit 2014-07-25 13:52:45 -07:00

README.md

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