mkristian / jbundler

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

Floating version dep on jar-dependencies clashes with JRuby's default version #82

Open cburgmer opened 7 years ago

cburgmer commented 7 years ago

We are using jruby 9.1.6.0 and with using jbundler 0.9.3 bundler itself fails to satisfy all dependencies.

We require jbundler via gem "jbundler".

$ bundle exec jbundler install
bundler: failed to load command: jbundle (/tmp/vendor/bundle/jruby/2.3.0/bin/jbundle)
Gem::LoadError: You have already activated jar-dependencies 0.3.5, but your Gemfile requires jar-dependencies 0.3.7. Prepending `bundle exec` to your command may solve this.
  /tmp/jruby/lib/ruby/gems/shared/gems/bundler-1.13.6/lib/bundler/runtime.rb:40:in `block in setup'
  org/jruby/RubyArray.java:1734:in `each'
  org/jruby/RubyEnumerable.java:829:in `map'
  /tmp/jruby/lib/ruby/gems/shared/gems/bundler-1.13.6/lib/bundler/runtime.rb:25:in `setup'
  /tmp/jruby/lib/ruby/gems/shared/gems/bundler-1.13.6/lib/bundler.rb:99:in `setup'
  /tmp/jruby/lib/ruby/gems/shared/gems/bundler-1.13.6/lib/bundler/setup.rb:20:in `<main>'
  org/jruby/RubyKernel.java:959:in `require'
  /tmp/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55:in `require'

Our current workaround is to force gem "jar-dependencies", "0.3.5" before declaring jbundler.