pom.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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>11</maven.compiler.source>
  9. <maven.compiler.target>11</maven.compiler.target>
  10. <!-- the main class -->
  11. <main.class>vertx.App</main.class>
  12. <stack.version>3.7.0</stack.version>
  13. <netty.version>4.1.36.Final</netty.version>
  14. </properties>
  15. <dependencies>
  16. <dependency>
  17. <groupId>io.vertx</groupId>
  18. <artifactId>vertx-core</artifactId>
  19. <version>${stack.version}</version>
  20. </dependency>
  21. <dependency>
  22. <groupId>io.netty</groupId>
  23. <artifactId>netty-transport-native-kqueue</artifactId>
  24. <version>${netty.version}</version>
  25. <classifier>osx-x86_64</classifier>
  26. </dependency>
  27. <dependency>
  28. <groupId>io.netty</groupId>
  29. <artifactId>netty-transport-native-epoll</artifactId>
  30. <version>${netty.version}</version>
  31. <classifier>linux-x86_64</classifier>
  32. </dependency>
  33. <dependency>
  34. <groupId>io.reactiverse</groupId>
  35. <artifactId>reactive-pg-client</artifactId>
  36. <version>0.11.3</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.fizzed</groupId>
  40. <artifactId>rocker-compiler</artifactId>
  41. <version>1.2.1</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>javax.xml.bind</groupId>
  45. <artifactId>jaxb-api</artifactId>
  46. <version>2.2.12</version>
  47. </dependency>
  48. </dependencies>
  49. <build>
  50. <plugins>
  51. <plugin>
  52. <groupId>org.apache.maven.plugins</groupId>
  53. <artifactId>maven-compiler-plugin</artifactId>
  54. <version>3.8.0</version>
  55. <configuration>
  56. <debug>false</debug>
  57. </configuration>
  58. </plugin>
  59. <plugin>
  60. <groupId>com.fizzed</groupId>
  61. <artifactId>rocker-maven-plugin</artifactId>
  62. <version>1.2.1</version>
  63. <executions>
  64. <execution>
  65. <id>generate-rocker-templates</id>
  66. <phase>generate-sources</phase>
  67. <goals>
  68. <goal>generate</goal>
  69. </goals>
  70. <configuration>
  71. <javaVersion>11</javaVersion>
  72. <templateDirectory>${basedir}/src/main/templates</templateDirectory>
  73. <outputDirectory>${basedir}/target/generated-sources/rocker</outputDirectory>
  74. <discardLogicWhitespace>false</discardLogicWhitespace>
  75. <addAsSources>true</addAsSources>
  76. <optimize>true</optimize>
  77. <failOnError>true</failOnError>
  78. </configuration>
  79. </execution>
  80. </executions>
  81. </plugin>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-shade-plugin</artifactId>
  85. <version>2.3</version>
  86. <executions>
  87. <execution>
  88. <phase>package</phase>
  89. <goals>
  90. <goal>shade</goal>
  91. </goals>
  92. <configuration>
  93. <transformers>
  94. <transformer
  95. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  96. <manifestEntries>
  97. <Main-Class>${main.class}</Main-Class>
  98. </manifestEntries>
  99. </transformer>
  100. <transformer
  101. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  102. <resource>META-INF/services/io.vertx.core.spi.VerticleFactory</resource>
  103. </transformer>
  104. </transformers>
  105. <artifactSet>
  106. </artifactSet>
  107. <outputFile>${project.build.directory}/${project.artifactId}-${project.version}-fat.jar</outputFile>
  108. </configuration>
  109. </execution>
  110. </executions>
  111. </plugin>
  112. </plugins>
  113. </build>
  114. </project>