Skip to content

Commit 67f4155

Browse files
committed
Remove compile-time dependency on JRuby
We use jruby-complete to have both the stdlib and JRuby's internal .rb boot files.
1 parent e41d17e commit 67f4155

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

java-wasm/pom.xml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,10 @@
6161
</dependency>
6262
<dependency>
6363
<groupId>org.jruby</groupId>
64-
<artifactId>jruby-stdlib</artifactId>
64+
<artifactId>jruby-complete</artifactId>
6565
<version>10.0.4.0</version>
6666
<scope>test</scope>
6767
</dependency>
68-
<dependency>
69-
<groupId>org.jruby</groupId>
70-
<artifactId>jruby-base</artifactId>
71-
<version>10.0.4.0</version>
72-
<scope>provided</scope>
73-
</dependency>
7468
</dependencies>
7569

7670
<profiles>

java-wasm/src/test/java/org/jruby/parser/prism/JRubyTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.jruby.parser.prism;
22

3-
import org.jruby.Ruby;
43
import org.junit.jupiter.api.Test;
54
import org.ruby_lang.prism.ParsingOptions;
65
import org.ruby_lang.prism.wasm.Prism;
@@ -132,7 +131,7 @@ private static void basicJRubyTest(Prism prism) throws Exception {
132131
new byte[][][]{}
133132
);
134133

135-
try (InputStream fileIn = Ruby.getClassLoader().getResourceAsStream(file)) {
134+
try (InputStream fileIn = JRubyTest.class.getClassLoader().getResourceAsStream(file)) {
136135
assertNotNull(fileIn, "Could not find file: " + file);
137136
DataInputStream dis = new DataInputStream(fileIn);
138137
int read = dis.read(src);

0 commit comments

Comments
 (0)