Forum: JRuby [ANN] jruby-maven-plugins, jbundler, jar-depenencies, ruby-maven, etc

B05d3cbc64b0031a24c2887fb6ddc173?d=identicon&s=25 christian (Guest)
on 2014-07-17 21:27
(Received via mailing list)
jruby-maven-plugins version 1.0.4
---------------------------------

after a long time it reached 1.0.0 and got some more bug fixes already.

with those plugin you can run jruby with gem-artifacts, run tests
(junit,
minitest, rspec, cucumber) using those gems or pack them as embeded gems
into jar or war files

gem artifacts are offered by http://rubygems-proxy.torquebox.org/

some info can be found on jruby-wiki

* JRuby scripting container packed as jar with embeded gems:
https://github.com/jruby/jruby/wiki/Jruby-Scriptin...

* JRuby scripting container inside a servlet packed as war:
https://github.com/jruby/jruby/wiki/JRuby-Scriptin...

* minitest, rspec, cucumber test for you ruby script:
https://github.com/jruby/jruby/wiki/Running-Minite...

all those pages use a Ruby-DSL for Maven

Ruby-Maven 3.1.1.0.8
------------------------------

basically a regular maven-3.1.1 installation with an extra thin wrapper
which "translates" a ruby file into a pom.xml

it comes with some "extras" feature to use a Gemfile, Jarfile or
gemspec-file as part of the POM. as well it leverages the
jruby-maven-plugins.

it also allows to execute code during a declared phase, i.e. like
inlined
maven plugins written in ruby.


Rubygems-Servlets
---------------------------

if you need Gem-Artifacts from your local rubygems repository you can
use
https://github.com/torquebox/rubygems-servlets
to proxy gem repository and deliver gem-artifacts.

for a more advanced solution use sonatype.org/nexus with
nexus-ruby-plugin
from:
https://github.com/sonatype/nexus-ruby-support

rubygems-servlets uses the same core as this nexus-plugin.

JBundler 0.6.1
-------------------

manage your jars for your ruby project with jbundler

* it uses ruby-maven now to lock down the version for the jars
* allows exclusions on jars (maven feature)
* uses jar-dependencies to "track and load" jars

the 0.6.x might break some existing project. in such a case please use
$ jbundle lock_down
instead of install and **open an issue**:
https://github.com/mkristian/jbundler


Jar-Dependencies 0.0.5
--------------------------------

* during runtime it tracks the version of loaded jars - if
require_jar(...)
is used to load it
* it can "vendor" the jars declared as "jar dependency" inside the
gemspec
file before packing them
* it can "vendor" the jars when you install the gem

see on how you can manage your jars with jbundler (and
jar-dependencies):
https://github.com/jruby/jruby/wiki/Using-a-differ...

Clueing Things Together
---------------------------------

putting the Gemfile, Jarfile and some common maven-plugins, the
jruby-maven-plugins together. with the help of ruby-maven you can easily
pack

* a rack application ready to deploy on servlet-container:
https://github.com/jruby/jruby/wiki/Rack-Applicati...

* or deploy it on heroku
https://github.com/jruby/jruby/wiki/Rack-Applicati...

LAST
01df35648620d2bea07d29498bddfa7a?d=identicon&s=25 Mike Luu (Guest)
on 2014-07-17 22:02
(Received via mailing list)
Thanks for all your work Christian!

Cheers
01df35648620d2bea07d29498bddfa7a?d=identicon&s=25 Mike Luu (Guest)
on 2014-07-17 22:02
(Received via mailing list)
Thanks for all your work Christian!

Cheers
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.