|
103 | 103 | <uberJarFinalName>perf-test</uberJarFinalName> |
104 | 104 | <asciidoctor.maven.plugin.version>3.1.1</asciidoctor.maven.plugin.version> |
105 | 105 | <asciidoctorj.version>3.0.0</asciidoctorj.version> |
106 | | - <!-- For GraalVM native image --> |
107 | | - <graal-sdk.version>24.1.2</graal-sdk.version> |
108 | | - <hdr-histogram.version>2.2.2</hdr-histogram.version> |
109 | 106 |
|
110 | 107 | <maven.javadoc.skip>true</maven.javadoc.skip> |
111 | 108 | <gpg.skip>true</gpg.skip> |
|
762 | 759 |
|
763 | 760 | </profile> |
764 | 761 |
|
765 | | - <profile> |
766 | | - <id>java-packaging</id> |
767 | | - <activation> |
768 | | - <property> |
769 | | - <name>!native-image</name> |
770 | | - </property> |
771 | | - </activation> |
772 | | - <properties> |
773 | | - <maven.javadoc.skip>false</maven.javadoc.skip> |
774 | | - <gpg.skip>false</gpg.skip> |
775 | | - </properties> |
776 | | - <build> |
777 | | - <plugins> |
778 | | - <plugin> |
779 | | - <groupId>org.codehaus.mojo</groupId> |
780 | | - <artifactId>build-helper-maven-plugin</artifactId> |
781 | | - <version>${build-helper-maven-plugin.version}</version> |
782 | | - <executions> |
783 | | - <execution> |
784 | | - <id>add-source</id> |
785 | | - <phase>generate-sources</phase> |
786 | | - <goals> |
787 | | - <goal>add-source</goal> |
788 | | - </goals> |
789 | | - <configuration> |
790 | | - <sources> |
791 | | - <source>src/java-packaging/java</source> |
792 | | - </sources> |
793 | | - </configuration> |
794 | | - </execution> |
795 | | - </executions> |
796 | | - </plugin> |
797 | | - </plugins> |
798 | | - </build> |
799 | | - </profile> |
800 | | - |
801 | | - <profile> |
802 | | - <id>native-image</id> |
803 | | - <properties> |
804 | | - <gpg.skip>false</gpg.skip> |
805 | | - </properties> |
806 | | - <dependencies> |
807 | | - |
808 | | - <dependency> |
809 | | - <groupId>org.graalvm.sdk</groupId> |
810 | | - <artifactId>graal-sdk</artifactId> |
811 | | - <version>${graal-sdk.version}</version> |
812 | | - </dependency> |
813 | | - |
814 | | - <dependency> |
815 | | - <groupId>org.slf4j</groupId> |
816 | | - <artifactId>slf4j-simple</artifactId> |
817 | | - <version>${slf4j.version}</version> |
818 | | - </dependency> |
819 | | - |
820 | | - <dependency> |
821 | | - <groupId>org.hdrhistogram</groupId> |
822 | | - <artifactId>HdrHistogram</artifactId> |
823 | | - <version>${hdr-histogram.version}</version> |
824 | | - </dependency> |
825 | | - |
826 | | - </dependencies> |
827 | | - <build> |
828 | | - <plugins> |
829 | | - <plugin> |
830 | | - <artifactId>maven-compiler-plugin</artifactId> |
831 | | - <version>${maven.compiler.plugin.version}</version> |
832 | | - <configuration> |
833 | | - <source>1.8</source> |
834 | | - <target>1.8</target> |
835 | | - <compilerArgs> |
836 | | - <arg>-Xlint:deprecation</arg> |
837 | | - <arg>-Xlint:unchecked</arg> |
838 | | - </compilerArgs> |
839 | | - <excludes> |
840 | | - <exclude>com/rabbitmq/perf/WebServer.java</exclude> |
841 | | - </excludes> |
842 | | - </configuration> |
843 | | - </plugin> |
844 | | - <plugin> |
845 | | - <groupId>org.apache.maven.plugins</groupId> |
846 | | - <artifactId>maven-assembly-plugin</artifactId> |
847 | | - <version>${maven.assembly.plugin.version}</version> |
848 | | - <configuration> |
849 | | - <finalName>${project.artifactId}</finalName> |
850 | | - <descriptors> |
851 | | - <descriptor>src/assembly/jar-for-native-image.xml</descriptor> |
852 | | - </descriptors> |
853 | | - <appendAssemblyId>false</appendAssemblyId> |
854 | | - <archive> |
855 | | - <manifest> |
856 | | - <mainClass>com.rabbitmq.perf.NativePerfTest</mainClass> |
857 | | - </manifest> |
858 | | - </archive> |
859 | | - </configuration> |
860 | | - <executions> |
861 | | - <execution> |
862 | | - <id>assemble-all</id> |
863 | | - <phase>package</phase> |
864 | | - <goals> |
865 | | - <goal>single</goal> |
866 | | - </goals> |
867 | | - </execution> |
868 | | - </executions> |
869 | | - </plugin> |
870 | | - <plugin> |
871 | | - <groupId>org.apache.maven.plugins</groupId> |
872 | | - <artifactId>maven-jar-plugin</artifactId> |
873 | | - <version>${maven.jar.plugin.version}</version> |
874 | | - <executions> |
875 | | - <execution> |
876 | | - <id>default-jar</id> |
877 | | - <phase>none</phase> |
878 | | - </execution> |
879 | | - </executions> |
880 | | - </plugin> |
881 | | - <plugin> |
882 | | - <groupId>org.codehaus.mojo</groupId> |
883 | | - <artifactId>build-helper-maven-plugin</artifactId> |
884 | | - <version>${build-helper-maven-plugin.version}</version> |
885 | | - <executions> |
886 | | - <execution> |
887 | | - <id>add-source</id> |
888 | | - <phase>generate-sources</phase> |
889 | | - <goals> |
890 | | - <goal>add-source</goal> |
891 | | - </goals> |
892 | | - <configuration> |
893 | | - <sources> |
894 | | - <source>src/graalvm/java</source> |
895 | | - </sources> |
896 | | - </configuration> |
897 | | - </execution> |
898 | | - </executions> |
899 | | - </plugin> |
900 | | - <plugin> |
901 | | - <groupId>net.nicoulaj.maven.plugins</groupId> |
902 | | - <artifactId>checksum-maven-plugin</artifactId> |
903 | | - <version>${checksum.maven.plugin.version}</version> |
904 | | - <configuration> |
905 | | - <fileSets> |
906 | | - <fileSet> |
907 | | - <directory>${project.build.directory}</directory> |
908 | | - <includes> |
909 | | - <include>perf-test_*</include> |
910 | | - </includes> |
911 | | - </fileSet> |
912 | | - </fileSets> |
913 | | - <algorithms> |
914 | | - <algorithm>MD5</algorithm> |
915 | | - <algorithm>SHA-256</algorithm> |
916 | | - </algorithms> |
917 | | - </configuration> |
918 | | - </plugin> |
919 | | - <plugin> |
920 | | - <groupId>org.apache.maven.plugins</groupId> |
921 | | - <artifactId>maven-gpg-plugin</artifactId> |
922 | | - <version>${maven.gpg.plugin.version}</version> |
923 | | - <configuration> |
924 | | - <keyname>${gpg.keyname}</keyname> |
925 | | - <excludes> |
926 | | - <exclude>*.jar</exclude> |
927 | | - <exclude>*.md5</exclude> |
928 | | - <exclude>*.sha256</exclude> |
929 | | - <exclude>*.asc</exclude> |
930 | | - </excludes> |
931 | | - </configuration> |
932 | | - </plugin> |
933 | | - </plugins> |
934 | | - |
935 | | - </build> |
936 | | - </profile> |
937 | | - |
938 | 762 | <profile> |
939 | 763 | <id>snapshots</id> |
940 | 764 | <distributionManagement> |
|
0 commit comments