pom.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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.0.5</jooby.version>
  11. <dsl-json.version>1.10.0</dsl-json.version>
  12. <postgresql.version>42.6.0</postgresql.version>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <maven.compiler.source>17</maven.compiler.source>
  15. <maven.compiler.target>17</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. <!-- mySQL -->
  33. <dependency>
  34. <groupId>com.mysql</groupId>
  35. <artifactId>mysql-connector-j</artifactId>
  36. <version>8.0.33</version>
  37. </dependency>
  38. <!-- postgresql -->
  39. <dependency>
  40. <groupId>org.postgresql</groupId>
  41. <artifactId>postgresql</artifactId>
  42. <version>${postgresql.version}</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>io.vertx</groupId>
  46. <artifactId>vertx-pg-client</artifactId>
  47. <version>4.4.4</version>
  48. </dependency>
  49. <!-- json -->
  50. <dependency>
  51. <groupId>com.dslplatform</groupId>
  52. <artifactId>dsl-json-java8</artifactId>
  53. <version>${dsl-json.version}</version>
  54. </dependency>
  55. </dependencies>
  56. <build>
  57. <finalName>jooby</finalName>
  58. <plugins>
  59. <plugin>
  60. <groupId>org.codehaus.mojo</groupId>
  61. <artifactId>build-helper-maven-plugin</artifactId>
  62. <version>3.3.0</version>
  63. <executions>
  64. <execution>
  65. <id>add-source</id>
  66. <phase>generate-sources</phase>
  67. <goals>
  68. <goal>add-source</goal>
  69. </goals>
  70. <configuration>
  71. <sources>
  72. <source>${project.build.outputDirectory}${file.separator}generated-sources${file.separator}annotations</source>
  73. </sources>
  74. </configuration>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. <plugin>
  79. <groupId>com.fizzed</groupId>
  80. <artifactId>rocker-maven-plugin</artifactId>
  81. <version>1.3.0</version>
  82. <executions>
  83. <execution>
  84. <id>generate-rocker-templates</id>
  85. <phase>generate-sources</phase>
  86. <goals>
  87. <goal>generate</goal>
  88. </goals>
  89. <configuration>
  90. <templateDirectory>public</templateDirectory>
  91. <touchFile>/dev/null</touchFile>
  92. <optimize>true</optimize>
  93. </configuration>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-compiler-plugin</artifactId>
  100. <version>3.11.0</version>
  101. <configuration>
  102. <annotationProcessorPaths>
  103. <path>
  104. <groupId>io.jooby</groupId>
  105. <artifactId>jooby-apt</artifactId>
  106. <version>${jooby.version}</version>
  107. </path>
  108. <path>
  109. <groupId>com.dslplatform</groupId>
  110. <artifactId>dsl-json-java8</artifactId>
  111. <version>${dsl-json.version}</version>
  112. </path>
  113. </annotationProcessorPaths>
  114. </configuration>
  115. </plugin>
  116. <!-- Build fat jar -->
  117. <plugin>
  118. <groupId>org.apache.maven.plugins</groupId>
  119. <artifactId>maven-shade-plugin</artifactId>
  120. <version>3.4.1</version>
  121. <executions>
  122. <execution>
  123. <id>uber-jar</id>
  124. <phase>package</phase>
  125. <goals>
  126. <goal>shade</goal>
  127. </goals>
  128. <configuration>
  129. <createDependencyReducedPom>false</createDependencyReducedPom>
  130. <transformers>
  131. <transformer
  132. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  133. <transformer
  134. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  135. <mainClass>${application.class}</mainClass>
  136. </transformer>
  137. </transformers>
  138. <filters>
  139. <filter>
  140. <artifact>*:*</artifact>
  141. <excludes>
  142. <exclude>META-INF/*.SF</exclude>
  143. <exclude>META-INF/*.DSA</exclude>
  144. <exclude>META-INF/*.RSA</exclude>
  145. </excludes>
  146. </filter>
  147. </filters>
  148. </configuration>
  149. </execution>
  150. </executions>
  151. </plugin>
  152. </plugins>
  153. </build>
  154. <profiles>
  155. <profile>
  156. <id>undertow</id>
  157. <dependencies>
  158. <dependency>
  159. <groupId>io.jooby</groupId>
  160. <artifactId>jooby-undertow</artifactId>
  161. <version>${jooby.version}</version>
  162. </dependency>
  163. </dependencies>
  164. </profile>
  165. <profile>
  166. <id>jetty</id>
  167. <dependencies>
  168. <dependency>
  169. <groupId>io.jooby</groupId>
  170. <artifactId>jooby-jetty</artifactId>
  171. <version>${jooby.version}</version>
  172. </dependency>
  173. </dependencies>
  174. </profile>
  175. <profile>
  176. <id>netty</id>
  177. <dependencies>
  178. <dependency>
  179. <groupId>io.jooby</groupId>
  180. <artifactId>jooby-netty</artifactId>
  181. <version>${jooby.version}</version>
  182. </dependency>
  183. </dependencies>
  184. </profile>
  185. </profiles>
  186. <dependencyManagement>
  187. <dependencies>
  188. <dependency>
  189. <groupId>io.jooby</groupId>
  190. <artifactId>jooby-bom</artifactId>
  191. <version>${jooby.version}</version>
  192. <type>pom</type>
  193. <scope>import</scope>
  194. </dependency>
  195. </dependencies>
  196. </dependencyManagement>
  197. </project>