The specific plugin I want to be able to use is the jruby-maven-plugin so I can easily use compass in a clojure project.
If it's not possible to use maven plugins, what would be the best strategy to use a ruby gem in a clojure project?
The following two projects provide ruby gem support. lein-ruby clogems
clogems project does not have anything in the way of documentation, so you are probably on your own with that.
lein-ruby provides some documentation on it's github page. From the github page for lein-ruby.
This plugin adds one task to Leiningen:
lein ruby CMD [ARGS...]
- runs a Ruby commandYou are responsible for adding the desired version of jruby-complete to your project's dependencies.
The plugin also includes a set of hooks (in the leiningen.ruby.bundler
namespace) which accomplish three things:
augment lein deps
to install bundler and any gems specified in
your project's Gemfile into vendor/gems
add vendor/gems
to your project's classpath
package the gems in vendor/gems
as part of your project's jar
lein-ruby also introduces two options which can be set in your project.clj:
:ruby-version
- the Ruby version to use for lein ruby
: "1.8" or "1.9" (default)
:ruby-gem-dir
- the directory to use for gems, relative to the project root (defaults to vendor/gems
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With