The problem is in https://github.com/asdf-vm/asdf-ruby/blob/master/rubygems-plugin/rubygems_plugin.rb script.
Namely, you are using asdf reshim ruby #{RUBY_VERSION} bin/#{executable} and this is incorrect for jruby, because RUBY_VERSION returns equal mri ruby version. E.g. for jruby 9.2.6.0, it returns 2.5.3. And you are trying to reshim for ruby 2.5.3
I could not find how to properly obtain jruby distribution id from asdf, there is no environment variable or something, so can't make a PR. But this should not be a problem for developers.
The problem is in https://github.com/asdf-vm/asdf-ruby/blob/master/rubygems-plugin/rubygems_plugin.rb script. Namely, you are using
asdf reshim ruby #{RUBY_VERSION} bin/#{executable}
and this is incorrect for jruby, becauseRUBY_VERSION
returns equal mri ruby version. E.g. for jruby 9.2.6.0, it returns 2.5.3. And you are trying to reshim for ruby 2.5.3 I could not find how to properly obtain jruby distribution id from asdf, there is no environment variable or something, so can't make a PR. But this should not be a problem for developers.