|
92 | 92 | <asciidoctor.maven.plugin.version>1.5.6</asciidoctor.maven.plugin.version> |
93 | 93 | <asciidoctorj.version>1.5.6</asciidoctorj.version> |
94 | 94 | <jruby.version>1.7.26</jruby.version> |
| 95 | + <!-- For GraalVM native image --> |
| 96 | + <maven-assembly-plugin.version>3.1.0</maven-assembly-plugin.version> |
| 97 | + <maven-jar-plugin.version>3.1.0</maven-jar-plugin.version> |
| 98 | + <slf4j.version>1.7.25</slf4j.version> |
| 99 | + <graal-sdk.version>1.0.0-rc9</graal-sdk.version> |
| 100 | + <build-helper-maven-plugin.version>3.0.0</build-helper-maven-plugin.version> |
95 | 101 | </properties> |
96 | 102 |
|
97 | 103 | <dependencies> |
|
149 | 155 | <optional>true</optional> |
150 | 156 | </dependency> |
151 | 157 |
|
152 | | - |
153 | 158 | <dependency> |
154 | 159 | <groupId>org.junit.jupiter</groupId> |
155 | 160 | <artifactId>junit-jupiter-engine</artifactId> |
|
669 | 674 | </build> |
670 | 675 | </profile> |
671 | 676 |
|
| 677 | + <profile> |
| 678 | + <id>java-packaging</id> |
| 679 | + <activation> |
| 680 | + <property> |
| 681 | + <name>!native-image</name> |
| 682 | + </property> |
| 683 | + </activation> |
| 684 | + <build> |
| 685 | + <plugins> |
| 686 | + <plugin> |
| 687 | + <groupId>org.codehaus.mojo</groupId> |
| 688 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 689 | + <version>${build-helper-maven-plugin.version}</version> |
| 690 | + <executions> |
| 691 | + <execution> |
| 692 | + <id>add-source</id> |
| 693 | + <phase>generate-sources</phase> |
| 694 | + <goals> |
| 695 | + <goal>add-source</goal> |
| 696 | + </goals> |
| 697 | + <configuration> |
| 698 | + <sources> |
| 699 | + <source>src/java-packaging/java</source> |
| 700 | + </sources> |
| 701 | + </configuration> |
| 702 | + </execution> |
| 703 | + </executions> |
| 704 | + </plugin> |
| 705 | + </plugins> |
| 706 | + </build> |
| 707 | + </profile> |
| 708 | + |
| 709 | + <profile> |
| 710 | + <id>native-image</id> |
| 711 | + <dependencies> |
| 712 | + |
| 713 | + <dependency> |
| 714 | + <groupId>org.graalvm.sdk</groupId> |
| 715 | + <artifactId>graal-sdk</artifactId> |
| 716 | + <version>${graal-sdk.version}</version> |
| 717 | + </dependency> |
| 718 | + |
| 719 | + <dependency> |
| 720 | + <groupId>org.slf4j</groupId> |
| 721 | + <artifactId>slf4j-simple</artifactId> |
| 722 | + <version>${slf4j.version}</version> |
| 723 | + </dependency> |
| 724 | + |
| 725 | + </dependencies> |
| 726 | + <build> |
| 727 | + <plugins> |
| 728 | + <plugin> |
| 729 | + <artifactId>maven-compiler-plugin</artifactId> |
| 730 | + <version>${maven.compiler.plugin.version}</version> |
| 731 | + <configuration> |
| 732 | + <source>1.8</source> |
| 733 | + <target>1.8</target> |
| 734 | + <compilerArgs> |
| 735 | + <arg>-Xlint:deprecation</arg> |
| 736 | + <arg>-Xlint:unchecked</arg> |
| 737 | + </compilerArgs> |
| 738 | + <excludes> |
| 739 | + <exclude>com/rabbitmq/perf/WebServer.java</exclude> |
| 740 | + </excludes> |
| 741 | + </configuration> |
| 742 | + </plugin> |
| 743 | + <plugin> |
| 744 | + <groupId>org.apache.maven.plugins</groupId> |
| 745 | + <artifactId>maven-assembly-plugin</artifactId> |
| 746 | + <version>${maven-assembly-plugin.version}</version> |
| 747 | + <configuration> |
| 748 | + <finalName>${project.artifactId}</finalName> |
| 749 | + <descriptors> |
| 750 | + <descriptor>src/assembly/jar-for-native-image.xml</descriptor> |
| 751 | + </descriptors> |
| 752 | + <appendAssemblyId>false</appendAssemblyId> |
| 753 | + <archive> |
| 754 | + <manifest> |
| 755 | + <mainClass>com.rabbitmq.perf.NativePerfTest</mainClass> |
| 756 | + </manifest> |
| 757 | + </archive> |
| 758 | + </configuration> |
| 759 | + <executions> |
| 760 | + <execution> |
| 761 | + <id>assemble-all</id> |
| 762 | + <phase>package</phase> |
| 763 | + <goals> |
| 764 | + <goal>single</goal> |
| 765 | + </goals> |
| 766 | + </execution> |
| 767 | + </executions> |
| 768 | + </plugin> |
| 769 | + <plugin> |
| 770 | + <groupId>org.apache.maven.plugins</groupId> |
| 771 | + <artifactId>maven-jar-plugin</artifactId> |
| 772 | + <version>${maven-jar-plugin.version}</version> |
| 773 | + <executions> |
| 774 | + <execution> |
| 775 | + <id>default-jar</id> |
| 776 | + <phase>none</phase> |
| 777 | + </execution> |
| 778 | + </executions> |
| 779 | + </plugin> |
| 780 | + <plugin> |
| 781 | + <groupId>org.codehaus.mojo</groupId> |
| 782 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 783 | + <version>${build-helper-maven-plugin.version}</version> |
| 784 | + <executions> |
| 785 | + <execution> |
| 786 | + <id>add-source</id> |
| 787 | + <phase>generate-sources</phase> |
| 788 | + <goals> |
| 789 | + <goal>add-source</goal> |
| 790 | + </goals> |
| 791 | + <configuration> |
| 792 | + <sources> |
| 793 | + <source>src/graalvm/java</source> |
| 794 | + </sources> |
| 795 | + </configuration> |
| 796 | + </execution> |
| 797 | + </executions> |
| 798 | + </plugin> |
| 799 | + <plugin> |
| 800 | + <groupId>net.nicoulaj.maven.plugins</groupId> |
| 801 | + <artifactId>checksum-maven-plugin</artifactId> |
| 802 | + <version>${checksum.maven.plugin.version}</version> |
| 803 | + <configuration> |
| 804 | + <fileSets> |
| 805 | + <fileSet> |
| 806 | + <directory>${project.build.directory}</directory> |
| 807 | + <includes> |
| 808 | + <include>perf-test_*</include> |
| 809 | + </includes> |
| 810 | + </fileSet> |
| 811 | + </fileSets> |
| 812 | + <algorithms> |
| 813 | + <algorithm>MD5</algorithm> |
| 814 | + <algorithm>SHA-1</algorithm> |
| 815 | + </algorithms> |
| 816 | + </configuration> |
| 817 | + </plugin> |
| 818 | + <plugin> |
| 819 | + <groupId>org.apache.maven.plugins</groupId> |
| 820 | + <artifactId>maven-gpg-plugin</artifactId> |
| 821 | + <version>${maven.gpg.plugin.version}</version> |
| 822 | + <configuration> |
| 823 | + <keyname>${gpg.keyname}</keyname> |
| 824 | + <excludes> |
| 825 | + <exclude>*.jar</exclude> |
| 826 | + <exclude>*.md5</exclude> |
| 827 | + <exclude>*.sha1</exclude> |
| 828 | + <exclude>*.asc</exclude> |
| 829 | + </excludes> |
| 830 | + </configuration> |
| 831 | + </plugin> |
| 832 | + </plugins> |
| 833 | + |
| 834 | + </build> |
| 835 | + </profile> |
| 836 | + |
672 | 837 | <profile> |
673 | 838 | <id>ossrh-release</id> |
674 | 839 | <build> |
|
0 commit comments