Hi,
Project Gemfile looks like this. I was using Jruby 1.7.19. It had installed buildr version 1.4.22
source '
https://rubygems.org'
gem 'buildr', '>= 1.4.22'
# rspec dependencies for check()
gem 'rspec-expectations', '= 2.14.3'
gem 'rspec-mocks', '= 2.14.3'
gem 'rspec-core', '= 2.14.5'
gem 'rspec', '= 2.14.1'
I upgraded to Jruby 1.7.20.1 the latest release.
bundle install (upgraded buildr to 1.4.23)
Now when I execute on my Project
~/apps/jruby-1.7.20.1/bin/jruby -J-XX:MaxPermSize=512m -S buildr clean package test=no
Gem::LoadError:
You have already activated buildr 1.4.23, but your Gemfile requires
buildr 1.4.22. Prepending `bundle exec` to your command may solve this.
setup at /home/sathwik/apps/jruby-1.7.20.1/lib/ruby/gems/shared/gems/bundler-1.10.5/lib/bundler/runtime.rb:34
each at org/jruby/RubyArray.java:1613
each at /home/sathwik/apps/jruby-1.7.20.1/lib/ruby/1.9/forwardable.rb:201
setup at /home/sathwik/apps/jruby-1.7.20.1/lib/ruby/gems/shared/gems/bundler-1.10.5/lib/bundler/runtime.rb:19
setup at /home/sathwik/apps/jruby-1.7.20.1/lib/ruby/gems/shared/gems/bundler-1.10.5/lib/bundler.rb:127
(root) at /home/sathwik/apps/jruby-1.7.20.1/lib/ruby/gems/shared/gems/bundler-1.10.5/lib/bundler/setup.rb:8
require at org/jruby/RubyKernel.java:1072
(root) at /home/sathwik/apps/jruby-1.7.20.1/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
require at /home/sathwik/apps/jruby-1.7.20.1/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54
load at org/jruby/RubyKernel.java:1091
(root) at /home/sathwik/apps/jruby-1.7.20.1/bin/buildr:23
I could only get this working by,
Remove existing Gemfile.lock
bundle install
buildr clean package test=no
Question is, do we need to delete Gemfile.lock and execute bundle install everytime on my project when we upgrade Jruby?