pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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>3.0</version>
  8. <name>jooby</name>
  9. <properties>
  10. <jooby.version>3.4.0</jooby.version>
  11. <netty.version>4.1.113.Final</netty.version>
  12. <dsl-json.version>2.0.2</dsl-json.version>
  13. <postgresql.version>42.7.4</postgresql.version>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <maven.compiler.source>22</maven.compiler.source>
  16. <maven.compiler.target>22</maven.compiler.target>
  17. <!-- Startup class -->
  18. <application.class>com.techempower.App</application.class>
  19. </properties>
  20. <dependencies>
  21. <!-- jdbc -->
  22. <dependency>
  23. <groupId>io.jooby</groupId>
  24. <artifactId>jooby-hikari</artifactId>
  25. <version>${jooby.version}</version>
  26. </dependency>
  27. <!-- rocker -->
  28. <dependency>
  29. <groupId>io.jooby</groupId>
  30. <artifactId>jooby-rocker</artifactId>
  31. <version>${jooby.version}</version>
  32. </dependency>
  33. <!-- mySQL -->
  34. <dependency>
  35. <groupId>com.mysql</groupId>
  36. <artifactId>mysql-connector-j</artifactId>
  37. <version>8.4.0</version>
  38. </dependency>
  39. <!-- postgresql -->
  40. <dependency>
  41. <groupId>org.postgresql</groupId>
  42. <artifactId>postgresql</artifactId>
  43. <version>${postgresql.version}</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>io.vertx</groupId>
  47. <artifactId>vertx-pg-client</artifactId>
  48. <version>4.5.7</version>
  49. </dependency>
  50. <!-- json -->
  51. <dependency>
  52. <groupId>com.dslplatform</groupId>
  53. <artifactId>dsl-json</artifactId>
  54. <version>${dsl-json.version}</version>
  55. </dependency>
  56. </dependencies>
  57. <build>
  58. <finalName>jooby</finalName>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.codehaus.mojo</groupId>
  62. <artifactId>build-helper-maven-plugin</artifactId>
  63. <version>3.6.0</version>
  64. <executions>
  65. <execution>
  66. <id>add-source</id>
  67. <phase>generate-sources</phase>
  68. <goals>
  69. <goal>add-source</goal>
  70. </goals>
  71. <configuration>
  72. <sources>
  73. <source>${project.build.outputDirectory}${file.separator}generated-sources${file.separator}annotations</source>
  74. </sources>
  75. </configuration>
  76. </execution>
  77. </executions>
  78. </plugin>
  79. <plugin>
  80. <groupId>com.fizzed</groupId>
  81. <artifactId>rocker-maven-plugin</artifactId>
  82. <version>1.4.0</version>
  83. <executions>
  84. <execution>
  85. <id>generate-rocker-templates</id>
  86. <phase>generate-sources</phase>
  87. <goals>
  88. <goal>generate</goal>
  89. </goals>
  90. <configuration>
  91. <templateDirectory>public</templateDirectory>
  92. <touchFile>/dev/null</touchFile>
  93. <optimize>true</optimize>
  94. </configuration>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. <plugin>
  99. <groupId>org.apache.maven.plugins</groupId>
  100. <artifactId>maven-compiler-plugin</artifactId>
  101. <version>3.13.0</version>
  102. <configuration>
  103. <annotationProcessorPaths>
  104. <path>
  105. <groupId>io.jooby</groupId>
  106. <artifactId>jooby-apt</artifactId>
  107. <version>${jooby.version}</version>
  108. </path>
  109. <path>
  110. <groupId>com.dslplatform</groupId>
  111. <artifactId>dsl-json</artifactId>
  112. <version>${dsl-json.version}</version>
  113. </path>
  114. </annotationProcessorPaths>
  115. </configuration>
  116. </plugin>
  117. <!-- Build fat jar -->
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-shade-plugin</artifactId>
  121. <version>3.6.0</version>
  122. <executions>
  123. <execution>
  124. <id>uber-jar</id>
  125. <phase>package</phase>
  126. <goals>
  127. <goal>shade</goal>
  128. </goals>
  129. <configuration>
  130. <createDependencyReducedPom>false</createDependencyReducedPom>
  131. <transformers>
  132. <transformer
  133. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  134. <transformer
  135. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  136. <mainClass>${application.class}</mainClass>
  137. </transformer>
  138. </transformers>
  139. <filters>
  140. <filter>
  141. <artifact>*:*</artifact>
  142. <excludes>
  143. <exclude>META-INF/*.SF</exclude>
  144. <exclude>META-INF/*.DSA</exclude>
  145. <exclude>META-INF/*.RSA</exclude>
  146. </excludes>
  147. </filter>
  148. </filters>
  149. </configuration>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. </plugins>
  154. </build>
  155. <profiles>
  156. <profile>
  157. <id>mac</id>
  158. <activation>
  159. <os>
  160. <family>mac</family>
  161. </os>
  162. </activation>
  163. <dependencies>
  164. <dependency>
  165. <groupId>com.ongres.scram</groupId>
  166. <artifactId>client</artifactId>
  167. <version>2.1</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>io.netty</groupId>
  171. <artifactId>netty-resolver-dns-native-macos</artifactId>
  172. </dependency>
  173. </dependencies>
  174. </profile>
  175. <profile>
  176. <id>undertow</id>
  177. <dependencies>
  178. <dependency>
  179. <groupId>io.jooby</groupId>
  180. <artifactId>jooby-undertow</artifactId>
  181. <version>${jooby.version}</version>
  182. </dependency>
  183. </dependencies>
  184. </profile>
  185. <profile>
  186. <id>jetty</id>
  187. <dependencies>
  188. <dependency>
  189. <groupId>io.jooby</groupId>
  190. <artifactId>jooby-jetty</artifactId>
  191. <version>${jooby.version}</version>
  192. </dependency>
  193. </dependencies>
  194. </profile>
  195. <profile>
  196. <id>netty</id>
  197. <dependencies>
  198. <dependency>
  199. <groupId>io.jooby</groupId>
  200. <artifactId>jooby-netty</artifactId>
  201. <version>${jooby.version}</version>
  202. </dependency>
  203. </dependencies>
  204. </profile>
  205. </profiles>
  206. <dependencyManagement>
  207. <dependencies>
  208. <dependency>
  209. <groupId>io.netty</groupId>
  210. <artifactId>netty-bom</artifactId>
  211. <version>${netty.version}</version>
  212. <type>pom</type>
  213. <scope>import</scope>
  214. </dependency>
  215. <dependency>
  216. <groupId>io.jooby</groupId>
  217. <artifactId>jooby-bom</artifactId>
  218. <version>${jooby.version}</version>
  219. <type>pom</type>
  220. <scope>import</scope>
  221. </dependency>
  222. </dependencies>
  223. </dependencyManagement>
  224. </project>