[
https://issues.apache.org/jira/browse/BUILDR-669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13670681#comment-13670681
]
Peter Donald commented on BUILDR-669:
-------------------------------------
Recent versions of buildr will use Bundler/a Gemfile if it is present. So if
you intend to use Buildr you need to add an entry into the Gemfile for buildr.
{code}
diff --git a/Gemfile b/Gemfile
index 18f379e..2195334 100644
--- a/Gemfile
+++ b/Gemfile
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
gem 'cucumber'
gem 'json_spec'
+gem 'buildr', '= 1.4.12'
{code}
You then should be able to do something like
rm Gemfile.lock && bundle install && bundle exec buildr clean
> Unable to run buildr with cucumber in the Gemfile
> -------------------------------------------------
>
> Key: BUILDR-669
> URL: https://issues.apache.org/jira/browse/BUILDR-669
> Project: Buildr
> Issue Type: Bug
> Components: Dependency management
> Affects Versions: 1.4.11
> Environment: Fedora 18
> Reporter: Jacek Furmankiewicz
> Priority: Blocker
>
> I have this test project which I was considering moving from Gradle to Buildr:
> https://github.com/jacek99/dropwizard-spring-di-security-onejar-example
> once you do bundle install and then gem install buildr, buildr fails to run
> due to dependencies on builder:
> buildr
> /home/jacekf/.gem/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in
> `block in setup': You have already activated builder 3.1.3, but your Gemfile
> requires builder 3.2.0. Using bundle exec may solve this. (Gem::LoadError)
> from
> /home/jacekf/.gem/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in
> `setup'
> from
> /home/jacekf/.gem/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
> from
> /home/jacekf/.gem/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:7:in
> `<top (required)>'
> from
> /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:in
> `require'
> from
> /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:in
> `require'
> from /home/jacekf/.gem/ruby/1.9.1/gems/buildr-1.4.12/bin/buildr:18:in
> `<top (required)>'
> from /home/jacekf/bin/buildr:23:in `load'
> I am guessing that the dependency on builder needs to be updated accordingly.
> As a result I am not able to run buildr at all.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira