pom.xml 14 KB

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