Skip to content

Commit

Permalink
Fix JRuby jar-dependencies gem install issue
Browse files Browse the repository at this point in the history
Try and fix error that occurs on the ci:

> Gem::LoadError: You have already activated jar-dependencies 0.4.1, but
> your Gemfile requires jar-dependencies 0.5.0. Since jar-dependencies
> is a default gem, you can either remove your dependency on it or try
> updating to a newer version of bundler that supports jar-dependencies
> as a default gem.
  • Loading branch information
tombruijn committed Dec 3, 2024
1 parent 6fb18f8 commit edf8329
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions gemfiles/rails-7.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ gem "rails", "~> 7.1.0"
gem "rake", "> 12.2"
gem "sidekiq"

# Fix install issue for jruby on gem 3.1.8.
# No java stub is published.
gem "bigdecimal", "3.1.7" if RUBY_PLATFORM == "java"
if RUBY_PLATFORM == "java"
# Fix install issue for jruby on gem 3.1.8.
# No java stub is published.
gem "bigdecimal", "3.1.7"
# Fix default gem install issue
gem "jar-dependencies", "0.5.0"
end

gemspec :path => "../"
10 changes: 7 additions & 3 deletions gemfiles/rails-7.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ gem "rails", "~> 7.2.0"
gem "rake", "> 12.2"
gem "sidekiq"

# Fix install issue for jruby on gem 3.1.8.
# No java stub is published.
gem "bigdecimal", "3.1.7" if RUBY_PLATFORM == "java"
if RUBY_PLATFORM == "java"
# Fix install issue for jruby on gem 3.1.8.
# No java stub is published.
gem "bigdecimal", "3.1.7"
# Fix default gem install issue
gem "jar-dependencies", "0.5.0"
end

gemspec :path => "../"

0 comments on commit edf8329

Please sign in to comment.