pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  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. <compilerArgs>
  246. <arg>-Adagger.fastInit=enabled</arg>
  247. <arg>-Adagger.formatGeneratedSource=enabled</arg>
  248. </compilerArgs>
  249. </configuration>
  250. </plugin>
  251. <plugin>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-jar-plugin</artifactId>
  254. <configuration>
  255. <archive>
  256. <manifest>
  257. <!-- adds Implementation-Version which can be read during runtime -->
  258. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  259. </manifest>
  260. </archive>
  261. </configuration>
  262. </plugin>
  263. <plugin>
  264. <groupId>org.apache.maven.plugins</groupId>
  265. <artifactId>maven-surefire-plugin</artifactId>
  266. </plugin>
  267. <plugin>
  268. <groupId>org.apache.maven.plugins</groupId>
  269. <artifactId>maven-resources-plugin</artifactId>
  270. <executions>
  271. <execution>
  272. <id>copy-resources</id>
  273. <phase>prepare-package</phase>
  274. <goals>
  275. <goal>copy-resources</goal>
  276. </goals>
  277. <configuration>
  278. <outputDirectory>${project.build.directory}</outputDirectory>
  279. <resources>
  280. <resource>
  281. <directory>${project.basedir}/src/package</directory>
  282. <includes>
  283. <include>version.txt</include>
  284. <include>ffi-version.txt</include>
  285. <include>launcher-mac.sh</include>
  286. <include>launcher-linux.sh</include>
  287. <include>launcher-win.bat</include>
  288. <include>LICENSE.txt</include>
  289. </includes>
  290. <filtering>true</filtering>
  291. </resource>
  292. </resources>
  293. </configuration>
  294. </execution>
  295. </executions>
  296. </plugin>
  297. <plugin>
  298. <groupId>org.apache.maven.plugins</groupId>
  299. <artifactId>maven-dependency-plugin</artifactId>
  300. <executions>
  301. <execution>
  302. <id>copy-libs</id>
  303. <phase>prepare-package</phase>
  304. <goals>
  305. <goal>copy-dependencies</goal>
  306. </goals>
  307. <configuration>
  308. <includeScope>runtime</includeScope>
  309. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  310. <excludeClassifiers>linux,mac,win</excludeClassifiers>
  311. </configuration>
  312. </execution>
  313. </executions>
  314. </plugin>
  315. <plugin>
  316. <groupId>org.codehaus.mojo</groupId>
  317. <artifactId>license-maven-plugin</artifactId>
  318. <executions>
  319. <execution>
  320. <id>add-third-party</id>
  321. <goals>
  322. <goal>add-third-party</goal>
  323. </goals>
  324. <phase>generate-resources</phase>
  325. <configuration>
  326. <outputDirectory>${project.basedir}/src/main/resources/license</outputDirectory>
  327. <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
  328. <includedScopes>compile</includedScopes>
  329. <excludedGroups>org\.cryptomator</excludedGroups>
  330. <licenseMerges>
  331. <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>
  332. <licenseMerge>MIT License|The MIT License (MIT)|The MIT License|MIT license</licenseMerge>
  333. <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>
  334. <licenseMerge>GPLv2|GNU General Public License Version 2</licenseMerge>
  335. <licenseMerge>GPLv2+CE|CDDL + GPLv2 with classpath exception</licenseMerge>
  336. </licenseMerges>
  337. <fileTemplate>${project.basedir}/src/license/template.ftl</fileTemplate>
  338. </configuration>
  339. </execution>
  340. </executions>
  341. </plugin>
  342. </plugins>
  343. </build>
  344. <profiles>
  345. <profile>
  346. <id>coverage</id>
  347. <build>
  348. <plugins>
  349. <plugin>
  350. <groupId>org.jacoco</groupId>
  351. <artifactId>jacoco-maven-plugin</artifactId>
  352. <executions>
  353. <execution>
  354. <id>prepare-agent</id>
  355. <goals>
  356. <goal>prepare-agent</goal>
  357. </goals>
  358. </execution>
  359. <execution>
  360. <id>report</id>
  361. <goals>
  362. <goal>report</goal>
  363. </goals>
  364. </execution>
  365. </executions>
  366. <configuration>
  367. <excludes>
  368. <exclude>**/*_*</exclude>
  369. <exclude>**/Dagger*</exclude>
  370. </excludes>
  371. </configuration>
  372. </plugin>
  373. </plugins>
  374. </build>
  375. </profile>
  376. <profile>
  377. <id>dependency-check</id>
  378. <build>
  379. <plugins>
  380. <plugin>
  381. <groupId>org.owasp</groupId>
  382. <artifactId>dependency-check-maven</artifactId>
  383. <configuration>
  384. <cveValidForHours>24</cveValidForHours>
  385. <failBuildOnCVSS>0</failBuildOnCVSS>
  386. <skipTestScope>true</skipTestScope>
  387. <detail>true</detail>
  388. <suppressionFile>suppression.xml</suppressionFile>
  389. </configuration>
  390. <executions>
  391. <execution>
  392. <goals>
  393. <goal>check</goal>
  394. </goals>
  395. </execution>
  396. </executions>
  397. </plugin>
  398. </plugins>
  399. </build>
  400. </profile>
  401. <profile>
  402. <id>mac</id>
  403. <activation>
  404. <os>
  405. <family>mac</family>
  406. </os>
  407. <property>
  408. <name>idea.version</name>
  409. </property>
  410. </activation>
  411. <dependencies>
  412. <dependency>
  413. <groupId>org.cryptomator</groupId>
  414. <artifactId>integrations-mac</artifactId>
  415. <version>${cryptomator.integrations.mac.version}</version>
  416. </dependency>
  417. </dependencies>
  418. <build>
  419. <plugins>
  420. <plugin>
  421. <groupId>org.apache.maven.plugins</groupId>
  422. <artifactId>maven-assembly-plugin</artifactId>
  423. <executions>
  424. <execution>
  425. <id>assemble-mac</id>
  426. <phase>package</phase>
  427. <goals>
  428. <goal>single</goal>
  429. </goals>
  430. <configuration>
  431. <descriptors>
  432. <descriptor>assembly-mac.xml</descriptor>
  433. </descriptors>
  434. <appendAssemblyId>false</appendAssemblyId>
  435. <finalName>buildkit-mac</finalName>
  436. </configuration>
  437. </execution>
  438. </executions>
  439. </plugin>
  440. <plugin>
  441. <groupId>org.apache.maven.plugins</groupId>
  442. <artifactId>maven-dependency-plugin</artifactId>
  443. <executions>
  444. <execution>
  445. <id>copy-mac-libs</id>
  446. <phase>prepare-package</phase>
  447. <goals>
  448. <goal>copy-dependencies</goal>
  449. </goals>
  450. <configuration>
  451. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  452. <includeGroupIds>org.openjfx</includeGroupIds>
  453. <classifier>mac</classifier>
  454. </configuration>
  455. </execution>
  456. </executions>
  457. </plugin>
  458. </plugins>
  459. </build>
  460. </profile>
  461. <profile>
  462. <id>linux</id>
  463. <activation>
  464. <os>
  465. <family>unix</family>
  466. <name>Linux</name>
  467. </os>
  468. <property>
  469. <name>idea.version</name>
  470. </property>
  471. </activation>
  472. <dependencies>
  473. <dependency>
  474. <groupId>org.cryptomator</groupId>
  475. <artifactId>integrations-linux</artifactId>
  476. <version>${cryptomator.integrations.linux.version}</version>
  477. </dependency>
  478. </dependencies>
  479. <build>
  480. <plugins>
  481. <plugin>
  482. <groupId>org.apache.maven.plugins</groupId>
  483. <artifactId>maven-assembly-plugin</artifactId>
  484. <executions>
  485. <execution>
  486. <id>assemble-linux</id>
  487. <phase>package</phase>
  488. <goals>
  489. <goal>single</goal>
  490. </goals>
  491. <configuration>
  492. <descriptors>
  493. <descriptor>assembly-linux.xml</descriptor>
  494. </descriptors>
  495. <appendAssemblyId>false</appendAssemblyId>
  496. <finalName>buildkit-linux</finalName>
  497. </configuration>
  498. </execution>
  499. </executions>
  500. </plugin>
  501. <plugin>
  502. <groupId>org.apache.maven.plugins</groupId>
  503. <artifactId>maven-dependency-plugin</artifactId>
  504. <executions>
  505. <execution>
  506. <id>copy-linux-libs</id>
  507. <phase>prepare-package</phase>
  508. <goals>
  509. <goal>copy-dependencies</goal>
  510. </goals>
  511. <configuration>
  512. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  513. <includeGroupIds>org.openjfx</includeGroupIds>
  514. <classifier>linux</classifier>
  515. </configuration>
  516. </execution>
  517. </executions>
  518. </plugin>
  519. </plugins>
  520. </build>
  521. </profile>
  522. <profile>
  523. <id>windows</id>
  524. <activation>
  525. <os>
  526. <family>windows</family>
  527. </os>
  528. <property>
  529. <name>idea.version</name>
  530. </property>
  531. </activation>
  532. <dependencies>
  533. <dependency>
  534. <groupId>org.cryptomator</groupId>
  535. <artifactId>integrations-win</artifactId>
  536. <version>${cryptomator.integrations.win.version}</version>
  537. </dependency>
  538. </dependencies>
  539. <build>
  540. <plugins>
  541. <plugin>
  542. <groupId>org.apache.maven.plugins</groupId>
  543. <artifactId>maven-assembly-plugin</artifactId>
  544. <executions>
  545. <execution>
  546. <id>assemble-win</id>
  547. <phase>package</phase>
  548. <goals>
  549. <goal>single</goal>
  550. </goals>
  551. <configuration>
  552. <descriptors>
  553. <descriptor>assembly-win.xml</descriptor>
  554. </descriptors>
  555. <appendAssemblyId>false</appendAssemblyId>
  556. <finalName>buildkit-win</finalName>
  557. </configuration>
  558. </execution>
  559. </executions>
  560. </plugin>
  561. <plugin>
  562. <groupId>org.apache.maven.plugins</groupId>
  563. <artifactId>maven-dependency-plugin</artifactId>
  564. <executions>
  565. <execution>
  566. <id>copy-win-libs</id>
  567. <phase>prepare-package</phase>
  568. <goals>
  569. <goal>copy-dependencies</goal>
  570. </goals>
  571. <configuration>
  572. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  573. <includeGroupIds>org.openjfx</includeGroupIds>
  574. <classifier>win</classifier>
  575. </configuration>
  576. </execution>
  577. </executions>
  578. </plugin>
  579. </plugins>
  580. </build>
  581. </profile>
  582. </profiles>
  583. </project>