pom.xml 6.8 KB

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