pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. <stack.version>4.4.2</stack.version>
  13. <jackson.version>2.15.0</jackson.version>
  14. <netty.version>4.1.92.Final</netty.version>
  15. <netty.io_uring.version>0.0.21.Final</netty.io_uring.version>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>io.vertx</groupId>
  20. <artifactId>vertx-core</artifactId>
  21. <version>${stack.version}</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>io.vertx</groupId>
  25. <artifactId>vertx-pg-client</artifactId>
  26. <version>${stack.version}</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>com.fasterxml.jackson.core</groupId>
  30. <artifactId>jackson-core</artifactId>
  31. <version>${jackson.version}</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.fasterxml.jackson.core</groupId>
  35. <artifactId>jackson-databind</artifactId>
  36. <version>${jackson.version}</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>io.netty</groupId>
  40. <artifactId>netty-transport-native-kqueue</artifactId>
  41. <version>${netty.version}</version>
  42. <classifier>osx-x86_64</classifier>
  43. </dependency>
  44. <dependency>
  45. <groupId>io.netty</groupId>
  46. <artifactId>netty-transport-native-epoll</artifactId>
  47. <version>${netty.version}</version>
  48. <classifier>linux-x86_64</classifier>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.github.ben-manes.caffeine</groupId>
  52. <artifactId>caffeine</artifactId>
  53. <version>3.1.3</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.fizzed</groupId>
  57. <artifactId>rocker-compiler</artifactId>
  58. <version>1.3.0</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>javax.xml.bind</groupId>
  62. <artifactId>jaxb-api</artifactId>
  63. <version>2.3.1</version>
  64. </dependency>
  65. </dependencies>
  66. <build>
  67. <plugins>
  68. <plugin>
  69. <groupId>org.apache.maven.plugins</groupId>
  70. <artifactId>maven-compiler-plugin</artifactId>
  71. <version>3.10.1</version>
  72. <configuration>
  73. <debug>false</debug>
  74. </configuration>
  75. </plugin>
  76. <plugin>
  77. <groupId>com.fizzed</groupId>
  78. <artifactId>rocker-maven-plugin</artifactId>
  79. <version>1.3.0</version>
  80. <executions>
  81. <execution>
  82. <id>generate-rocker-templates</id>
  83. <phase>generate-sources</phase>
  84. <goals>
  85. <goal>generate</goal>
  86. </goals>
  87. <configuration>
  88. <javaVersion>17</javaVersion>
  89. <templateDirectory>${basedir}/src/main/templates</templateDirectory>
  90. <outputDirectory>${basedir}/target/generated-sources/rocker</outputDirectory>
  91. <discardLogicWhitespace>false</discardLogicWhitespace>
  92. <addAsSources>true</addAsSources>
  93. <optimize>true</optimize>
  94. <failOnError>true</failOnError>
  95. </configuration>
  96. </execution>
  97. </executions>
  98. </plugin>
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-shade-plugin</artifactId>
  102. <version>2.4.1</version>
  103. <executions>
  104. <execution>
  105. <phase>package</phase>
  106. <goals>
  107. <goal>shade</goal>
  108. </goals>
  109. <configuration>
  110. <transformers>
  111. <transformer
  112. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  113. <manifestEntries>
  114. <Main-Class>${main.class}</Main-Class>
  115. </manifestEntries>
  116. </transformer>
  117. <transformer
  118. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  119. <resource>META-INF/services/io.vertx.core.spi.VerticleFactory</resource>
  120. </transformer>
  121. </transformers>
  122. <artifactSet>
  123. </artifactSet>
  124. <outputFile>${project.build.directory}/${project.artifactId}-${project.version}-fat.jar</outputFile>
  125. </configuration>
  126. </execution>
  127. </executions>
  128. </plugin>
  129. </plugins>
  130. </build>
  131. <profiles>
  132. <profile>
  133. <id>Linux</id>
  134. <activation>
  135. <activeByDefault>false</activeByDefault>
  136. <os>
  137. <family>unix</family>
  138. </os>
  139. </activation>
  140. <dependencies>
  141. <dependency>
  142. <groupId>io.vertx</groupId>
  143. <artifactId>vertx-io_uring-incubator</artifactId>
  144. <version>${stack.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>io.netty.incubator</groupId>
  148. <artifactId>netty-incubator-transport-native-io_uring</artifactId>
  149. <version>${netty.io_uring.version}</version>
  150. <classifier>linux-x86_64</classifier>
  151. </dependency>
  152. </dependencies>
  153. </profile>
  154. </profiles>
  155. </project>