Skip to content

Commit fd0689c

Browse files
committed
[GR-46394] Migrate TruffleRuby to named Java modules
PullRequest: truffleruby/3900
2 parents b64cd1d + 1879e26 commit fd0689c

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

mx.truffleruby/suite.py

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
# ------------- Libraries -------------
5858

5959
"JCODINGS": {
60+
"moduleName": "org.jruby.jcodings",
6061
"maven": {
6162
"groupId": "org.jruby.jcodings",
6263
"artifactId": "jcodings",
@@ -68,6 +69,7 @@
6869
},
6970

7071
"JONI": {
72+
"moduleName": "org.jruby.joni",
7173
"maven": {
7274
"groupId": "org.jruby.joni",
7375
"artifactId": "joni",
@@ -384,6 +386,12 @@
384386
# ------------- Distributions -------------
385387

386388
"TRUFFLERUBY-ANNOTATIONS": {
389+
"moduleInfo": {
390+
"name": "org.graalvm.ruby.annotations",
391+
"exports": [
392+
"org.truffleruby.annotations to org.graalvm.ruby",
393+
],
394+
},
387395
"dependencies": [
388396
"org.truffleruby.annotations"
389397
],
@@ -395,6 +403,13 @@
395403
# since the rest cannot depend on the launcher and the shared code cannot be there.
396404
# This code is loaded twice in different classloaders, therefore any created instances should not be passed around.
397405
"TRUFFLERUBY-SHARED": {
406+
"moduleInfo": {
407+
"name": "org.graalvm.ruby.shared",
408+
"exports": [
409+
"org.truffleruby.shared",
410+
"org.truffleruby.shared.options",
411+
],
412+
},
398413
"dependencies": [
399414
"org.truffleruby.shared"
400415
],
@@ -420,8 +435,10 @@
420435

421436
"TRUFFLERUBY-SERVICES": {
422437
"moduleInfo": {
423-
"name": "org.truffleruby.services",
424-
"exports": ["org.truffleruby.services.scriptengine"],
438+
"name": "org.graalvm.ruby.services",
439+
"exports": [
440+
"org.truffleruby.services.scriptengine",
441+
],
425442
},
426443
"dependencies": [
427444
"org.truffleruby.services"
@@ -434,6 +451,9 @@
434451
},
435452

436453
"TRUFFLERUBY": {
454+
"moduleInfo": {
455+
"name": "org.graalvm.ruby",
456+
},
437457
"dependencies": [
438458
"org.truffleruby",
439459
"org.truffleruby.ruby",
@@ -471,6 +491,12 @@
471491
},
472492

473493
"TRUFFLERUBY-LAUNCHER": {
494+
"moduleInfo": {
495+
"name": "org.graalvm.ruby.launcher",
496+
"exports": [
497+
"org.truffleruby.launcher to org.graalvm.launcher",
498+
],
499+
},
474500
"dependencies": [
475501
"org.truffleruby.launcher"
476502
],

0 commit comments

Comments
 (0)