d132bba97b | ||
---|---|---|
gradle/wrapper | ||
src/main/webapp/WEB-INF | ||
.gitignore | ||
README.md | ||
build.gradle | ||
gradlew |
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:
- Resolve Ruby gem dependencies
- Resolve Java dependencies
- Extract Ruby gems into
vendor/
- Cache jars into
.jarcache/
(for easily referencing at JRuby interpreter runtime) - Create a runnable
.war
of what's insrc/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