pom.xml 17 KB

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