pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. <parent>
  6. <groupId>io.jooby</groupId>
  7. <artifactId>jooby-project</artifactId>
  8. <version>2.0.0</version>
  9. </parent>
  10. <artifactId>jooby2</artifactId>
  11. <groupId>com.techempower</groupId>
  12. <version>2.0</version>
  13. <name>jooby 2.x</name>
  14. <properties>
  15. <jooby.version>2.0.0</jooby.version>
  16. <postgresql.version>42.2.5</postgresql.version>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <maven.compiler.source>8</maven.compiler.source>
  19. <maven.compiler.target>8</maven.compiler.target>
  20. <!-- Startup class -->
  21. <application.class>com.techempower.App</application.class>
  22. </properties>
  23. <dependencies>
  24. <!-- jackson -->
  25. <dependency>
  26. <groupId>io.jooby</groupId>
  27. <artifactId>jooby-jackson</artifactId>
  28. </dependency>
  29. <!-- jdbc -->
  30. <dependency>
  31. <groupId>io.jooby</groupId>
  32. <artifactId>jooby-hikari</artifactId>
  33. </dependency>
  34. <!-- rocker -->
  35. <dependency>
  36. <groupId>io.jooby</groupId>
  37. <artifactId>jooby-rocker</artifactId>
  38. </dependency>
  39. <!-- mySQL -->
  40. <dependency>
  41. <groupId>mysql</groupId>
  42. <artifactId>mysql-connector-java</artifactId>
  43. </dependency>
  44. <!-- postgresql -->
  45. <dependency>
  46. <groupId>org.postgresql</groupId>
  47. <artifactId>postgresql</artifactId>
  48. <version>${postgresql.version}</version>
  49. </dependency>
  50. <!-- logging -->
  51. <dependency>
  52. <groupId>ch.qos.logback</groupId>
  53. <artifactId>logback-classic</artifactId>
  54. </dependency>
  55. <!-- ASM library -->
  56. <dependency>
  57. <groupId>org.ow2.asm</groupId>
  58. <artifactId>asm</artifactId>
  59. <version>7.1</version>
  60. </dependency>
  61. </dependencies>
  62. <build>
  63. <finalName>jooby-2x</finalName>
  64. <plugins>
  65. <plugin>
  66. <groupId>com.fizzed</groupId>
  67. <artifactId>rocker-maven-plugin</artifactId>
  68. <version>1.2.1</version>
  69. <executions>
  70. <execution>
  71. <id>generate-rocker-templates</id>
  72. <phase>generate-sources</phase>
  73. <goals>
  74. <goal>generate</goal>
  75. </goals>
  76. <configuration>
  77. <templateDirectory>public</templateDirectory>
  78. <touchFile>/dev/null</touchFile>
  79. <optimize>true</optimize>
  80. </configuration>
  81. </execution>
  82. </executions>
  83. </plugin>
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-compiler-plugin</artifactId>
  87. <version>3.8.0</version>
  88. <configuration>
  89. <debug>false</debug>
  90. </configuration>
  91. </plugin>
  92. <!-- Build fat jar -->
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-shade-plugin</artifactId>
  96. </plugin>
  97. </plugins>
  98. </build>
  99. <profiles>
  100. <profile>
  101. <id>netty</id>
  102. <dependencies>
  103. <dependency>
  104. <groupId>io.jooby</groupId>
  105. <artifactId>jooby-netty</artifactId>
  106. <version>${jooby.version}</version>
  107. </dependency>
  108. </dependencies>
  109. </profile>
  110. <profile>
  111. <id>undertow</id>
  112. <dependencies>
  113. <dependency>
  114. <groupId>io.jooby</groupId>
  115. <artifactId>jooby-utow</artifactId>
  116. <version>${jooby.version}</version>
  117. </dependency>
  118. </dependencies>
  119. </profile>
  120. <profile>
  121. <id>jetty</id>
  122. <dependencies>
  123. <dependency>
  124. <groupId>io.jooby</groupId>
  125. <artifactId>jooby-jetty</artifactId>
  126. <version>${jooby.version}</version>
  127. </dependency>
  128. </dependencies>
  129. </profile>
  130. </profiles>
  131. </project>