jbundler icon indicating copy to clipboard operation
jbundler copied to clipboard

How to use jbundle to install jar dependencies?

Open garyelephant opened this issue 9 years ago • 5 comments

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

garyelephant avatar Mar 18 '16 05:03 garyelephant

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.

mkristian avatar Mar 18 '16 06:03 mkristian

@mkristian That's amazing, thanks!

garyelephant avatar Mar 18 '16 10:03 garyelephant

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.

codekitchen avatar Mar 29 '16 18:03 codekitchen

@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 :)

mkristian avatar Mar 29 '16 18:03 mkristian

Cool thanks for the clarification @mkristian

codekitchen avatar Mar 29 '16 18:03 codekitchen