|
411 | 411 | -->
|
412 | 412 | <!-- Linux AMD64 -->
|
413 | 413 | <profile>
|
414 |
| - <id>isolate-linux-amd64</id> |
| 414 | + <id>isolated-linux-amd64</id> |
415 | 415 | <activation>
|
416 | 416 | <os>
|
417 | 417 | <family>unix</family>
|
|
420 | 420 | </os>
|
421 | 421 | </activation>
|
422 | 422 | <properties>
|
423 |
| - <isolate.platform>linux-amd64</isolate.platform> |
| 423 | + <isolate.platform.suffix>-linux-amd64</isolate.platform.suffix> |
424 | 424 | </properties>
|
425 | 425 | </profile>
|
426 | 426 | <!-- Linux AARCH64 -->
|
427 | 427 | <profile>
|
428 |
| - <id>isolate-linux-aarch64</id> |
| 428 | + <id>isolated-linux-aarch64</id> |
429 | 429 | <activation>
|
430 | 430 | <os>
|
431 | 431 | <family>unix</family>
|
|
434 | 434 | </os>
|
435 | 435 | </activation>
|
436 | 436 | <properties>
|
437 |
| - <isolate.platform>linux-aarch64</isolate.platform> |
| 437 | + <isolate.platform.suffix>-linux-aarch64</isolate.platform.suffix> |
438 | 438 | </properties>
|
439 | 439 | </profile>
|
440 | 440 | <!-- macOS AMD64 -->
|
441 | 441 | <profile>
|
442 |
| - <id>isolate-darwin-amd64</id> |
| 442 | + <id>isolated-darwin-amd64</id> |
443 | 443 | <activation>
|
444 | 444 | <os>
|
445 | 445 | <family>mac</family>
|
446 | 446 | <arch>x86_64</arch>
|
447 | 447 | </os>
|
448 | 448 | </activation>
|
449 | 449 | <properties>
|
450 |
| - <isolate.platform>darwin-amd64</isolate.platform> |
| 450 | + <isolate.platform.suffix>-darwin-amd64</isolate.platform.suffix> |
451 | 451 | </properties>
|
452 | 452 | </profile>
|
453 | 453 | <!-- macOS AARCH64 -->
|
454 | 454 | <profile>
|
455 |
| - <id>isolate-darwin-aarch64</id> |
| 455 | + <id>isolated-darwin-aarch64</id> |
456 | 456 | <activation>
|
457 | 457 | <os>
|
458 | 458 | <family>mac</family>
|
459 | 459 | <arch>aarch64</arch>
|
460 | 460 | </os>
|
461 | 461 | </activation>
|
462 | 462 | <properties>
|
463 |
| - <isolate.platform>darwin-aarch64</isolate.platform> |
| 463 | + <isolate.platform.suffix>-darwin-aarch64</isolate.platform.suffix> |
464 | 464 | </properties>
|
465 | 465 | </profile>
|
466 | 466 | <!-- Windows AMD64 -->
|
467 | 467 | <profile>
|
468 |
| - <id>isolate-windows-amd64</id> |
| 468 | + <id>isolated-windows-amd64</id> |
469 | 469 | <activation>
|
470 | 470 | <os>
|
471 | 471 | <family>windows</family>
|
472 | 472 | <arch>x86_64</arch>
|
473 | 473 | </os>
|
474 | 474 | </activation>
|
475 | 475 | <properties>
|
476 |
| - <isolate.platform>windows-amd64</isolate.platform> |
| 476 | + <isolate.platform.suffix>-windows-amd64</isolate.platform.suffix> |
477 | 477 | </properties>
|
478 | 478 | </profile>
|
| 479 | + <!-- |
| 480 | + Profile to package polyglot isolate libraries for all supported platforms. |
| 481 | + The profile is activated using `mvn -Pisolated -Disolated.all.platforms` |
| 482 | + --> |
| 483 | + <profile> |
| 484 | + <id>isolated-all-platforms</id> |
| 485 | + <activation> |
| 486 | + <property> |
| 487 | + <name>isolated.all.platforms</name> |
| 488 | + </property> |
| 489 | + </activation> |
| 490 | + <properties> |
| 491 | + <isolate.platform.suffix></isolate.platform.suffix> |
| 492 | + </properties> |
| 493 | + </profile> |
| 494 | + <!-- |
| 495 | + Profile for using isolated version of a guest language. |
| 496 | + The profile is activated by `mvn -Pisolated`. |
| 497 | + --> |
479 | 498 | <profile>
|
480 | 499 | <id>isolated</id>
|
| 500 | + <properties> |
| 501 | + <isolated.language.id>js</isolated.language.id> |
| 502 | + </properties> |
481 | 503 | <dependencies>
|
482 | 504 | <dependency>
|
483 | 505 | <groupId>org.graalvm.polyglot</groupId>
|
484 |
| - <artifactId>js-isolate-${isolate.platform}</artifactId> |
| 506 | + <artifactId>js-isolate${isolate.platform.suffix}</artifactId> |
| 507 | + <version>${graalvm.version}</version> |
| 508 | + <type>pom</type> |
| 509 | + </dependency> |
| 510 | + <dependency> |
| 511 | + <groupId>org.graalvm.polyglot</groupId> |
| 512 | + <artifactId>js</artifactId> |
485 | 513 | <version>${graalvm.version}</version>
|
486 | 514 | <type>pom</type>
|
| 515 | + <scope>provided</scope> |
487 | 516 | </dependency>
|
488 | 517 | </dependencies>
|
| 518 | + <build> |
| 519 | + <plugins> |
| 520 | + <plugin> |
| 521 | + <groupId>org.apache.maven.plugins</groupId> |
| 522 | + <artifactId>maven-surefire-plugin</artifactId> |
| 523 | + <version>3.1.2</version> |
| 524 | + <configuration> |
| 525 | + <systemPropertyVariables> |
| 526 | + <polyglot.engine.SpawnIsolate>${isolated.language.id}</polyglot.engine.SpawnIsolate> |
| 527 | + </systemPropertyVariables> |
| 528 | + </configuration> |
| 529 | + </plugin> |
| 530 | + <plugin> |
| 531 | + <groupId>org.codehaus.mojo</groupId> |
| 532 | + <artifactId>exec-maven-plugin</artifactId> |
| 533 | + <version>3.1.0</version> |
| 534 | + <executions> |
| 535 | + <execution> |
| 536 | + <goals> |
| 537 | + <goal>exec</goal> |
| 538 | + </goals> |
| 539 | + </execution> |
| 540 | + <execution> |
| 541 | + <id>no-runtime-compilation</id> |
| 542 | + <goals> |
| 543 | + <goal>exec</goal> |
| 544 | + </goals> |
| 545 | + <configuration> |
| 546 | + <executable>${java.home}/bin/java</executable> |
| 547 | + <arguments> |
| 548 | + <argument>-Dpolyglot.engine.SpawnIsolate=${isolated.language.id}</argument> |
| 549 | + <!-- We recommend running from the module-path by default. |
| 550 | + But you can also switch to the class-path here.--> |
| 551 | + <argument>--module-path</argument> |
| 552 | + <modulepath/> |
| 553 | + <argument>-m</argument> |
| 554 | + <argument>embedding/org.example.embedding.Main</argument> |
| 555 | + </arguments> |
| 556 | + </configuration> |
| 557 | + </execution> |
| 558 | + </executions> |
| 559 | + <configuration> |
| 560 | + <executable>${java.home}/bin/java</executable> |
| 561 | + <arguments> |
| 562 | + <argument>-Dpolyglot.engine.SpawnIsolate=${isolated.language.id}</argument> |
| 563 | + <!-- We recommend running from the module-path by default. |
| 564 | + But you can also switch to the class-path here.--> |
| 565 | + <argument>--module-path</argument> |
| 566 | + <modulepath/> |
| 567 | + <argument>-m</argument> |
| 568 | + <argument>embedding/org.example.embedding.Main</argument> |
| 569 | + </arguments> |
| 570 | + </configuration> |
| 571 | + </plugin> |
| 572 | + </plugins> |
| 573 | + </build> |
489 | 574 | </profile>
|
490 | 575 | </profiles>
|
491 |
| - |
492 | 576 | </project>
|
0 commit comments