Skip to content

Commit

Permalink
Disable JRuby JIT to work around JDK issue
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Aug 8, 2023
1 parent 803f5c7 commit 91f2c30
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
package org.torquebox.mojo.rubygems;

import org.jruby.RubyInstanceConfig;
import org.jruby.embed.ScriptingContainer;

import java.io.InputStream;
Expand All @@ -32,6 +33,7 @@ public class DefaultRubygemsGateway
*/
public DefaultRubygemsGateway(final ScriptingContainer container) {
this.container = container;
this.container.setCompileMode(RubyInstanceConfig.CompileMode.OFF);
dependencyHelperImplClass = container.runScriptlet("require 'nexus/dependency_helper_impl';"
+ "Nexus::DependencyHelperImpl");
gemspecHelperImplClass = container.runScriptlet("require 'nexus/gemspec_helper_impl';"
Expand Down

0 comments on commit 91f2c30

Please sign in to comment.