Skip to content

Commit

Permalink
[GR-46394] Migrate TruffleRuby to named Java modules
Browse files Browse the repository at this point in the history
PullRequest: truffleruby/3900
  • Loading branch information
eregon committed Jul 18, 2023
2 parents b64cd1d + 1879e26 commit fd0689c
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions mx.truffleruby/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
# ------------- Libraries -------------

"JCODINGS": {
"moduleName": "org.jruby.jcodings",
"maven": {
"groupId": "org.jruby.jcodings",
"artifactId": "jcodings",
Expand All @@ -68,6 +69,7 @@
},

"JONI": {
"moduleName": "org.jruby.joni",
"maven": {
"groupId": "org.jruby.joni",
"artifactId": "joni",
Expand Down Expand Up @@ -384,6 +386,12 @@
# ------------- Distributions -------------

"TRUFFLERUBY-ANNOTATIONS": {
"moduleInfo": {
"name": "org.graalvm.ruby.annotations",
"exports": [
"org.truffleruby.annotations to org.graalvm.ruby",
],
},
"dependencies": [
"org.truffleruby.annotations"
],
Expand All @@ -395,6 +403,13 @@
# since the rest cannot depend on the launcher and the shared code cannot be there.
# This code is loaded twice in different classloaders, therefore any created instances should not be passed around.
"TRUFFLERUBY-SHARED": {
"moduleInfo": {
"name": "org.graalvm.ruby.shared",
"exports": [
"org.truffleruby.shared",
"org.truffleruby.shared.options",
],
},
"dependencies": [
"org.truffleruby.shared"
],
Expand All @@ -420,8 +435,10 @@

"TRUFFLERUBY-SERVICES": {
"moduleInfo": {
"name": "org.truffleruby.services",
"exports": ["org.truffleruby.services.scriptengine"],
"name": "org.graalvm.ruby.services",
"exports": [
"org.truffleruby.services.scriptengine",
],
},
"dependencies": [
"org.truffleruby.services"
Expand All @@ -434,6 +451,9 @@
},

"TRUFFLERUBY": {
"moduleInfo": {
"name": "org.graalvm.ruby",
},
"dependencies": [
"org.truffleruby",
"org.truffleruby.ruby",
Expand Down Expand Up @@ -471,6 +491,12 @@
},

"TRUFFLERUBY-LAUNCHER": {
"moduleInfo": {
"name": "org.graalvm.ruby.launcher",
"exports": [
"org.truffleruby.launcher to org.graalvm.launcher",
],
},
"dependencies": [
"org.truffleruby.launcher"
],
Expand Down

0 comments on commit fd0689c

Please sign in to comment.