pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>uk.ac.ic.wlgitbridge</groupId>
  7. <artifactId>writelatex-git-bridge</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <java.version>21</java.version>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <maven.compiler.plugin.version>3.13.0</maven.compiler.plugin.version>
  13. <maven.surefire.plugin.version>2.12.4</maven.surefire.plugin.version>
  14. <maven.assembly.plugin.version>3.1.0</maven.assembly.plugin.version>
  15. <fmt.plugin.version>2.23</fmt.plugin.version>
  16. <junit.version>4.13.2</junit.version>
  17. <jmock.junit4.version>2.13.1</jmock.junit4.version>
  18. <jetty.version>12.1.6</jetty.version>
  19. <jakarta.servlet.version>6.1.0</jakarta.servlet.version>
  20. <gson.version>2.13.2</gson.version>
  21. <async.http.client.version>3.0.9</async.http.client.version>
  22. <jgit.version>7.5.0.202512021534-r</jgit.version>
  23. <sqlite.jdbc.version>3.41.2.2</sqlite.jdbc.version>
  24. <joda.time.version>2.9.9</joda.time.version>
  25. <google.oauth.client.version>1.39.0</google.oauth.client.version>
  26. <google.http.client.version>1.23.0</google.http.client.version>
  27. <commons.lang3.version>3.20.0</commons.lang3.version>
  28. <logback.classic.version>1.5.24</logback.classic.version>
  29. <mockserver.version>5.15.0</mockserver.version>
  30. <mockito.version>5.20.0</mockito.version>
  31. <aws.java.sdk.version>2.41.7</aws.java.sdk.version>
  32. <jakarta.xml.bind.api.version>${jaxb.runtime.version}</jakarta.xml.bind.api.version>
  33. <jaxb.runtime.version>2.3.2</jaxb.runtime.version>
  34. <httpclient.version>4.5.14</httpclient.version>
  35. <commons.io.version>2.21.0</commons.io.version>
  36. <commons.compress.version>1.28.0</commons.compress.version>
  37. <simpleclient.version>0.10.0</simpleclient.version>
  38. <bouncycastle.crypto.version>1.84</bouncycastle.crypto.version>
  39. <netty.version>4.1.132.Final</netty.version>
  40. </properties>
  41. <dependencyManagement>
  42. <dependencies>
  43. <!-- Override vulnerable netty version from mockserver-netty -->
  44. <dependency>
  45. <groupId>io.netty</groupId>
  46. <artifactId>netty-codec-http2</artifactId>
  47. <version>${netty.version}</version>
  48. </dependency>
  49. </dependencies>
  50. </dependencyManagement>
  51. <build>
  52. <plugins>
  53. <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
  54. <plugin>
  55. <artifactId>maven-compiler-plugin</artifactId>
  56. <version>${maven.compiler.plugin.version}</version>
  57. <configuration>
  58. <source>${java.version}</source>
  59. <target>${java.version}</target>
  60. <release>${java.version}</release>
  61. </configuration>
  62. </plugin>
  63. <!-- Workaround, test loader crashes without this configuration option -->
  64. <!-- See: https://stackoverflow.com/questions/53010200/maven-surefire-could-not-find-forkedbooter-class -->
  65. <plugin>
  66. <groupId>org.apache.maven.plugins</groupId>
  67. <artifactId>maven-surefire-plugin</artifactId>
  68. <version>${maven.surefire.plugin.version}</version>
  69. <configuration>
  70. <argLine>-Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
  71. </configuration>
  72. </plugin>
  73. <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-assembly-plugin -->
  74. <plugin>
  75. <artifactId>maven-assembly-plugin</artifactId>
  76. <version>${maven.assembly.plugin.version}</version>
  77. <executions>
  78. <execution>
  79. <phase>package</phase>
  80. <goals>
  81. <goal>single</goal>
  82. </goals>
  83. </execution>
  84. </executions>
  85. <configuration>
  86. <archive>
  87. <manifest>
  88. <mainClass>uk.ac.ic.wlgitbridge.Main</mainClass>
  89. </manifest>
  90. </archive>
  91. <descriptorRefs>
  92. <descriptorRef>jar-with-dependencies</descriptorRef>
  93. </descriptorRefs>
  94. </configuration>
  95. </plugin>
  96. <plugin>
  97. <groupId>com.spotify.fmt</groupId>
  98. <artifactId>fmt-maven-plugin</artifactId>
  99. <version>${fmt.plugin.version}</version>
  100. </plugin>
  101. </plugins>
  102. </build>
  103. <dependencies>
  104. <!-- https://mvnrepository.com/artifact/junit/junit -->
  105. <dependency>
  106. <groupId>junit</groupId>
  107. <artifactId>junit</artifactId>
  108. <version>${junit.version}</version>
  109. <scope>test</scope>
  110. </dependency>
  111. <!-- https://mvnrepository.com/artifact/org.jmock/jmock-junit4 -->
  112. <dependency>
  113. <groupId>org.jmock</groupId>
  114. <artifactId>jmock-junit4</artifactId>
  115. <version>${jmock.junit4.version}</version>
  116. <scope>test</scope>
  117. </dependency>
  118. <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-server -->
  119. <dependency>
  120. <groupId>org.eclipse.jetty</groupId>
  121. <artifactId>jetty-server</artifactId>
  122. <version>${jetty.version}</version>
  123. </dependency>
  124. <!-- https://mvnrepository.com/artifact/org.eclipse.jetty.ee10/jetty-ee10-servlet -->
  125. <dependency>
  126. <groupId>org.eclipse.jetty.ee10</groupId>
  127. <artifactId>jetty-ee10-servlet</artifactId>
  128. <version>${jetty.version}</version>
  129. </dependency>
  130. <!-- Jakarta Servlet API -->
  131. <dependency>
  132. <groupId>jakarta.servlet</groupId>
  133. <artifactId>jakarta.servlet-api</artifactId>
  134. <version>${jakarta.servlet.version}</version>
  135. </dependency>
  136. <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
  137. <dependency>
  138. <groupId>com.google.code.gson</groupId>
  139. <artifactId>gson</artifactId>
  140. <version>${gson.version}</version>
  141. </dependency>
  142. <!-- https://mvnrepository.com/artifact/org.asynchttpclient/async-http-client -->
  143. <dependency>
  144. <groupId>org.asynchttpclient</groupId>
  145. <artifactId>async-http-client</artifactId>
  146. <version>${async.http.client.version}</version>
  147. </dependency>
  148. <!-- https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit -->
  149. <dependency>
  150. <groupId>org.eclipse.jgit</groupId>
  151. <artifactId>org.eclipse.jgit</artifactId>
  152. <version>${jgit.version}</version>
  153. </dependency>
  154. <!-- https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit.http.server -->
  155. <dependency>
  156. <groupId>org.eclipse.jgit</groupId>
  157. <artifactId>org.eclipse.jgit.http.server</artifactId>
  158. <version>${jgit.version}</version>
  159. </dependency>
  160. <!-- https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc -->
  161. <dependency>
  162. <groupId>org.xerial</groupId>
  163. <artifactId>sqlite-jdbc</artifactId>
  164. <version>${sqlite.jdbc.version}</version>
  165. </dependency>
  166. <!-- https://mvnrepository.com/artifact/joda-time/joda-time -->
  167. <dependency>
  168. <groupId>joda-time</groupId>
  169. <artifactId>joda-time</artifactId>
  170. <version>${joda.time.version}</version>
  171. </dependency>
  172. <!-- https://mvnrepository.com/artifact/com.google.oauth-client/google-oauth-client -->
  173. <dependency>
  174. <groupId>com.google.oauth-client</groupId>
  175. <artifactId>google-oauth-client</artifactId>
  176. <version>${google.oauth.client.version}</version>
  177. </dependency>
  178. <!-- https://mvnrepository.com/artifact/com.google.http-client/google-http-client -->
  179. <dependency>
  180. <groupId>com.google.http-client</groupId>
  181. <artifactId>google-http-client</artifactId>
  182. <version>${google.http.client.version}</version>
  183. </dependency>
  184. <!-- https://mvnrepository.com/artifact/com.google.http-client/google-http-client-gson -->
  185. <dependency>
  186. <groupId>com.google.http-client</groupId>
  187. <artifactId>google-http-client-gson</artifactId>
  188. <version>${google.http.client.version}</version>
  189. </dependency>
  190. <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
  191. <dependency>
  192. <groupId>org.apache.commons</groupId>
  193. <artifactId>commons-lang3</artifactId>
  194. <version>${commons.lang3.version}</version>
  195. </dependency>
  196. <!-- https://mvnrepository.com/artifact/ch.qos.logback/logback-classic -->
  197. <dependency>
  198. <groupId>ch.qos.logback</groupId>
  199. <artifactId>logback-classic</artifactId>
  200. <version>${logback.classic.version}</version>
  201. </dependency>
  202. <!-- https://mvnrepository.com/artifact/org.mock-server/mockserver-netty -->
  203. <dependency>
  204. <groupId>org.mock-server</groupId>
  205. <artifactId>mockserver-netty</artifactId>
  206. <version>${mockserver.version}</version>
  207. <scope>test</scope>
  208. </dependency>
  209. <!-- https://mvnrepository.com/artifact/org.mock-server/mockserver-junit-rule -->
  210. <dependency>
  211. <groupId>org.mock-server</groupId>
  212. <artifactId>mockserver-junit-rule</artifactId>
  213. <version>${mockserver.version}</version>
  214. <scope>test</scope>
  215. </dependency>
  216. <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
  217. <dependency>
  218. <groupId>org.mockito</groupId>
  219. <artifactId>mockito-core</artifactId>
  220. <version>${mockito.version}</version>
  221. <scope>test</scope>
  222. </dependency>
  223. <!-- https://mvnrepository.com/artifact/software.amazon.awssdk/s3/2.36.2 -->
  224. <dependency>
  225. <groupId>software.amazon.awssdk</groupId>
  226. <artifactId>s3</artifactId>
  227. <version>${aws.java.sdk.version}</version>
  228. </dependency>
  229. <!-- API, java.xml.bind module -->
  230. <dependency>
  231. <groupId>jakarta.xml.bind</groupId>
  232. <artifactId>jakarta.xml.bind-api</artifactId>
  233. <version>${jakarta.xml.bind.api.version}</version>
  234. </dependency>
  235. <!-- Runtime, com.sun.xml.bind module -->
  236. <dependency>
  237. <groupId>org.glassfish.jaxb</groupId>
  238. <artifactId>jaxb-runtime</artifactId>
  239. <version>${jaxb.runtime.version}</version>
  240. </dependency>
  241. <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
  242. <dependency>
  243. <groupId>org.apache.httpcomponents</groupId>
  244. <artifactId>httpclient</artifactId>
  245. <version>${httpclient.version}</version>
  246. </dependency>
  247. <!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
  248. <dependency>
  249. <groupId>commons-io</groupId>
  250. <artifactId>commons-io</artifactId>
  251. <version>${commons.io.version}</version>
  252. </dependency>
  253. <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-compress -->
  254. <dependency>
  255. <groupId>org.apache.commons</groupId>
  256. <artifactId>commons-compress</artifactId>
  257. <version>${commons.compress.version}</version>
  258. </dependency>
  259. <!-- prometheus metrics -->
  260. <dependency>
  261. <groupId>io.prometheus</groupId>
  262. <artifactId>simpleclient</artifactId>
  263. <version>${simpleclient.version}</version>
  264. </dependency>
  265. <!-- Hotspot JVM metrics -->
  266. <dependency>
  267. <groupId>io.prometheus</groupId>
  268. <artifactId>simpleclient_hotspot</artifactId>
  269. <version>${simpleclient.version}</version>
  270. </dependency>
  271. <!-- Expose metrics via a servlet -->
  272. <dependency>
  273. <groupId>io.prometheus</groupId>
  274. <artifactId>simpleclient_servlet</artifactId>
  275. <version>${simpleclient.version}</version>
  276. </dependency>
  277. <!-- Require by MockServerClient to load 'sun.security.x509' / 'sun.security.util' -->
  278. <dependency>
  279. <groupId>org.bouncycastle</groupId>
  280. <artifactId>bcprov-jdk18on</artifactId>
  281. <version>${bouncycastle.crypto.version}</version>
  282. <scope>test</scope>
  283. </dependency>
  284. <dependency>
  285. <groupId>org.bouncycastle</groupId>
  286. <artifactId>bcpkix-jdk18on</artifactId>
  287. <version>${bouncycastle.crypto.version}</version>
  288. <scope>test</scope>
  289. </dependency>
  290. </dependencies>
  291. </project>