Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rtyler/ruby-gradle-example
What is wrong with me
https://github.com/rtyler/ruby-gradle-example
Last synced: 2 months ago
JSON representation
What is wrong with me
- Host: GitHub
- URL: https://github.com/rtyler/ruby-gradle-example
- Owner: rtyler
- Created: 2014-07-25T23:29:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-15T18:39:53.000Z (over 10 years ago)
- Last Synced: 2024-05-01T22:49:03.254Z (8 months ago)
- Language: Ruby
- Size: 273 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby + Gradle Example
This project relies heavily on the marvelous [TorqueBox Rubygems Maven
repo](http://rubygems-proxy.torquebox.org/) and my own
[jruby-gradle-plugin](http://plugins.gradle.org/plugin/com.lookout.jruby)## Usage
In order to prepare the dependencies for the JRuby application you must invoke
gradle:```bash
% ./gradlew jrubyWar
```This will do a few things:
1. Resolve Ruby gem dependencies
1. Resolve Java dependencies
1. Extract Ruby gems into `vendor/`
1. Cache jars into `.jarcache/` (for easily referencing at JRuby interpreter runtime)
1. Create a runnable `.war` of what's in `src/main/webapp`### Running locally
```bash
% 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