pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  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>cryptomator</artifactId>
  6. <version>1.7.0-SNAPSHOT</version>
  7. <name>Cryptomator Desktop App</name>
  8. <organization>
  9. <name>cryptomator.org</name>
  10. <url>https://cryptomator.org</url>
  11. </organization>
  12. <developers>
  13. <developer>
  14. <name>Sebastian Stenzel</name>
  15. <email>sebastian.stenzel@gmail.com</email>
  16. <timezone>+1</timezone>
  17. </developer>
  18. </developers>
  19. <properties>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. <project.jdk.version>17</project.jdk.version>
  22. <!-- Group IDs of jars that need to stay on the class path for now -->
  23. <nonModularGroupIds>com.github.serceman,com.github.jnr,org.ow2.asm,net.java.dev.jna,org.apache.jackrabbit,org.apache.httpcomponents,de.swiesend,org.purejava,com.github.hypfvieh</nonModularGroupIds>
  24. <!-- cryptomator dependencies -->
  25. <cryptomator.cryptolib.version>2.1.0-beta3</cryptomator.cryptolib.version>
  26. <cryptomator.cryptofs.version>2.2.0</cryptomator.cryptofs.version>
  27. <cryptomator.integrations.version>1.0.0</cryptomator.integrations.version>
  28. <cryptomator.integrations.win.version>1.0.0</cryptomator.integrations.win.version>
  29. <cryptomator.integrations.mac.version>1.0.0</cryptomator.integrations.mac.version>
  30. <cryptomator.integrations.linux.version>1.0.1</cryptomator.integrations.linux.version>
  31. <cryptomator.fuse.version>1.3.3</cryptomator.fuse.version>
  32. <cryptomator.dokany.version>1.3.3</cryptomator.dokany.version>
  33. <cryptomator.webdav.version>1.2.6</cryptomator.webdav.version>
  34. <!-- 3rd party dependencies -->
  35. <javafx.version>17.0.0.1</javafx.version>
  36. <commons-lang3.version>3.12.0</commons-lang3.version>
  37. <jwt.version>3.18.2</jwt.version>
  38. <easybind.version>2.2</easybind.version>
  39. <guava.version>31.0-jre</guava.version>
  40. <dagger.version>2.39</dagger.version>
  41. <gson.version>2.8.8</gson.version>
  42. <zxcvbn.version>1.5.2</zxcvbn.version>
  43. <slf4j.version>1.7.32</slf4j.version>
  44. <logback.version>1.2.6</logback.version>
  45. <jetty.version>10.0.6</jetty.version>
  46. <!-- test dependencies -->
  47. <junit.jupiter.version>5.8.1</junit.jupiter.version>
  48. <mockito.version>3.12.4</mockito.version>
  49. <hamcrest.version>2.2</hamcrest.version>
  50. </properties>
  51. <dependencies>
  52. <!-- Cryptomator Libs -->
  53. <dependency>
  54. <groupId>org.cryptomator</groupId>
  55. <artifactId>cryptolib</artifactId>
  56. <version>${cryptomator.cryptolib.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.cryptomator</groupId>
  60. <artifactId>cryptofs</artifactId>
  61. <version>${cryptomator.cryptofs.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.cryptomator</groupId>
  65. <artifactId>fuse-nio-adapter</artifactId>
  66. <version>${cryptomator.fuse.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.cryptomator</groupId>
  70. <artifactId>dokany-nio-adapter</artifactId>
  71. <version>${cryptomator.dokany.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.cryptomator</groupId>
  75. <artifactId>webdav-nio-adapter</artifactId>
  76. <version>${cryptomator.webdav.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.cryptomator</groupId>
  80. <artifactId>integrations-api</artifactId>
  81. <version>${cryptomator.integrations.version}</version>
  82. </dependency>
  83. <!-- JavaFX -->
  84. <dependency>
  85. <groupId>org.openjfx</groupId>
  86. <artifactId>javafx-base</artifactId>
  87. <version>${javafx.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.openjfx</groupId>
  91. <artifactId>javafx-graphics</artifactId>
  92. <version>${javafx.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.openjfx</groupId>
  96. <artifactId>javafx-controls</artifactId>
  97. <version>${javafx.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.openjfx</groupId>
  101. <artifactId>javafx-fxml</artifactId>
  102. <version>${javafx.version}</version>
  103. </dependency>
  104. <!-- Logging -->
  105. <dependency>
  106. <groupId>org.slf4j</groupId>
  107. <artifactId>slf4j-api</artifactId>
  108. <version>${slf4j.version}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>ch.qos.logback</groupId>
  112. <artifactId>logback-core</artifactId>
  113. <version>${logback.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>ch.qos.logback</groupId>
  117. <artifactId>logback-classic</artifactId>
  118. <version>${logback.version}</version>
  119. </dependency>
  120. <!-- Apache Commons -->
  121. <dependency>
  122. <groupId>org.apache.commons</groupId>
  123. <artifactId>commons-lang3</artifactId>
  124. <version>${commons-lang3.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.eclipse.jetty</groupId>
  128. <artifactId>jetty-server</artifactId>
  129. <version>${jetty.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.eclipse.jetty</groupId>
  133. <artifactId>jetty-webapp</artifactId>
  134. <version>${jetty.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.eclipse.jetty</groupId>
  138. <artifactId>jetty-servlets</artifactId>
  139. <version>${jetty.version}</version>
  140. </dependency>
  141. <!-- JWT -->
  142. <dependency>
  143. <groupId>com.auth0</groupId>
  144. <artifactId>java-jwt</artifactId>
  145. <version>${jwt.version}</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>com.nimbusds</groupId>
  149. <artifactId>nimbus-jose-jwt</artifactId>
  150. <version>9.15.2</version>
  151. </dependency>
  152. <!-- EasyBind -->
  153. <dependency>
  154. <groupId>com.tobiasdiez</groupId>
  155. <artifactId>easybind</artifactId>
  156. <version>${easybind.version}</version>
  157. </dependency>
  158. <!-- Zxcvbn -->
  159. <dependency>
  160. <groupId>com.nulab-inc</groupId>
  161. <artifactId>zxcvbn</artifactId>
  162. <version>${zxcvbn.version}</version>
  163. </dependency>
  164. <!-- Google -->
  165. <dependency>
  166. <groupId>com.google.guava</groupId>
  167. <artifactId>guava</artifactId>
  168. <version>${guava.version}</version>
  169. <exclusions>
  170. <!-- see https://github.com/google/guava/wiki/UseGuavaInYourBuild#what-about-guavas-own-dependencies -->
  171. <exclusion>
  172. <groupId>com.google.guava</groupId>
  173. <artifactId>listenablefuture</artifactId>
  174. </exclusion>
  175. <exclusion>
  176. <groupId>com.google.code.findbugs</groupId>
  177. <artifactId>jsr305</artifactId>
  178. </exclusion>
  179. <exclusion>
  180. <groupId>org.checkerframework</groupId>
  181. <artifactId>checker-qual</artifactId>
  182. </exclusion>
  183. <exclusion>
  184. <groupId>com.google.errorprone</groupId>
  185. <artifactId>error_prone_annotations</artifactId>
  186. </exclusion>
  187. <exclusion>
  188. <groupId>com.google.j2objc</groupId>
  189. <artifactId>j2objc-annotations</artifactId>
  190. </exclusion>
  191. </exclusions>
  192. </dependency>
  193. <dependency>
  194. <groupId>com.google.dagger</groupId>
  195. <artifactId>dagger</artifactId>
  196. <version>${dagger.version}</version>
  197. </dependency>
  198. <dependency>
  199. <groupId>com.google.code.gson</groupId>
  200. <artifactId>gson</artifactId>
  201. <version>${gson.version}</version>
  202. </dependency>
  203. <!-- JUnit / Mockito / Hamcrest -->
  204. <dependency>
  205. <groupId>org.junit.jupiter</groupId>
  206. <artifactId>junit-jupiter</artifactId>
  207. <version>${junit.jupiter.version}</version>
  208. <scope>test</scope>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.mockito</groupId>
  212. <artifactId>mockito-core</artifactId>
  213. <version>${mockito.version}</version>
  214. <scope>test</scope>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.hamcrest</groupId>
  218. <artifactId>hamcrest</artifactId>
  219. <version>${hamcrest.version}</version>
  220. <scope>test</scope>
  221. </dependency>
  222. <dependency>
  223. <groupId>org.openjfx</groupId>
  224. <artifactId>javafx-swing</artifactId>
  225. <version>${javafx.version}</version>
  226. <scope>test</scope>
  227. </dependency>
  228. <dependency>
  229. <groupId>com.google.jimfs</groupId>
  230. <artifactId>jimfs</artifactId>
  231. <version>1.2</version>
  232. <scope>test</scope>
  233. </dependency>
  234. </dependencies>
  235. <build>
  236. <pluginManagement>
  237. <plugins>
  238. <plugin>
  239. <groupId>org.apache.maven.plugins</groupId>
  240. <artifactId>maven-compiler-plugin</artifactId>
  241. <version>3.8.1</version>
  242. </plugin>
  243. <plugin>
  244. <groupId>org.apache.maven.plugins</groupId>
  245. <artifactId>maven-resources-plugin</artifactId>
  246. <version>3.2.0</version>
  247. </plugin>
  248. <plugin>
  249. <groupId>org.apache.maven.plugins</groupId>
  250. <artifactId>maven-dependency-plugin</artifactId>
  251. <version>3.2.0</version>
  252. </plugin>
  253. <plugin>
  254. <groupId>org.apache.maven.plugins</groupId>
  255. <artifactId>maven-surefire-plugin</artifactId>
  256. <version>3.0.0-M5</version>
  257. </plugin>
  258. <plugin>
  259. <groupId>org.codehaus.mojo</groupId>
  260. <artifactId>license-maven-plugin</artifactId>
  261. <version>2.0.0</version>
  262. </plugin>
  263. <plugin>
  264. <groupId>org.apache.maven.plugins</groupId>
  265. <artifactId>maven-jar-plugin</artifactId>
  266. <version>3.2.0</version>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.jacoco</groupId>
  270. <artifactId>jacoco-maven-plugin</artifactId>
  271. <version>0.8.7</version>
  272. </plugin>
  273. <plugin>
  274. <groupId>org.owasp</groupId>
  275. <artifactId>dependency-check-maven</artifactId>
  276. <version>6.3.1</version>
  277. </plugin>
  278. </plugins>
  279. </pluginManagement>
  280. <plugins>
  281. <plugin>
  282. <groupId>org.apache.maven.plugins</groupId>
  283. <artifactId>maven-compiler-plugin</artifactId>
  284. <configuration>
  285. <release>${project.jdk.version}</release>
  286. <annotationProcessorPaths>
  287. <path>
  288. <groupId>com.google.dagger</groupId>
  289. <artifactId>dagger-compiler</artifactId>
  290. <version>${dagger.version}</version>
  291. </path>
  292. </annotationProcessorPaths>
  293. <compilerArgs>
  294. <arg>-Adagger.fastInit=enabled</arg>
  295. <arg>-Adagger.formatGeneratedSource=enabled</arg>
  296. </compilerArgs>
  297. </configuration>
  298. </plugin>
  299. <plugin>
  300. <groupId>org.apache.maven.plugins</groupId>
  301. <artifactId>maven-jar-plugin</artifactId>
  302. <configuration>
  303. <archive>
  304. <manifest>
  305. <!-- adds Implementation-Version which can be read during runtime -->
  306. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  307. </manifest>
  308. </archive>
  309. </configuration>
  310. </plugin>
  311. <plugin>
  312. <groupId>org.apache.maven.plugins</groupId>
  313. <artifactId>maven-surefire-plugin</artifactId>
  314. </plugin>
  315. <plugin>
  316. <groupId>org.apache.maven.plugins</groupId>
  317. <artifactId>maven-dependency-plugin</artifactId>
  318. <executions>
  319. <execution>
  320. <id>copy-mods</id>
  321. <phase>prepare-package</phase>
  322. <goals>
  323. <goal>copy-dependencies</goal>
  324. </goals>
  325. <configuration>
  326. <includeScope>runtime</includeScope>
  327. <outputDirectory>${project.build.directory}/mods</outputDirectory>
  328. <excludeGroupIds>${nonModularGroupIds}</excludeGroupIds>
  329. </configuration>
  330. </execution>
  331. <execution>
  332. <id>copy-libs</id>
  333. <phase>prepare-package</phase>
  334. <goals>
  335. <goal>copy-dependencies</goal>
  336. </goals>
  337. <configuration>
  338. <includeScope>runtime</includeScope>
  339. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  340. <includeGroupIds>${nonModularGroupIds}</includeGroupIds>
  341. </configuration>
  342. </execution>
  343. </executions>
  344. </plugin>
  345. <plugin>
  346. <groupId>org.codehaus.mojo</groupId>
  347. <artifactId>license-maven-plugin</artifactId>
  348. <executions>
  349. <execution>
  350. <id>add-third-party</id>
  351. <goals>
  352. <goal>add-third-party</goal>
  353. </goals>
  354. <phase>generate-resources</phase>
  355. <configuration>
  356. <outputDirectory>${project.basedir}/src/main/resources/license</outputDirectory>
  357. <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
  358. <includedScopes>compile</includedScopes>
  359. <excludedGroups>org\.cryptomator</excludedGroups>
  360. <licenseMerges>
  361. <licenseMerge>Apache License v2.0|Apache License, Version 2.0|The Apache Software License, Version 2.0|Apache 2.0|Apache Software License - Version 2.0</licenseMerge>
  362. <licenseMerge>MIT License|The MIT License (MIT)|The MIT License|MIT license</licenseMerge>
  363. <licenseMerge>LGPL 2.1|LGPL, version 2.1|GNU Lesser/Library General Public License version 2|GNU Lesser General Public License Version 2.1</licenseMerge>
  364. <licenseMerge>GPLv2|GNU General Public License Version 2</licenseMerge>
  365. <licenseMerge>GPLv2+CE|CDDL + GPLv2 with classpath exception</licenseMerge>
  366. </licenseMerges>
  367. <fileTemplate>${project.basedir}/src/license/template.ftl</fileTemplate>
  368. </configuration>
  369. </execution>
  370. </executions>
  371. </plugin>
  372. </plugins>
  373. </build>
  374. <profiles>
  375. <profile>
  376. <id>coverage</id>
  377. <build>
  378. <plugins>
  379. <plugin>
  380. <groupId>org.jacoco</groupId>
  381. <artifactId>jacoco-maven-plugin</artifactId>
  382. <executions>
  383. <execution>
  384. <id>prepare-agent</id>
  385. <goals>
  386. <goal>prepare-agent</goal>
  387. </goals>
  388. </execution>
  389. <execution>
  390. <id>report</id>
  391. <goals>
  392. <goal>report</goal>
  393. </goals>
  394. </execution>
  395. </executions>
  396. <configuration>
  397. <excludes>
  398. <exclude>**/*_*</exclude>
  399. <exclude>**/Dagger*</exclude>
  400. </excludes>
  401. </configuration>
  402. </plugin>
  403. </plugins>
  404. </build>
  405. </profile>
  406. <profile>
  407. <id>dependency-check</id>
  408. <build>
  409. <plugins>
  410. <plugin>
  411. <groupId>org.owasp</groupId>
  412. <artifactId>dependency-check-maven</artifactId>
  413. <configuration>
  414. <cveValidForHours>24</cveValidForHours>
  415. <failBuildOnCVSS>0</failBuildOnCVSS>
  416. <skipTestScope>true</skipTestScope>
  417. <detail>true</detail>
  418. <suppressionFile>suppression.xml</suppressionFile>
  419. </configuration>
  420. <executions>
  421. <execution>
  422. <goals>
  423. <goal>check</goal>
  424. </goals>
  425. </execution>
  426. </executions>
  427. </plugin>
  428. </plugins>
  429. </build>
  430. </profile>
  431. <profile>
  432. <id>mac</id>
  433. <activation>
  434. <os>
  435. <family>mac</family>
  436. </os>
  437. <property>
  438. <name>idea.version</name>
  439. </property>
  440. </activation>
  441. <dependencies>
  442. <dependency>
  443. <groupId>org.cryptomator</groupId>
  444. <artifactId>integrations-mac</artifactId>
  445. <version>${cryptomator.integrations.mac.version}</version>
  446. </dependency>
  447. </dependencies>
  448. </profile>
  449. <profile>
  450. <id>linux</id>
  451. <activation>
  452. <os>
  453. <family>unix</family>
  454. <name>Linux</name>
  455. </os>
  456. <property>
  457. <name>idea.version</name>
  458. </property>
  459. </activation>
  460. <dependencies>
  461. <dependency>
  462. <groupId>org.cryptomator</groupId>
  463. <artifactId>integrations-linux</artifactId>
  464. <version>${cryptomator.integrations.linux.version}</version>
  465. </dependency>
  466. </dependencies>
  467. </profile>
  468. <profile>
  469. <id>win</id>
  470. <activation>
  471. <os>
  472. <family>windows</family>
  473. </os>
  474. <property>
  475. <name>idea.version</name>
  476. </property>
  477. </activation>
  478. <dependencies>
  479. <dependency>
  480. <groupId>org.cryptomator</groupId>
  481. <artifactId>integrations-win</artifactId>
  482. <version>${cryptomator.integrations.win.version}</version>
  483. </dependency>
  484. </dependencies>
  485. </profile>
  486. </profiles>
  487. </project>