pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>org.cryptomator</groupId>
  5. <artifactId>main</artifactId>
  6. <version>1.6.0-SNAPSHOT</version>
  7. <packaging>pom</packaging>
  8. <name>Cryptomator</name>
  9. <organization>
  10. <name>cryptomator.org</name>
  11. <url>https://cryptomator.org</url>
  12. </organization>
  13. <developers>
  14. <developer>
  15. <name>Sebastian Stenzel</name>
  16. <email>sebastian.stenzel@gmail.com</email>
  17. <timezone>+1</timezone>
  18. </developer>
  19. </developers>
  20. <properties>
  21. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  22. <!-- cryptomator dependencies -->
  23. <cryptomator.cryptofs.version>1.9.13</cryptomator.cryptofs.version>
  24. <cryptomator.integrations.version>0.1.6</cryptomator.integrations.version>
  25. <cryptomator.integrations.win.version>0.2.1</cryptomator.integrations.win.version>
  26. <cryptomator.integrations.mac.version>0.1.0-beta3</cryptomator.integrations.mac.version>
  27. <cryptomator.integrations.linux.version>0.1.0-beta2</cryptomator.integrations.linux.version>
  28. <cryptomator.fuse.version>1.2.6</cryptomator.fuse.version>
  29. <cryptomator.dokany.version>1.2.1</cryptomator.dokany.version>
  30. <cryptomator.webdav.version>1.0.14</cryptomator.webdav.version>
  31. <!-- 3rd party dependencies -->
  32. <javafx.version>15</javafx.version>
  33. <commons-lang3.version>3.11</commons-lang3.version>
  34. <jwt.version>3.11.0</jwt.version>
  35. <easybind.version>2.1.0</easybind.version>
  36. <guava.version>30.0-jre</guava.version>
  37. <dagger.version>2.29.1</dagger.version>
  38. <gson.version>2.8.6</gson.version>
  39. <slf4j.version>1.7.30</slf4j.version>
  40. <logback.version>1.2.3</logback.version>
  41. <!-- test dependencies -->
  42. <junit.jupiter.version>5.7.0</junit.jupiter.version>
  43. <mockito.version>3.6.0</mockito.version>
  44. <hamcrest.version>2.2</hamcrest.version>
  45. </properties>
  46. <repositories>
  47. <repository>
  48. <id>jcenter</id>
  49. <url>https://jcenter.bintray.com</url>
  50. </repository>
  51. </repositories>
  52. <dependencyManagement>
  53. <dependencies>
  54. <!-- modules -->
  55. <dependency>
  56. <groupId>org.cryptomator</groupId>
  57. <artifactId>commons</artifactId>
  58. <version>${project.version}</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.cryptomator</groupId>
  62. <artifactId>ui</artifactId>
  63. <version>${project.version}</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.cryptomator</groupId>
  67. <artifactId>launcher</artifactId>
  68. <version>${project.version}</version>
  69. </dependency>
  70. <!-- Cryptomator Libs -->
  71. <dependency>
  72. <groupId>org.cryptomator</groupId>
  73. <artifactId>cryptofs</artifactId>
  74. <version>${cryptomator.cryptofs.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.cryptomator</groupId>
  78. <artifactId>fuse-nio-adapter</artifactId>
  79. <version>${cryptomator.fuse.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.cryptomator</groupId>
  83. <artifactId>dokany-nio-adapter</artifactId>
  84. <version>${cryptomator.dokany.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.cryptomator</groupId>
  88. <artifactId>webdav-nio-adapter</artifactId>
  89. <version>${cryptomator.webdav.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.cryptomator</groupId>
  93. <artifactId>integrations-api</artifactId>
  94. <version>${cryptomator.integrations.version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.cryptomator</groupId>
  98. <artifactId>integrations-win</artifactId>
  99. <version>${cryptomator.integrations.win.version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.cryptomator</groupId>
  103. <artifactId>integrations-mac</artifactId>
  104. <version>${cryptomator.integrations.mac.version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.cryptomator</groupId>
  108. <artifactId>integrations-linux</artifactId>
  109. <version>${cryptomator.integrations.linux.version}</version>
  110. </dependency>
  111. <!-- JavaFX -->
  112. <dependency>
  113. <groupId>org.openjfx</groupId>
  114. <artifactId>javafx-base</artifactId>
  115. <version>${javafx.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.openjfx</groupId>
  119. <artifactId>javafx-graphics</artifactId>
  120. <version>${javafx.version}</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.openjfx</groupId>
  124. <artifactId>javafx-controls</artifactId>
  125. <version>${javafx.version}</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.openjfx</groupId>
  129. <artifactId>javafx-fxml</artifactId>
  130. <version>${javafx.version}</version>
  131. </dependency>
  132. <!-- Logging -->
  133. <dependency>
  134. <groupId>org.slf4j</groupId>
  135. <artifactId>slf4j-api</artifactId>
  136. <version>${slf4j.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.slf4j</groupId>
  140. <artifactId>slf4j-simple</artifactId>
  141. <version>${slf4j.version}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>ch.qos.logback</groupId>
  145. <artifactId>logback-core</artifactId>
  146. <version>${logback.version}</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>ch.qos.logback</groupId>
  150. <artifactId>logback-classic</artifactId>
  151. <version>${logback.version}</version>
  152. </dependency>
  153. <!-- Apache Commons -->
  154. <dependency>
  155. <groupId>org.apache.commons</groupId>
  156. <artifactId>commons-lang3</artifactId>
  157. <version>${commons-lang3.version}</version>
  158. </dependency>
  159. <!-- JWT -->
  160. <dependency>
  161. <groupId>com.auth0</groupId>
  162. <artifactId>java-jwt</artifactId>
  163. <version>${jwt.version}</version>
  164. </dependency>
  165. <!-- fixes CVE-2020-25649, can be removed once https://github.com/auth0/java-jwt/pull/463 is closed and released -->
  166. <dependency>
  167. <groupId>com.fasterxml.jackson.core</groupId>
  168. <artifactId>jackson-databind</artifactId>
  169. <version>2.10.5.1</version>
  170. </dependency>
  171. <!-- EasyBind -->
  172. <dependency>
  173. <groupId>com.tobiasdiez</groupId>
  174. <artifactId>easybind</artifactId>
  175. <version>${easybind.version}</version>
  176. </dependency>
  177. <!-- Google -->
  178. <dependency>
  179. <groupId>com.google.guava</groupId>
  180. <artifactId>guava</artifactId>
  181. <version>${guava.version}</version>
  182. </dependency>
  183. <dependency>
  184. <groupId>com.google.dagger</groupId>
  185. <artifactId>dagger</artifactId>
  186. <version>${dagger.version}</version>
  187. </dependency>
  188. <dependency>
  189. <groupId>com.google.code.gson</groupId>
  190. <artifactId>gson</artifactId>
  191. <version>${gson.version}</version>
  192. </dependency>
  193. <!-- JUnit / Mockito / Hamcrest -->
  194. <dependency>
  195. <groupId>org.junit.jupiter</groupId>
  196. <artifactId>junit-jupiter</artifactId>
  197. <version>${junit.jupiter.version}</version>
  198. <scope>test</scope>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.mockito</groupId>
  202. <artifactId>mockito-core</artifactId>
  203. <version>${mockito.version}</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>org.hamcrest</groupId>
  207. <artifactId>hamcrest</artifactId>
  208. <version>${hamcrest.version}</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.openjfx</groupId>
  212. <artifactId>javafx-swing</artifactId>
  213. <version>${javafx.version}</version>
  214. <scope>test</scope>
  215. </dependency>
  216. <!-- TODO: temporary fix for XXE attack, can be removed once java-jwt is updated -->
  217. <dependency>
  218. <groupId>com.fasterxml.jackson.core</groupId>
  219. <artifactId>jackson-databind</artifactId>
  220. <version>2.10.5.1</version>
  221. </dependency>
  222. </dependencies>
  223. </dependencyManagement>
  224. <dependencies>
  225. <!-- common dependencies for all modules -->
  226. <dependency>
  227. <groupId>org.slf4j</groupId>
  228. <artifactId>slf4j-api</artifactId>
  229. </dependency>
  230. <dependency>
  231. <groupId>org.junit.jupiter</groupId>
  232. <artifactId>junit-jupiter</artifactId>
  233. <scope>test</scope>
  234. </dependency>
  235. <dependency>
  236. <groupId>org.hamcrest</groupId>
  237. <artifactId>hamcrest</artifactId>
  238. <scope>test</scope>
  239. </dependency>
  240. <dependency>
  241. <groupId>org.mockito</groupId>
  242. <artifactId>mockito-core</artifactId>
  243. <scope>test</scope>
  244. </dependency>
  245. </dependencies>
  246. <modules>
  247. <module>commons</module>
  248. <module>ui</module>
  249. <module>launcher</module>
  250. </modules>
  251. <profiles>
  252. <profile>
  253. <id>release</id>
  254. <modules>
  255. <module>buildkit</module>
  256. </modules>
  257. </profile>
  258. <profile>
  259. <id>coverage</id>
  260. <build>
  261. <plugins>
  262. <plugin>
  263. <groupId>org.jacoco</groupId>
  264. <artifactId>jacoco-maven-plugin</artifactId>
  265. </plugin>
  266. </plugins>
  267. </build>
  268. </profile>
  269. <profile>
  270. <id>mac</id>
  271. <activation>
  272. <os>
  273. <family>mac</family>
  274. </os>
  275. <property>
  276. <name>idea.version</name>
  277. </property>
  278. </activation>
  279. <dependencies>
  280. <dependency>
  281. <groupId>org.cryptomator</groupId>
  282. <artifactId>integrations-mac</artifactId>
  283. </dependency>
  284. </dependencies>
  285. </profile>
  286. <profile>
  287. <id>linux</id>
  288. <activation>
  289. <os>
  290. <family>unix</family>
  291. <name>Linux</name>
  292. </os>
  293. <property>
  294. <name>idea.version</name>
  295. </property>
  296. </activation>
  297. <dependencies>
  298. <dependency>
  299. <groupId>org.cryptomator</groupId>
  300. <artifactId>integrations-linux</artifactId>
  301. </dependency>
  302. </dependencies>
  303. </profile>
  304. <profile>
  305. <id>windows</id>
  306. <activation>
  307. <os>
  308. <family>windows</family>
  309. </os>
  310. <property>
  311. <name>idea.version</name>
  312. </property>
  313. </activation>
  314. <dependencies>
  315. <dependency>
  316. <groupId>org.cryptomator</groupId>
  317. <artifactId>integrations-win</artifactId>
  318. </dependency>
  319. </dependencies>
  320. </profile>
  321. <profile>
  322. <id>dependency-check</id>
  323. <build>
  324. <plugins>
  325. <plugin>
  326. <groupId>org.owasp</groupId>
  327. <artifactId>dependency-check-maven</artifactId>
  328. <version>6.0.3</version>
  329. <configuration>
  330. <cveValidForHours>24</cveValidForHours>
  331. <failBuildOnCVSS>0</failBuildOnCVSS>
  332. <skipTestScope>true</skipTestScope>
  333. <detail>true</detail>
  334. <suppressionFile>suppression.xml</suppressionFile>
  335. </configuration>
  336. <executions>
  337. <execution>
  338. <goals>
  339. <goal>check</goal>
  340. </goals>
  341. </execution>
  342. </executions>
  343. </plugin>
  344. </plugins>
  345. </build>
  346. </profile>
  347. </profiles>
  348. <build>
  349. <pluginManagement>
  350. <plugins>
  351. <plugin>
  352. <groupId>org.apache.maven.plugins</groupId>
  353. <artifactId>maven-compiler-plugin</artifactId>
  354. <version>3.8.1</version>
  355. </plugin>
  356. <plugin>
  357. <groupId>org.apache.maven.plugins</groupId>
  358. <artifactId>maven-resources-plugin</artifactId>
  359. <version>3.2.0</version>
  360. </plugin>
  361. <plugin>
  362. <groupId>org.apache.maven.plugins</groupId>
  363. <artifactId>maven-dependency-plugin</artifactId>
  364. <version>3.1.2</version>
  365. </plugin>
  366. <plugin>
  367. <groupId>org.apache.maven.plugins</groupId>
  368. <artifactId>maven-assembly-plugin</artifactId>
  369. <version>3.3.0</version>
  370. </plugin>
  371. <plugin>
  372. <groupId>org.apache.maven.plugins</groupId>
  373. <artifactId>maven-surefire-plugin</artifactId>
  374. <version>2.22.2</version>
  375. </plugin>
  376. <plugin>
  377. <groupId>org.codehaus.mojo</groupId>
  378. <artifactId>license-maven-plugin</artifactId>
  379. <version>2.0.0</version>
  380. </plugin>
  381. <plugin>
  382. <groupId>org.apache.maven.plugins</groupId>
  383. <artifactId>maven-jar-plugin</artifactId>
  384. <version>3.2.0</version>
  385. <configuration>
  386. <archive>
  387. <manifest>
  388. <!-- adds Implementation-Version which can be read during runtime -->
  389. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  390. </manifest>
  391. </archive>
  392. </configuration>
  393. </plugin>
  394. <plugin>
  395. <groupId>org.jacoco</groupId>
  396. <artifactId>jacoco-maven-plugin</artifactId>
  397. <version>0.8.6</version>
  398. <executions>
  399. <execution>
  400. <id>prepare-agent</id>
  401. <goals>
  402. <goal>prepare-agent</goal>
  403. </goals>
  404. </execution>
  405. <execution>
  406. <id>report</id>
  407. <goals>
  408. <goal>report</goal>
  409. </goals>
  410. </execution>
  411. </executions>
  412. <configuration>
  413. <excludes>
  414. <exclude>**/*_*</exclude>
  415. <exclude>**/Dagger*</exclude>
  416. </excludes>
  417. </configuration>
  418. </plugin>
  419. </plugins>
  420. </pluginManagement>
  421. <plugins>
  422. <plugin>
  423. <artifactId>maven-compiler-plugin</artifactId>
  424. <configuration>
  425. <release>14</release>
  426. <annotationProcessorPaths>
  427. <path>
  428. <groupId>com.google.dagger</groupId>
  429. <artifactId>dagger-compiler</artifactId>
  430. <version>${dagger.version}</version>
  431. </path>
  432. </annotationProcessorPaths>
  433. </configuration>
  434. </plugin>
  435. <plugin>
  436. <groupId>org.apache.maven.plugins</groupId>
  437. <artifactId>maven-surefire-plugin</artifactId>
  438. </plugin>
  439. </plugins>
  440. </build>
  441. </project>