pom.xml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.techempower</groupId>
  5. <artifactId>vertx.benchmark</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <properties>
  8. <maven.compiler.source>17</maven.compiler.source>
  9. <maven.compiler.target>17</maven.compiler.target>
  10. <!-- the main class -->
  11. <main.class>vertx.App</main.class>
  12. <vertx.version>5.0.4</vertx.version>
  13. <netty.version>4.2.5.Final</netty.version>
  14. <jackson.version>2.16.1</jackson.version>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>io.vertx</groupId>
  19. <artifactId>vertx-core</artifactId>
  20. <version>${vertx.version}</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>io.vertx</groupId>
  24. <artifactId>vertx-core-logging</artifactId>
  25. <version>${vertx.version}</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>io.vertx</groupId>
  29. <artifactId>vertx-pg-client</artifactId>
  30. <version>${vertx.version}</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>com.dslplatform</groupId>
  34. <artifactId>dsl-json</artifactId>
  35. <version>2.0.2</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.julienviet</groupId>
  39. <artifactId>jsonsergen</artifactId>
  40. <version>0.0.5</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.github.ben-manes.caffeine</groupId>
  44. <artifactId>caffeine</artifactId>
  45. <version>3.1.3</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.fizzed</groupId>
  49. <artifactId>rocker-compiler</artifactId>
  50. <version>1.3.0</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>javax.xml.bind</groupId>
  54. <artifactId>jaxb-api</artifactId>
  55. <version>2.3.1</version>
  56. </dependency>
  57. </dependencies>
  58. <build>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.apache.maven.plugins</groupId>
  62. <artifactId>maven-compiler-plugin</artifactId>
  63. <version>3.10.1</version>
  64. <configuration>
  65. <debug>false</debug>
  66. </configuration>
  67. <executions>
  68. <execution>
  69. <id>default-compile</id>
  70. <configuration>
  71. <annotationProcessors>
  72. <annotationProcessor>io.vertx.codegen.CodeGenProcessor</annotationProcessor>
  73. </annotationProcessors>
  74. </configuration>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. <plugin>
  79. <groupId>com.fizzed</groupId>
  80. <artifactId>rocker-maven-plugin</artifactId>
  81. <version>1.3.0</version>
  82. <executions>
  83. <execution>
  84. <id>generate-rocker-templates</id>
  85. <phase>generate-sources</phase>
  86. <goals>
  87. <goal>generate</goal>
  88. </goals>
  89. <configuration>
  90. <javaVersion>17</javaVersion>
  91. <templateDirectory>${basedir}/src/main/templates</templateDirectory>
  92. <outputDirectory>${basedir}/target/generated-sources/rocker</outputDirectory>
  93. <discardLogicWhitespace>true</discardLogicWhitespace>
  94. <addAsSources>true</addAsSources>
  95. <optimize>true</optimize>
  96. <failOnError>true</failOnError>
  97. </configuration>
  98. </execution>
  99. </executions>
  100. </plugin>
  101. <plugin>
  102. <groupId>org.apache.maven.plugins</groupId>
  103. <artifactId>maven-shade-plugin</artifactId>
  104. <version>2.4.1</version>
  105. <executions>
  106. <execution>
  107. <phase>package</phase>
  108. <goals>
  109. <goal>shade</goal>
  110. </goals>
  111. <configuration>
  112. <transformers>
  113. <transformer
  114. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  115. <manifestEntries>
  116. <Main-Class>${main.class}</Main-Class>
  117. </manifestEntries>
  118. </transformer>
  119. <transformer
  120. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  121. <resource>META-INF/services/io.vertx.core.spi.VerticleFactory</resource>
  122. </transformer>
  123. </transformers>
  124. <artifactSet>
  125. </artifactSet>
  126. <filters>
  127. <filter>
  128. <artifact>*:*</artifact>
  129. <excludes>
  130. <exclude>META-INF/versions/**/module-info.class</exclude>
  131. <exclude>module-info.class</exclude>
  132. </excludes>
  133. </filter>
  134. </filters>
  135. <outputFile>${project.build.directory}/${project.artifactId}-${project.version}-fat.jar</outputFile>
  136. </configuration>
  137. </execution>
  138. </executions>
  139. </plugin>
  140. </plugins>
  141. </build>
  142. <profiles>
  143. <profile>
  144. <id>linux-x86_64</id>
  145. <activation>
  146. <os>
  147. <family>linux</family>
  148. <arch>x86_64</arch>
  149. </os>
  150. </activation>
  151. <dependencies>
  152. <dependency>
  153. <groupId>io.netty</groupId>
  154. <artifactId>netty-transport-native-io_uring</artifactId>
  155. <version>${netty.version}</version>
  156. <classifier>linux-x86_64</classifier>
  157. </dependency>
  158. </dependencies>
  159. </profile>
  160. <profile>
  161. <id>linux-amd64</id>
  162. <activation>
  163. <os>
  164. <family>linux</family>
  165. <arch>amd64</arch>
  166. </os>
  167. </activation>
  168. <dependencies>
  169. <dependency>
  170. <groupId>io.netty</groupId>
  171. <artifactId>netty-transport-native-io_uring</artifactId>
  172. <version>${netty.version}</version>
  173. <classifier>linux-x86_64</classifier>
  174. </dependency>
  175. </dependencies>
  176. </profile>
  177. <profile>
  178. <id>linux-aarch64</id>
  179. <activation>
  180. <os>
  181. <family>linux</family>
  182. <arch>aarch64</arch>
  183. </os>
  184. </activation>
  185. <dependencies>
  186. <dependency>
  187. <groupId>io.netty</groupId>
  188. <artifactId>netty-transport-native-io_uring</artifactId>
  189. <version>${netty.version}</version>
  190. <classifier>linux-aarch_64</classifier>
  191. </dependency>
  192. </dependencies>
  193. </profile>
  194. <profile>
  195. <id>osx-x86_64</id>
  196. <activation>
  197. <os>
  198. <family>mac</family>
  199. <arch>x86_64</arch>
  200. </os>
  201. </activation>
  202. <dependencies>
  203. <dependency>
  204. <groupId>io.netty</groupId>
  205. <artifactId>netty-resolver-dns-native-macos</artifactId>
  206. <version>${netty.version}</version>
  207. <classifier>osx-x86_64</classifier>
  208. </dependency>
  209. <dependency>
  210. <groupId>io.netty</groupId>
  211. <artifactId>netty-transport-native-kqueue</artifactId>
  212. <version>${netty.version}</version>
  213. <classifier>osx-x86_64</classifier>
  214. </dependency>
  215. </dependencies>
  216. </profile>
  217. <profile>
  218. <id>osx-aarch64</id>
  219. <activation>
  220. <os>
  221. <family>mac</family>
  222. <arch>aarch64</arch>
  223. </os>
  224. </activation>
  225. <dependencies>
  226. <dependency>
  227. <groupId>io.netty</groupId>
  228. <artifactId>netty-resolver-dns-native-macos</artifactId>
  229. <version>${netty.version}</version>
  230. <classifier>osx-aarch_64</classifier>
  231. </dependency>
  232. <dependency>
  233. <groupId>io.netty</groupId>
  234. <artifactId>netty-transport-native-kqueue</artifactId>
  235. <version>${netty.version}</version>
  236. <classifier>osx-aarch_64</classifier>
  237. </dependency>
  238. </dependencies>
  239. </profile>
  240. </profiles>
  241. </project>