pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  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.6.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>16</project.jdk.version>
  22. <!-- cryptomator dependencies -->
  23. <cryptomator.cryptofs.version>2.1.0-beta6</cryptomator.cryptofs.version>
  24. <cryptomator.integrations.version>1.0.0-rc1</cryptomator.integrations.version>
  25. <cryptomator.integrations.win.version>1.0.0-beta2</cryptomator.integrations.win.version>
  26. <cryptomator.integrations.mac.version>1.0.0-beta2</cryptomator.integrations.mac.version>
  27. <cryptomator.integrations.linux.version>1.0.0-beta1</cryptomator.integrations.linux.version>
  28. <cryptomator.fuse.version>1.3.1</cryptomator.fuse.version>
  29. <cryptomator.dokany.version>1.3.1</cryptomator.dokany.version>
  30. <cryptomator.webdav.version>1.2.2</cryptomator.webdav.version>
  31. <!-- 3rd party dependencies -->
  32. <javafx.version>16</javafx.version>
  33. <commons-lang3.version>3.11</commons-lang3.version>
  34. <jwt.version>3.15.0</jwt.version>
  35. <easybind.version>2.2</easybind.version>
  36. <guava.version>30.1.1-jre</guava.version>
  37. <dagger.version>2.35.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.1</junit.jupiter.version>
  43. <mockito.version>3.9.0</mockito.version>
  44. <hamcrest.version>2.2</hamcrest.version>
  45. </properties>
  46. <dependencies>
  47. <!-- Cryptomator Libs -->
  48. <dependency>
  49. <groupId>org.cryptomator</groupId>
  50. <artifactId>cryptofs</artifactId>
  51. <version>${cryptomator.cryptofs.version}</version>
  52. </dependency>
  53. <!-- <dependency>-->
  54. <!-- <groupId>org.cryptomator</groupId>-->
  55. <!-- <artifactId>fuse-nio-adapter</artifactId>-->
  56. <!-- <version>${cryptomator.fuse.version}</version>-->
  57. <!-- </dependency>-->
  58. <dependency>
  59. <groupId>org.cryptomator</groupId>
  60. <artifactId>dokany-nio-adapter</artifactId>
  61. <version>${cryptomator.dokany.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.cryptomator</groupId>
  65. <artifactId>webdav-nio-adapter</artifactId>
  66. <version>${cryptomator.webdav.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.cryptomator</groupId>
  70. <artifactId>integrations-api</artifactId>
  71. <version>${cryptomator.integrations.version}</version>
  72. </dependency>
  73. <!-- JavaFX -->
  74. <dependency>
  75. <groupId>org.openjfx</groupId>
  76. <artifactId>javafx-base</artifactId>
  77. <version>${javafx.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.openjfx</groupId>
  81. <artifactId>javafx-graphics</artifactId>
  82. <version>${javafx.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.openjfx</groupId>
  86. <artifactId>javafx-controls</artifactId>
  87. <version>${javafx.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.openjfx</groupId>
  91. <artifactId>javafx-fxml</artifactId>
  92. <version>${javafx.version}</version>
  93. </dependency>
  94. <!-- Logging -->
  95. <dependency>
  96. <groupId>org.slf4j</groupId>
  97. <artifactId>slf4j-api</artifactId>
  98. <version>${slf4j.version}</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>ch.qos.logback</groupId>
  102. <artifactId>logback-core</artifactId>
  103. <version>${logback.version}</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>ch.qos.logback</groupId>
  107. <artifactId>logback-classic</artifactId>
  108. <version>${logback.version}</version>
  109. </dependency>
  110. <!-- Apache Commons -->
  111. <dependency>
  112. <groupId>org.apache.commons</groupId>
  113. <artifactId>commons-lang3</artifactId>
  114. <version>${commons-lang3.version}</version>
  115. </dependency>
  116. <!-- JWT -->
  117. <dependency>
  118. <groupId>com.auth0</groupId>
  119. <artifactId>java-jwt</artifactId>
  120. <version>${jwt.version}</version>
  121. </dependency>
  122. <dependency> <!-- TMP waiting for upstream fix: https://github.com/auth0/java-jwt/pull/484 -->
  123. <groupId>com.fasterxml.jackson.core</groupId>
  124. <artifactId>jackson-databind</artifactId>
  125. <version>2.11.0</version>
  126. </dependency>
  127. <!-- EasyBind -->
  128. <dependency>
  129. <groupId>com.tobiasdiez</groupId>
  130. <artifactId>easybind</artifactId>
  131. <version>${easybind.version}</version>
  132. </dependency>
  133. <!-- Zxcvbn -->
  134. <dependency>
  135. <groupId>com.nulab-inc</groupId>
  136. <artifactId>zxcvbn</artifactId>
  137. <version>1.3.0</version>
  138. </dependency>
  139. <!-- Google -->
  140. <dependency>
  141. <groupId>com.google.guava</groupId>
  142. <artifactId>guava</artifactId>
  143. <version>${guava.version}</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.google.dagger</groupId>
  147. <artifactId>dagger</artifactId>
  148. <version>${dagger.version}</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.google.code.gson</groupId>
  152. <artifactId>gson</artifactId>
  153. <version>${gson.version}</version>
  154. </dependency>
  155. <!-- JUnit / Mockito / Hamcrest -->
  156. <dependency>
  157. <groupId>org.junit.jupiter</groupId>
  158. <artifactId>junit-jupiter</artifactId>
  159. <version>${junit.jupiter.version}</version>
  160. <scope>test</scope>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.mockito</groupId>
  164. <artifactId>mockito-core</artifactId>
  165. <version>${mockito.version}</version>
  166. <scope>test</scope>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.hamcrest</groupId>
  170. <artifactId>hamcrest</artifactId>
  171. <version>${hamcrest.version}</version>
  172. <scope>test</scope>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.openjfx</groupId>
  176. <artifactId>javafx-swing</artifactId>
  177. <version>${javafx.version}</version>
  178. <scope>test</scope>
  179. </dependency>
  180. <dependency>
  181. <groupId>com.google.jimfs</groupId>
  182. <artifactId>jimfs</artifactId>
  183. <version>1.1</version>
  184. <scope>test</scope>
  185. </dependency>
  186. </dependencies>
  187. <build>
  188. <pluginManagement>
  189. <plugins>
  190. <plugin>
  191. <groupId>org.apache.maven.plugins</groupId>
  192. <artifactId>maven-compiler-plugin</artifactId>
  193. <version>3.8.1</version>
  194. </plugin>
  195. <plugin>
  196. <groupId>org.apache.maven.plugins</groupId>
  197. <artifactId>maven-resources-plugin</artifactId>
  198. <version>3.2.0</version>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.apache.maven.plugins</groupId>
  202. <artifactId>maven-dependency-plugin</artifactId>
  203. <version>3.1.2</version>
  204. </plugin>
  205. <plugin>
  206. <groupId>org.apache.maven.plugins</groupId>
  207. <artifactId>maven-assembly-plugin</artifactId>
  208. <version>3.3.0</version>
  209. </plugin>
  210. <plugin>
  211. <groupId>org.apache.maven.plugins</groupId>
  212. <artifactId>maven-surefire-plugin</artifactId>
  213. <version>3.0.0-M5</version>
  214. </plugin>
  215. <plugin>
  216. <groupId>org.codehaus.mojo</groupId>
  217. <artifactId>license-maven-plugin</artifactId>
  218. <version>2.0.0</version>
  219. </plugin>
  220. <plugin>
  221. <groupId>org.apache.maven.plugins</groupId>
  222. <artifactId>maven-jar-plugin</artifactId>
  223. <version>3.2.0</version>
  224. </plugin>
  225. <plugin>
  226. <groupId>org.jacoco</groupId>
  227. <artifactId>jacoco-maven-plugin</artifactId>
  228. <version>0.8.6</version>
  229. </plugin>
  230. <plugin>
  231. <groupId>org.owasp</groupId>
  232. <artifactId>dependency-check-maven</artifactId>
  233. <version>6.0.3</version>
  234. </plugin>
  235. </plugins>
  236. </pluginManagement>
  237. <plugins>
  238. <plugin>
  239. <groupId>org.apache.maven.plugins</groupId>
  240. <artifactId>maven-compiler-plugin</artifactId>
  241. <configuration>
  242. <release>${project.jdk.version}</release>
  243. <annotationProcessorPaths>
  244. <path>
  245. <groupId>com.google.dagger</groupId>
  246. <artifactId>dagger-compiler</artifactId>
  247. <version>${dagger.version}</version>
  248. </path>
  249. </annotationProcessorPaths>
  250. </configuration>
  251. </plugin>
  252. <plugin>
  253. <groupId>org.apache.maven.plugins</groupId>
  254. <artifactId>maven-jar-plugin</artifactId>
  255. <configuration>
  256. <archive>
  257. <manifest>
  258. <!-- adds Implementation-Version which can be read during runtime -->
  259. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  260. </manifest>
  261. </archive>
  262. </configuration>
  263. </plugin>
  264. <plugin>
  265. <groupId>org.apache.maven.plugins</groupId>
  266. <artifactId>maven-surefire-plugin</artifactId>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.apache.maven.plugins</groupId>
  270. <artifactId>maven-resources-plugin</artifactId>
  271. <executions>
  272. <execution>
  273. <id>copy-resources</id>
  274. <phase>prepare-package</phase>
  275. <goals>
  276. <goal>copy-resources</goal>
  277. </goals>
  278. <configuration>
  279. <outputDirectory>${project.build.directory}</outputDirectory>
  280. <resources>
  281. <resource>
  282. <directory>${project.basedir}/src/package</directory>
  283. <includes>
  284. <include>version.txt</include>
  285. <include>ffi-version.txt</include>
  286. <include>launcher-mac.sh</include>
  287. <include>launcher-linux.sh</include>
  288. <include>launcher-win.bat</include>
  289. <include>LICENSE.txt</include>
  290. </includes>
  291. <filtering>true</filtering>
  292. </resource>
  293. </resources>
  294. </configuration>
  295. </execution>
  296. </executions>
  297. </plugin>
  298. <plugin>
  299. <groupId>org.apache.maven.plugins</groupId>
  300. <artifactId>maven-dependency-plugin</artifactId>
  301. <executions>
  302. <execution>
  303. <id>copy-libs</id>
  304. <phase>prepare-package</phase>
  305. <goals>
  306. <goal>copy-dependencies</goal>
  307. </goals>
  308. <configuration>
  309. <includeScope>runtime</includeScope>
  310. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  311. <excludeClassifiers>linux,mac,win</excludeClassifiers>
  312. </configuration>
  313. </execution>
  314. </executions>
  315. </plugin>
  316. <plugin>
  317. <groupId>org.codehaus.mojo</groupId>
  318. <artifactId>license-maven-plugin</artifactId>
  319. <executions>
  320. <execution>
  321. <id>add-third-party</id>
  322. <goals>
  323. <goal>add-third-party</goal>
  324. </goals>
  325. <phase>generate-resources</phase>
  326. <configuration>
  327. <outputDirectory>${project.basedir}/src/main/resources/license</outputDirectory>
  328. <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
  329. <includedScopes>compile</includedScopes>
  330. <excludedGroups>org\.cryptomator</excludedGroups>
  331. <licenseMerges>
  332. <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>
  333. <licenseMerge>MIT License|The MIT License (MIT)|The MIT License|MIT license</licenseMerge>
  334. <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>
  335. <licenseMerge>GPLv2|GNU General Public License Version 2</licenseMerge>
  336. <licenseMerge>GPLv2+CE|CDDL + GPLv2 with classpath exception</licenseMerge>
  337. </licenseMerges>
  338. <fileTemplate>${project.basedir}/src/license/template.ftl</fileTemplate>
  339. </configuration>
  340. </execution>
  341. </executions>
  342. </plugin>
  343. </plugins>
  344. </build>
  345. <profiles>
  346. <profile>
  347. <id>coverage</id>
  348. <build>
  349. <plugins>
  350. <plugin>
  351. <groupId>org.jacoco</groupId>
  352. <artifactId>jacoco-maven-plugin</artifactId>
  353. <executions>
  354. <execution>
  355. <id>prepare-agent</id>
  356. <goals>
  357. <goal>prepare-agent</goal>
  358. </goals>
  359. </execution>
  360. <execution>
  361. <id>report</id>
  362. <goals>
  363. <goal>report</goal>
  364. </goals>
  365. </execution>
  366. </executions>
  367. <configuration>
  368. <excludes>
  369. <exclude>**/*_*</exclude>
  370. <exclude>**/Dagger*</exclude>
  371. </excludes>
  372. </configuration>
  373. </plugin>
  374. </plugins>
  375. </build>
  376. </profile>
  377. <profile>
  378. <id>dependency-check</id>
  379. <build>
  380. <plugins>
  381. <plugin>
  382. <groupId>org.owasp</groupId>
  383. <artifactId>dependency-check-maven</artifactId>
  384. <configuration>
  385. <cveValidForHours>24</cveValidForHours>
  386. <failBuildOnCVSS>0</failBuildOnCVSS>
  387. <skipTestScope>true</skipTestScope>
  388. <detail>true</detail>
  389. <suppressionFile>suppression.xml</suppressionFile>
  390. </configuration>
  391. <executions>
  392. <execution>
  393. <goals>
  394. <goal>check</goal>
  395. </goals>
  396. </execution>
  397. </executions>
  398. </plugin>
  399. </plugins>
  400. </build>
  401. </profile>
  402. <profile>
  403. <id>mac</id>
  404. <activation>
  405. <os>
  406. <family>mac</family>
  407. </os>
  408. <property>
  409. <name>idea.version</name>
  410. </property>
  411. </activation>
  412. <dependencies>
  413. <dependency>
  414. <groupId>org.cryptomator</groupId>
  415. <artifactId>integrations-mac</artifactId>
  416. <version>${cryptomator.integrations.mac.version}</version>
  417. </dependency>
  418. </dependencies>
  419. <build>
  420. <plugins>
  421. <plugin>
  422. <groupId>org.apache.maven.plugins</groupId>
  423. <artifactId>maven-assembly-plugin</artifactId>
  424. <executions>
  425. <execution>
  426. <id>assemble-mac</id>
  427. <phase>package</phase>
  428. <goals>
  429. <goal>single</goal>
  430. </goals>
  431. <configuration>
  432. <descriptors>
  433. <descriptor>assembly-mac.xml</descriptor>
  434. </descriptors>
  435. <appendAssemblyId>false</appendAssemblyId>
  436. <finalName>buildkit-mac</finalName>
  437. </configuration>
  438. </execution>
  439. </executions>
  440. </plugin>
  441. <plugin>
  442. <groupId>org.apache.maven.plugins</groupId>
  443. <artifactId>maven-dependency-plugin</artifactId>
  444. <executions>
  445. <execution>
  446. <id>copy-mac-libs</id>
  447. <phase>prepare-package</phase>
  448. <goals>
  449. <goal>copy-dependencies</goal>
  450. </goals>
  451. <configuration>
  452. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  453. <includeGroupIds>org.openjfx</includeGroupIds>
  454. <classifier>mac</classifier>
  455. </configuration>
  456. </execution>
  457. </executions>
  458. </plugin>
  459. </plugins>
  460. </build>
  461. </profile>
  462. <profile>
  463. <id>linux</id>
  464. <activation>
  465. <os>
  466. <family>unix</family>
  467. <name>Linux</name>
  468. </os>
  469. <property>
  470. <name>idea.version</name>
  471. </property>
  472. </activation>
  473. <dependencies>
  474. <dependency>
  475. <groupId>org.cryptomator</groupId>
  476. <artifactId>integrations-linux</artifactId>
  477. <version>${cryptomator.integrations.linux.version}</version>
  478. </dependency>
  479. </dependencies>
  480. <build>
  481. <plugins>
  482. <plugin>
  483. <groupId>org.apache.maven.plugins</groupId>
  484. <artifactId>maven-assembly-plugin</artifactId>
  485. <executions>
  486. <execution>
  487. <id>assemble-linux</id>
  488. <phase>package</phase>
  489. <goals>
  490. <goal>single</goal>
  491. </goals>
  492. <configuration>
  493. <descriptors>
  494. <descriptor>assembly-linux.xml</descriptor>
  495. </descriptors>
  496. <appendAssemblyId>false</appendAssemblyId>
  497. <finalName>buildkit-linux</finalName>
  498. </configuration>
  499. </execution>
  500. </executions>
  501. </plugin>
  502. <plugin>
  503. <groupId>org.apache.maven.plugins</groupId>
  504. <artifactId>maven-dependency-plugin</artifactId>
  505. <executions>
  506. <execution>
  507. <id>copy-linux-libs</id>
  508. <phase>prepare-package</phase>
  509. <goals>
  510. <goal>copy-dependencies</goal>
  511. </goals>
  512. <configuration>
  513. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  514. <includeGroupIds>org.openjfx</includeGroupIds>
  515. <classifier>linux</classifier>
  516. </configuration>
  517. </execution>
  518. </executions>
  519. </plugin>
  520. </plugins>
  521. </build>
  522. </profile>
  523. <profile>
  524. <id>windows</id>
  525. <activation>
  526. <os>
  527. <family>windows</family>
  528. </os>
  529. <property>
  530. <name>idea.version</name>
  531. </property>
  532. </activation>
  533. <dependencies>
  534. <dependency>
  535. <groupId>org.cryptomator</groupId>
  536. <artifactId>integrations-win</artifactId>
  537. <version>${cryptomator.integrations.win.version}</version>
  538. </dependency>
  539. </dependencies>
  540. <build>
  541. <plugins>
  542. <plugin>
  543. <groupId>org.apache.maven.plugins</groupId>
  544. <artifactId>maven-assembly-plugin</artifactId>
  545. <executions>
  546. <execution>
  547. <id>assemble-win</id>
  548. <phase>package</phase>
  549. <goals>
  550. <goal>single</goal>
  551. </goals>
  552. <configuration>
  553. <descriptors>
  554. <descriptor>assembly-win.xml</descriptor>
  555. </descriptors>
  556. <appendAssemblyId>false</appendAssemblyId>
  557. <finalName>buildkit-win</finalName>
  558. </configuration>
  559. </execution>
  560. </executions>
  561. </plugin>
  562. <plugin>
  563. <groupId>org.apache.maven.plugins</groupId>
  564. <artifactId>maven-dependency-plugin</artifactId>
  565. <executions>
  566. <execution>
  567. <id>copy-win-libs</id>
  568. <phase>prepare-package</phase>
  569. <goals>
  570. <goal>copy-dependencies</goal>
  571. </goals>
  572. <configuration>
  573. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  574. <includeGroupIds>org.openjfx</includeGroupIds>
  575. <classifier>win</classifier>
  576. </configuration>
  577. </execution>
  578. </executions>
  579. </plugin>
  580. </plugins>
  581. </build>
  582. </profile>
  583. </profiles>
  584. </project>