pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <artifactId>jooby</artifactId>
  6. <groupId>com.techempower</groupId>
  7. <version>2.0</version>
  8. <name>jooby</name>
  9. <properties>
  10. <jooby.version>2.9.5</jooby.version>
  11. <netty.version>4.1.86.Final</netty.version>
  12. <dsl-json.version>1.9.5</dsl-json.version>
  13. <postgresql.version>42.4.3</postgresql.version>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <maven.compiler.source>11</maven.compiler.source>
  16. <maven.compiler.target>11</maven.compiler.target>
  17. <!-- Startup class -->
  18. <application.class>com.techempower.App</application.class>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>jakarta.ws.rs</groupId>
  23. <artifactId>jakarta.ws.rs-api</artifactId>
  24. </dependency>
  25. <!-- jdbc -->
  26. <dependency>
  27. <groupId>io.jooby</groupId>
  28. <artifactId>jooby-hikari</artifactId>
  29. </dependency>
  30. <!-- rocker -->
  31. <dependency>
  32. <groupId>io.jooby</groupId>
  33. <artifactId>jooby-rocker</artifactId>
  34. </dependency>
  35. <!-- mySQL -->
  36. <dependency>
  37. <groupId>mysql</groupId>
  38. <artifactId>mysql-connector-java</artifactId>
  39. </dependency>
  40. <!-- postgresql -->
  41. <dependency>
  42. <groupId>org.postgresql</groupId>
  43. <artifactId>postgresql</artifactId>
  44. <version>${postgresql.version}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>io.vertx</groupId>
  48. <artifactId>vertx-pg-client</artifactId>
  49. <version>3.9.2</version>
  50. </dependency>
  51. <!-- json -->
  52. <dependency>
  53. <groupId>com.dslplatform</groupId>
  54. <artifactId>dsl-json-java8</artifactId>
  55. <version>${dsl-json.version}</version>
  56. </dependency>
  57. </dependencies>
  58. <build>
  59. <finalName>jooby</finalName>
  60. <plugins>
  61. <plugin>
  62. <groupId>org.codehaus.mojo</groupId>
  63. <artifactId>build-helper-maven-plugin</artifactId>
  64. <version>3.2.0</version>
  65. <executions>
  66. <execution>
  67. <id>add-source</id>
  68. <phase>generate-sources</phase>
  69. <goals>
  70. <goal>add-source</goal>
  71. </goals>
  72. <configuration>
  73. <sources>
  74. <source>${project.build.outputDirectory}${file.separator}generated-sources${file.separator}annotations</source>
  75. </sources>
  76. </configuration>
  77. </execution>
  78. </executions>
  79. </plugin>
  80. <plugin>
  81. <groupId>com.fizzed</groupId>
  82. <artifactId>rocker-maven-plugin</artifactId>
  83. <version>1.3.0</version>
  84. <executions>
  85. <execution>
  86. <id>generate-rocker-templates</id>
  87. <phase>generate-sources</phase>
  88. <goals>
  89. <goal>generate</goal>
  90. </goals>
  91. <configuration>
  92. <templateDirectory>public</templateDirectory>
  93. <touchFile>/dev/null</touchFile>
  94. <optimize>true</optimize>
  95. </configuration>
  96. </execution>
  97. </executions>
  98. </plugin>
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-compiler-plugin</artifactId>
  102. <version>3.8.1</version>
  103. <configuration>
  104. <annotationProcessorPaths>
  105. <path>
  106. <groupId>io.jooby</groupId>
  107. <artifactId>jooby-apt</artifactId>
  108. <version>${jooby.version}</version>
  109. </path>
  110. <path>
  111. <groupId>com.dslplatform</groupId>
  112. <artifactId>dsl-json-java8</artifactId>
  113. <version>${dsl-json.version}</version>
  114. </path>
  115. </annotationProcessorPaths>
  116. </configuration>
  117. </plugin>
  118. <!-- Build fat jar -->
  119. <plugin>
  120. <groupId>org.apache.maven.plugins</groupId>
  121. <artifactId>maven-shade-plugin</artifactId>
  122. <version>3.2.4</version>
  123. <executions>
  124. <execution>
  125. <id>uber-jar</id>
  126. <phase>package</phase>
  127. <goals>
  128. <goal>shade</goal>
  129. </goals>
  130. <configuration>
  131. <createDependencyReducedPom>false</createDependencyReducedPom>
  132. <transformers>
  133. <transformer
  134. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  135. <transformer
  136. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  137. <mainClass>${application.class}</mainClass>
  138. </transformer>
  139. </transformers>
  140. </configuration>
  141. </execution>
  142. </executions>
  143. </plugin>
  144. </plugins>
  145. </build>
  146. <profiles>
  147. <profile>
  148. <id>undertow</id>
  149. <dependencies>
  150. <dependency>
  151. <groupId>io.jooby</groupId>
  152. <artifactId>jooby-utow</artifactId>
  153. <version>${jooby.version}</version>
  154. </dependency>
  155. </dependencies>
  156. </profile>
  157. <profile>
  158. <id>jetty</id>
  159. <dependencies>
  160. <dependency>
  161. <groupId>io.jooby</groupId>
  162. <artifactId>jooby-jetty</artifactId>
  163. <version>${jooby.version}</version>
  164. </dependency>
  165. </dependencies>
  166. </profile>
  167. <profile>
  168. <id>netty</id>
  169. <dependencies>
  170. <dependency>
  171. <groupId>io.netty</groupId>
  172. <artifactId>netty-common</artifactId>
  173. <version>${netty.version}</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>io.netty</groupId>
  177. <artifactId>netty-buffer</artifactId>
  178. <version>${netty.version}</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>io.netty</groupId>
  182. <artifactId>netty-handler</artifactId>
  183. <version>${netty.version}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>io.netty</groupId>
  187. <artifactId>netty-codec-http</artifactId>
  188. <version>${netty.version}</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>io.netty</groupId>
  192. <artifactId>netty-transport</artifactId>
  193. <version>${netty.version}</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>io.netty</groupId>
  197. <artifactId>netty-transport-native-epoll</artifactId>
  198. <version>${netty.version}</version>
  199. </dependency>
  200. <dependency>
  201. <groupId>io.netty</groupId>
  202. <artifactId>netty-transport-native-kqueue</artifactId>
  203. <version>${netty.version}</version>
  204. <classifier>osx-x86_64</classifier>
  205. </dependency>
  206. <dependency>
  207. <groupId>io.netty</groupId>
  208. <artifactId>netty-transport-native-epoll</artifactId>
  209. <version>${netty.version}</version>
  210. <classifier>linux-x86_64</classifier>
  211. </dependency>
  212. <dependency>
  213. <groupId>io.jooby</groupId>
  214. <artifactId>jooby-netty</artifactId>
  215. <version>${jooby.version}</version>
  216. </dependency>
  217. </dependencies>
  218. </profile>
  219. </profiles>
  220. <dependencyManagement>
  221. <dependencies>
  222. <dependency>
  223. <groupId>io.jooby</groupId>
  224. <artifactId>jooby-bom</artifactId>
  225. <version>${jooby.version}</version>
  226. <type>pom</type>
  227. <scope>import</scope>
  228. </dependency>
  229. </dependencies>
  230. </dependencyManagement>
  231. </project>