|
191 | 191 | "license": ["EPL-2.0"],
|
192 | 192 | },
|
193 | 193 |
|
| 194 | + "org.truffleruby.resources": { |
| 195 | + "dir": "src/resources", |
| 196 | + "sourceDirs": ["java"], |
| 197 | + "dependencies": [ |
| 198 | + "truffle:TRUFFLE_API", |
| 199 | + ], |
| 200 | + "annotationProcessors": [ |
| 201 | + "truffle:TRUFFLE_DSL_PROCESSOR", |
| 202 | + ], |
| 203 | + "jacoco": "include", |
| 204 | + "javaCompliance": "17+", |
| 205 | + "checkstyle": "org.truffleruby", |
| 206 | + "workingSets": "TruffleRuby", |
| 207 | + "license": ["EPL-2.0"], |
| 208 | + }, |
| 209 | + |
194 | 210 | "org.truffleruby.services": {
|
195 | 211 | "dir": "src/services",
|
196 | 212 | "sourceDirs": ["java"],
|
|
420 | 436 | "org.truffleruby.annotations to org.graalvm.ruby",
|
421 | 437 | ],
|
422 | 438 | },
|
| 439 | + "useModulePath": True, |
423 | 440 | "dependencies": [
|
424 | 441 | "org.truffleruby.annotations"
|
425 | 442 | ],
|
|
430 | 447 | "tag": ["default", "public"],
|
431 | 448 | },
|
432 | 449 | "noMavenJavadoc": True,
|
433 |
| - "useModulePath": True, |
434 | 450 | },
|
435 | 451 |
|
436 | 452 | # Required to share code between the launcher and the rest,
|
|
444 | 460 | "org.truffleruby.shared.options to org.graalvm.ruby, org.graalvm.ruby.launcher",
|
445 | 461 | ],
|
446 | 462 | },
|
| 463 | + "useModulePath": True, |
447 | 464 | "dependencies": [
|
448 | 465 | "org.truffleruby.shared"
|
449 | 466 | ],
|
|
458 | 475 | "tag": ["default", "public"],
|
459 | 476 | },
|
460 | 477 | "noMavenJavadoc": True,
|
461 |
| - "useModulePath": True, |
462 | 478 | },
|
463 | 479 |
|
464 | 480 | "TRUFFLERUBY-PROCESSOR": {
|
|
478 | 494 | "moduleInfo": {
|
479 | 495 | "name": "org.graalvm.ruby",
|
480 | 496 | },
|
| 497 | + "useModulePath": True, |
481 | 498 | "dependencies": [
|
482 | 499 | "org.truffleruby",
|
483 | 500 | "org.truffleruby.ruby",
|
|
511 | 528 | "tag": ["default", "public"],
|
512 | 529 | },
|
513 | 530 | "noMavenJavadoc": True,
|
514 |
| - "useModulePath": True, |
515 | 531 | },
|
516 | 532 |
|
517 | 533 | "RUBY_COMMUNITY": {
|
518 | 534 | "type": "pom",
|
519 | 535 | "runtimeDependencies": [
|
520 | 536 | "TRUFFLERUBY",
|
| 537 | + "TRUFFLERUBY-RESOURCES", |
521 | 538 | "truffle:TRUFFLE_RUNTIME",
|
522 | 539 | ],
|
523 | 540 | "description": "TruffleRuby (GraalVM Ruby)",
|
|
551 | 568 | "org.truffleruby.launcher to org.graalvm.launcher",
|
552 | 569 | ],
|
553 | 570 | },
|
| 571 | + "useModulePath": True, |
554 | 572 | "dependencies": [
|
555 | 573 | "org.truffleruby.launcher"
|
556 | 574 | ],
|
|
563 | 581 | "description": "TruffleRuby Launcher",
|
564 | 582 | "license": ["EPL-2.0"],
|
565 | 583 | "maven": False,
|
| 584 | + }, |
| 585 | + |
| 586 | + "TRUFFLERUBY-RESOURCES": { |
| 587 | + "description": "TruffleRuby runtime resources", |
| 588 | + "platformDependent": True, |
| 589 | + "moduleInfo": { |
| 590 | + "name": "org.graalvm.ruby.resources", |
| 591 | + }, |
566 | 592 | "useModulePath": True,
|
| 593 | + "dependencies": [ |
| 594 | + "org.truffleruby.resources", |
| 595 | + "TRUFFLERUBY_RESOURCES_PLATFORM_AGNOSTIC", |
| 596 | + "TRUFFLERUBY_RESOURCES_PLATFORM_SPECIFIC", |
| 597 | + ], |
| 598 | + "distDependencies": [ |
| 599 | + "truffle:TRUFFLE_API", |
| 600 | + ], |
| 601 | + "requires": [ |
| 602 | + "java.base", |
| 603 | + ], |
| 604 | + "license": [ |
| 605 | + "EPL-2.0", # JRuby (we're choosing EPL out of EPL,GPL,LGPL) |
| 606 | + "MIT", # minitest, did_you_mean, rake |
| 607 | + "BSD-simplified", # MRI |
| 608 | + "BSD-new", # Rubinius, FFI |
| 609 | + ], |
| 610 | + "maven": { |
| 611 | + "artifactId": "ruby-resources", |
| 612 | + "tag": ["default", "public"], |
| 613 | + }, |
| 614 | + }, |
| 615 | + |
| 616 | + "TRUFFLERUBY_RESOURCES_PLATFORM_AGNOSTIC": { |
| 617 | + "description": "Platform-agnostic resources for TruffleRuby home", |
| 618 | + "type": "dir", |
| 619 | + "platformDependent": False, |
| 620 | + "hashEntry": "META-INF/resources/ruby/ruby-home/common/sha256", |
| 621 | + "fileListEntry": "META-INF/resources/ruby/ruby-home/common/file-list", |
| 622 | + "layout": { |
| 623 | + "META-INF/resources/ruby/ruby-home/common/": "extracted-dependency:TRUFFLERUBY_GRAALVM_SUPPORT_PLATFORM_AGNOSTIC", |
| 624 | + }, |
| 625 | + "maven": False, |
567 | 626 | },
|
568 | 627 |
|
569 |
| - "TRUFFLERUBY_GRAALVM_SUPPORT": { |
| 628 | + "TRUFFLERUBY_RESOURCES_PLATFORM_SPECIFIC": { |
| 629 | + "description": "Platform-specific resources for TruffleRuby home", |
| 630 | + "type": "dir", |
| 631 | + "platformDependent": True, |
| 632 | + "hashEntry": "META-INF/resources/ruby/ruby-home/<os>/<arch>/sha256", |
| 633 | + "fileListEntry": "META-INF/resources/ruby/ruby-home/<os>/<arch>/file-list", |
| 634 | + "layout": { |
| 635 | + "META-INF/resources/ruby/ruby-home/<os>/<arch>/": "extracted-dependency:TRUFFLERUBY_GRAALVM_SUPPORT_PLATFORM_SPECIFIC", |
| 636 | + }, |
| 637 | + "maven": False, |
| 638 | + }, |
| 639 | + |
| 640 | + "TRUFFLERUBY_GRAALVM_SUPPORT_PLATFORM_AGNOSTIC": { |
| 641 | + "description": "Platform-agnostic TruffleRuby home files", |
570 | 642 | "fileListPurpose": 'native-image-resources',
|
571 | 643 | "native": True,
|
572 |
| - "platformDependent": True, |
573 |
| - "description": "TruffleRuby support distribution for the GraalVM", |
| 644 | + "platformDependent": False, |
574 | 645 | "layout": {
|
575 | 646 | "lib/": [
|
576 | 647 | "file:lib/json",
|
577 | 648 | "file:lib/mri",
|
578 | 649 | "file:lib/patches",
|
579 | 650 | "file:lib/truffle",
|
580 |
| - "dependency:org.truffleruby.yarp.bindings", |
581 | 651 | ],
|
582 | 652 | "lib/cext/": [
|
583 | 653 | "file:lib/cext/*.rb",
|
584 | 654 | "file:lib/cext/ABI_version.txt",
|
585 |
| - "dependency:org.truffleruby.cext/src/main/c/truffleposix/<lib:truffleposix>", |
586 |
| - "dependency:org.truffleruby.cext/src/main/c/cext/<lib:truffleruby>", |
587 |
| - "dependency:org.truffleruby.rubysignal", |
588 | 655 | ],
|
589 | 656 | "lib/cext/include/": [
|
590 | 657 | "file:lib/cext/include/*",
|
|
594 | 661 | "source_type": "file",
|
595 | 662 | "path": "lib/gems/*",
|
596 | 663 | "exclude": [
|
597 |
| - "lib/gems/gems/debug-*/ext", |
598 |
| - "lib/gems/gems/rbs-*/ext", |
| 664 | + # The debug and rbs gems have native extensions. |
| 665 | + # Do not ship ext/ as it includes an unnecessary copy of the .so and intermediate files. |
| 666 | + # The .so in lib/ are copied in the platform-specific distribution. |
| 667 | + # <extsuffix:...> does not work in exclude, so use .* here (.{so,bundle} does not work either). |
| 668 | + "lib/gems/extensions", |
| 669 | + "lib/gems/gems/debug-1.7.1/ext", |
| 670 | + "lib/gems/gems/debug-1.7.1/lib/debug/debug.*", |
| 671 | + "lib/gems/gems/rbs-2.8.2/ext", |
| 672 | + "lib/gems/gems/rbs-2.8.2/lib/rbs_extension.*", |
599 | 673 | ],
|
600 | 674 | },
|
601 | 675 | ],
|
| 676 | + }, |
| 677 | + "license": [ |
| 678 | + "EPL-2.0", # JRuby (we're choosing EPL out of EPL,GPL,LGPL) |
| 679 | + "MIT", # minitest, did_you_mean, rake |
| 680 | + "BSD-simplified", # MRI |
| 681 | + "BSD-new", # Rubinius, FFI |
| 682 | + ], |
| 683 | + "maven": False, |
| 684 | + }, |
| 685 | + |
| 686 | + "TRUFFLERUBY_GRAALVM_SUPPORT_PLATFORM_SPECIFIC": { |
| 687 | + "description": "Platform-specific TruffleRuby home files", |
| 688 | + "fileListPurpose": 'native-image-resources', |
| 689 | + "native": True, |
| 690 | + "platformDependent": True, |
| 691 | + "layout": { |
| 692 | + "lib/": [ |
| 693 | + "dependency:org.truffleruby.yarp.bindings", |
| 694 | + ], |
| 695 | + "lib/cext/": [ |
| 696 | + "dependency:org.truffleruby.cext/src/main/c/truffleposix/<lib:truffleposix>", |
| 697 | + "dependency:org.truffleruby.cext/src/main/c/cext/<lib:truffleruby>", |
| 698 | + "dependency:org.truffleruby.rubysignal", |
| 699 | + ], |
| 700 | + # The platform-specific files from debug and rbs, see comment above |
| 701 | + "lib/gems/": "file:lib/gems/extensions", |
| 702 | + "lib/gems/gems/debug-1.7.1/lib/debug/": "file:lib/gems/gems/debug-1.7.1/lib/debug/<extsuffix:debug>", |
| 703 | + "lib/gems/gems/rbs-2.8.2/lib/": "file:lib/gems/gems/rbs-2.8.2/lib/<extsuffix:rbs_extension>", |
602 | 704 | "lib/mri/": [
|
603 | 705 | "dependency:org.truffleruby.cext/src/main/c/bigdecimal/<extsuffix:bigdecimal>",
|
604 | 706 | "dependency:org.truffleruby.cext/src/main/c/date/<extsuffix:date_core>",
|
|
621 | 723 | ],
|
622 | 724 | },
|
623 | 725 | "license": [
|
624 |
| - "EPL-2.0", # JRuby (we're choosing EPL out of EPL,GPL,LGPL) |
625 |
| - "MIT", # minitest, did_you_mean, rake |
626 | 726 | "BSD-simplified", # MRI
|
627 |
| - "BSD-new", # Rubinius, FFI |
628 | 727 | ],
|
629 | 728 | "maven": False,
|
630 | 729 | },
|
|
688 | 787 | "sdk:POLYGLOT",
|
689 | 788 | # runtime-only dependencies
|
690 | 789 | "TRUFFLERUBY",
|
| 790 | + "TRUFFLERUBY-RESOURCES", |
691 | 791 | ],
|
692 | 792 | "exclude": [
|
693 | 793 | "mx:HAMCREST",
|
694 | 794 | "mx:JUNIT",
|
695 | 795 | ],
|
| 796 | + "unittestConfig": "none", |
696 | 797 | "javaProperties": {
|
697 |
| - "org.graalvm.language.ruby.home": "<path:TRUFFLERUBY_GRAALVM_SUPPORT>" |
| 798 | + "polyglot.engine.WarnInterpreterOnly": "false", |
698 | 799 | },
|
699 | 800 | "license": ["EPL-2.0"],
|
700 | 801 | "maven": False,
|
|
708 | 809 | "distDependencies": [
|
709 | 810 | "sdk:LAUNCHER_COMMON",
|
710 | 811 | "TRUFFLERUBY",
|
| 812 | + # runtime-only dependencies |
| 813 | + "TRUFFLERUBY-RESOURCES" |
711 | 814 | ],
|
712 | 815 | "exclude": [
|
713 | 816 | "mx:HAMCREST",
|
714 | 817 | "mx:JUNIT",
|
715 | 818 | "truffleruby:NETBEANS-LIB-PROFILER",
|
716 | 819 | ],
|
| 820 | + "unittestConfig": "none", |
717 | 821 | "javaProperties": {
|
718 |
| - "org.graalvm.language.ruby.home": "<path:TRUFFLERUBY_GRAALVM_SUPPORT>" |
| 822 | + "polyglot.engine.WarnInterpreterOnly": "false", |
| 823 | + "polyglotimpl.DisableClassPathIsolation": "true", |
719 | 824 | },
|
720 | 825 | "license": ["EPL-2.0"],
|
721 | 826 | "maven": False,
|
|
725 | 830 | "testDistribution": True,
|
726 | 831 | "dependencies": ["org.truffleruby.tck"],
|
727 | 832 | "distDependencies": ["truffle:TRUFFLE_TCK"],
|
728 |
| - "javaProperties": { |
729 |
| - "org.graalvm.language.ruby.home": "<path:TRUFFLERUBY_GRAALVM_SUPPORT>" |
730 |
| - }, |
731 | 833 | "license": ["EPL-2.0"],
|
732 | 834 | "maven": False,
|
733 | 835 | },
|
|
0 commit comments