mkristian / jbundler

bundler support for jars for jruby
MIT License
210 stars 39 forks source link

How to use jbundle to install jar dependencies? #70

Open garyelephant opened 8 years ago

garyelephant commented 8 years ago

How to use jbundle to install jar dependencies?

For example I want to install this jar:

http://mvnrepository.com/artifact/com.maxmind.geoip2/geoip2/2.5.0

mkristian commented 8 years ago

Jarfile:

jar 'com.maxmind.geoip2:geoip2', '2.5.0'

then run lock_jars and use it with require 'jars/setup' - no need for jbundler. lock_jars comes with jar-dependencies which comes with recent versions of jruby as default gem.

garyelephant commented 8 years ago

@mkristian That's amazing, thanks!

codekitchen commented 8 years ago

is this gem deprecated then? should the README be updated to reflect this? apologies if this is a silly question, I'm experienced in ruby but new to jruby.

mkristian commented 8 years ago

@codekitchen not deprecated or maybe, but with warbler it is the most common way to build war-files with jar dependencies. once this works with with the jar-dependencies gem then jbundler lost its place to be :)

codekitchen commented 8 years ago

Cool thanks for the clarification @mkristian