From a961e214a8d49ac3edc1449622164cba74164a52 Mon Sep 17 00:00:00 2001 From: Chad Wilson <29788154+chadlwilson@users.noreply.github.com> Date: Wed, 4 Feb 2026 01:17:26 +0800 Subject: [PATCH] build(deps): workaround jbundler/maven-tools > virtus > axiom-types lack of Ruby 3.4 compatibility Wihout this, the normal tests work, however the integration tests fail before being invoked during `Execution default-package of goal org.jruby.maven:gem-maven-plugin:3.0.6:package` which seem to rely on maven-tools to parse the integration test POM before invoking it. Seemed the best place to declare the dependency was here, since this is where jbundler and implicitly maven-tools are defined, although declaring it in the Mavenfile also seems to work. LoadError: cannot load such file -- bigdecimal require at org/jruby/RubyKernel.java:1193 require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:139
at /Users/chad/.m2/repository/org/jruby/maven/ruby-tools/3.0.6/ruby-tools-3.0.6.jar!/axiom/types.rb:3 require at org/jruby/RubyKernel.java:1193 require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:139
at /Users/chad/.m2/repository/org/jruby/maven/ruby-tools/3.0.6/ruby-tools-3.0.6.jar!/axiom-types.rb:3 require at org/jruby/RubyKernel.java:1193 require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:139
at /Users/chad/.m2/repository/org/jruby/maven/ruby-tools/3.0.6/ruby-tools-3.0.6.jar!/virtus.rb:245 require at org/jruby/RubyKernel.java:1193 require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:139
at /Users/chad/.m2/repository/org/jruby/maven/ruby-tools/3.0.6/ruby-tools-3.0.6.jar!/maven/tools/model.rb:1 require at org/jruby/RubyKernel.java:1193 require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:139
at /Users/chad/.m2/repository/org/jruby/maven/ruby-tools/3.0.6/ruby-tools-3.0.6.jar!/maven/tools/pom.rb:22 require at org/jruby/RubyKernel.java:1193 require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:139
at -e:1 --- Gemfile | 5 ----- warbler.gemspec | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index 59a93e1c..1434347b 100644 --- a/Gemfile +++ b/Gemfile @@ -2,11 +2,6 @@ source "https://rubygems.org/" gemspec -# override default maven-tools used by bundler -gem 'maven-tools', '1.2.3' -# add bigdecimal missing from transitive dependency of maven-tools -gem 'bigdecimal' - group :development, :test do gem 'rdoc', '~> 7.0', :require => nil diff --git a/warbler.gemspec b/warbler.gemspec index d44e2396..f31966c8 100644 --- a/warbler.gemspec +++ b/warbler.gemspec @@ -39,4 +39,5 @@ bundle up all of your application files for deployment to a Java environment.} gem.add_development_dependency 'rspec', '~> 3.0' gem.add_development_dependency 'drb', ['~> 2.2', '>= 2.2.3'] gem.add_development_dependency 'jbundler', '~> 0.9.5' + gem.add_development_dependency 'bigdecimal', '< 5' # Needed workaround jbundler > maven-tools > vertus > axiom-types lack of explicit bigdecimal dependency for for JRuby 10 end