pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  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-beta2</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. <!-- EasyBind -->
  148. <dependency>
  149. <groupId>com.tobiasdiez</groupId>
  150. <artifactId>easybind</artifactId>
  151. <version>${easybind.version}</version>
  152. </dependency>
  153. <!-- Zxcvbn -->
  154. <dependency>
  155. <groupId>com.nulab-inc</groupId>
  156. <artifactId>zxcvbn</artifactId>
  157. <version>${zxcvbn.version}</version>
  158. </dependency>
  159. <!-- Google -->
  160. <dependency>
  161. <groupId>com.google.guava</groupId>
  162. <artifactId>guava</artifactId>
  163. <version>${guava.version}</version>
  164. <exclusions>
  165. <!-- see https://github.com/google/guava/wiki/UseGuavaInYourBuild#what-about-guavas-own-dependencies -->
  166. <exclusion>
  167. <groupId>com.google.guava</groupId>
  168. <artifactId>listenablefuture</artifactId>
  169. </exclusion>
  170. <exclusion>
  171. <groupId>com.google.code.findbugs</groupId>
  172. <artifactId>jsr305</artifactId>
  173. </exclusion>
  174. <exclusion>
  175. <groupId>org.checkerframework</groupId>
  176. <artifactId>checker-qual</artifactId>
  177. </exclusion>
  178. <exclusion>
  179. <groupId>com.google.errorprone</groupId>
  180. <artifactId>error_prone_annotations</artifactId>
  181. </exclusion>
  182. <exclusion>
  183. <groupId>com.google.j2objc</groupId>
  184. <artifactId>j2objc-annotations</artifactId>
  185. </exclusion>
  186. </exclusions>
  187. </dependency>
  188. <dependency>
  189. <groupId>com.google.dagger</groupId>
  190. <artifactId>dagger</artifactId>
  191. <version>${dagger.version}</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>com.google.code.gson</groupId>
  195. <artifactId>gson</artifactId>
  196. <version>${gson.version}</version>
  197. </dependency>
  198. <!-- JUnit / Mockito / Hamcrest -->
  199. <dependency>
  200. <groupId>org.junit.jupiter</groupId>
  201. <artifactId>junit-jupiter</artifactId>
  202. <version>${junit.jupiter.version}</version>
  203. <scope>test</scope>
  204. </dependency>
  205. <dependency>
  206. <groupId>org.mockito</groupId>
  207. <artifactId>mockito-core</artifactId>
  208. <version>${mockito.version}</version>
  209. <scope>test</scope>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.hamcrest</groupId>
  213. <artifactId>hamcrest</artifactId>
  214. <version>${hamcrest.version}</version>
  215. <scope>test</scope>
  216. </dependency>
  217. <dependency>
  218. <groupId>org.openjfx</groupId>
  219. <artifactId>javafx-swing</artifactId>
  220. <version>${javafx.version}</version>
  221. <scope>test</scope>
  222. </dependency>
  223. <dependency>
  224. <groupId>com.google.jimfs</groupId>
  225. <artifactId>jimfs</artifactId>
  226. <version>1.2</version>
  227. <scope>test</scope>
  228. </dependency>
  229. </dependencies>
  230. <build>
  231. <pluginManagement>
  232. <plugins>
  233. <plugin>
  234. <groupId>org.apache.maven.plugins</groupId>
  235. <artifactId>maven-compiler-plugin</artifactId>
  236. <version>3.8.1</version>
  237. </plugin>
  238. <plugin>
  239. <groupId>org.apache.maven.plugins</groupId>
  240. <artifactId>maven-resources-plugin</artifactId>
  241. <version>3.2.0</version>
  242. </plugin>
  243. <plugin>
  244. <groupId>org.apache.maven.plugins</groupId>
  245. <artifactId>maven-dependency-plugin</artifactId>
  246. <version>3.2.0</version>
  247. </plugin>
  248. <plugin>
  249. <groupId>org.apache.maven.plugins</groupId>
  250. <artifactId>maven-surefire-plugin</artifactId>
  251. <version>3.0.0-M5</version>
  252. </plugin>
  253. <plugin>
  254. <groupId>org.codehaus.mojo</groupId>
  255. <artifactId>license-maven-plugin</artifactId>
  256. <version>2.0.0</version>
  257. </plugin>
  258. <plugin>
  259. <groupId>org.apache.maven.plugins</groupId>
  260. <artifactId>maven-jar-plugin</artifactId>
  261. <version>3.2.0</version>
  262. </plugin>
  263. <plugin>
  264. <groupId>org.jacoco</groupId>
  265. <artifactId>jacoco-maven-plugin</artifactId>
  266. <version>0.8.7</version>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.owasp</groupId>
  270. <artifactId>dependency-check-maven</artifactId>
  271. <version>6.3.1</version>
  272. </plugin>
  273. </plugins>
  274. </pluginManagement>
  275. <plugins>
  276. <plugin>
  277. <groupId>org.apache.maven.plugins</groupId>
  278. <artifactId>maven-compiler-plugin</artifactId>
  279. <configuration>
  280. <release>${project.jdk.version}</release>
  281. <annotationProcessorPaths>
  282. <path>
  283. <groupId>com.google.dagger</groupId>
  284. <artifactId>dagger-compiler</artifactId>
  285. <version>${dagger.version}</version>
  286. </path>
  287. </annotationProcessorPaths>
  288. <compilerArgs>
  289. <arg>-Adagger.fastInit=enabled</arg>
  290. <arg>-Adagger.formatGeneratedSource=enabled</arg>
  291. </compilerArgs>
  292. </configuration>
  293. </plugin>
  294. <plugin>
  295. <groupId>org.apache.maven.plugins</groupId>
  296. <artifactId>maven-jar-plugin</artifactId>
  297. <configuration>
  298. <archive>
  299. <manifest>
  300. <!-- adds Implementation-Version which can be read during runtime -->
  301. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  302. </manifest>
  303. </archive>
  304. </configuration>
  305. </plugin>
  306. <plugin>
  307. <groupId>org.apache.maven.plugins</groupId>
  308. <artifactId>maven-surefire-plugin</artifactId>
  309. </plugin>
  310. <plugin>
  311. <groupId>org.apache.maven.plugins</groupId>
  312. <artifactId>maven-dependency-plugin</artifactId>
  313. <executions>
  314. <execution>
  315. <id>copy-mods</id>
  316. <phase>prepare-package</phase>
  317. <goals>
  318. <goal>copy-dependencies</goal>
  319. </goals>
  320. <configuration>
  321. <includeScope>runtime</includeScope>
  322. <outputDirectory>${project.build.directory}/mods</outputDirectory>
  323. <excludeGroupIds>${nonModularGroupIds}</excludeGroupIds>
  324. </configuration>
  325. </execution>
  326. <execution>
  327. <id>copy-libs</id>
  328. <phase>prepare-package</phase>
  329. <goals>
  330. <goal>copy-dependencies</goal>
  331. </goals>
  332. <configuration>
  333. <includeScope>runtime</includeScope>
  334. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  335. <includeGroupIds>${nonModularGroupIds}</includeGroupIds>
  336. </configuration>
  337. </execution>
  338. </executions>
  339. </plugin>
  340. <plugin>
  341. <groupId>org.codehaus.mojo</groupId>
  342. <artifactId>license-maven-plugin</artifactId>
  343. <executions>
  344. <execution>
  345. <id>add-third-party</id>
  346. <goals>
  347. <goal>add-third-party</goal>
  348. </goals>
  349. <phase>generate-resources</phase>
  350. <configuration>
  351. <outputDirectory>${project.basedir}/src/main/resources/license</outputDirectory>
  352. <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
  353. <includedScopes>compile</includedScopes>
  354. <excludedGroups>org\.cryptomator</excludedGroups>
  355. <licenseMerges>
  356. <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>
  357. <licenseMerge>MIT License|The MIT License (MIT)|The MIT License|MIT license</licenseMerge>
  358. <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>
  359. <licenseMerge>GPLv2|GNU General Public License Version 2</licenseMerge>
  360. <licenseMerge>GPLv2+CE|CDDL + GPLv2 with classpath exception</licenseMerge>
  361. </licenseMerges>
  362. <fileTemplate>${project.basedir}/src/license/template.ftl</fileTemplate>
  363. </configuration>
  364. </execution>
  365. </executions>
  366. </plugin>
  367. </plugins>
  368. </build>
  369. <profiles>
  370. <profile>
  371. <id>coverage</id>
  372. <build>
  373. <plugins>
  374. <plugin>
  375. <groupId>org.jacoco</groupId>
  376. <artifactId>jacoco-maven-plugin</artifactId>
  377. <executions>
  378. <execution>
  379. <id>prepare-agent</id>
  380. <goals>
  381. <goal>prepare-agent</goal>
  382. </goals>
  383. </execution>
  384. <execution>
  385. <id>report</id>
  386. <goals>
  387. <goal>report</goal>
  388. </goals>
  389. </execution>
  390. </executions>
  391. <configuration>
  392. <excludes>
  393. <exclude>**/*_*</exclude>
  394. <exclude>**/Dagger*</exclude>
  395. </excludes>
  396. </configuration>
  397. </plugin>
  398. </plugins>
  399. </build>
  400. </profile>
  401. <profile>
  402. <id>dependency-check</id>
  403. <build>
  404. <plugins>
  405. <plugin>
  406. <groupId>org.owasp</groupId>
  407. <artifactId>dependency-check-maven</artifactId>
  408. <configuration>
  409. <cveValidForHours>24</cveValidForHours>
  410. <failBuildOnCVSS>0</failBuildOnCVSS>
  411. <skipTestScope>true</skipTestScope>
  412. <detail>true</detail>
  413. <suppressionFile>suppression.xml</suppressionFile>
  414. </configuration>
  415. <executions>
  416. <execution>
  417. <goals>
  418. <goal>check</goal>
  419. </goals>
  420. </execution>
  421. </executions>
  422. </plugin>
  423. </plugins>
  424. </build>
  425. </profile>
  426. <profile>
  427. <id>mac</id>
  428. <activation>
  429. <os>
  430. <family>mac</family>
  431. </os>
  432. <property>
  433. <name>idea.version</name>
  434. </property>
  435. </activation>
  436. <dependencies>
  437. <dependency>
  438. <groupId>org.cryptomator</groupId>
  439. <artifactId>integrations-mac</artifactId>
  440. <version>${cryptomator.integrations.mac.version}</version>
  441. </dependency>
  442. </dependencies>
  443. </profile>
  444. <profile>
  445. <id>linux</id>
  446. <activation>
  447. <os>
  448. <family>unix</family>
  449. <name>Linux</name>
  450. </os>
  451. <property>
  452. <name>idea.version</name>
  453. </property>
  454. </activation>
  455. <dependencies>
  456. <dependency>
  457. <groupId>org.cryptomator</groupId>
  458. <artifactId>integrations-linux</artifactId>
  459. <version>${cryptomator.integrations.linux.version}</version>
  460. </dependency>
  461. </dependencies>
  462. </profile>
  463. <profile>
  464. <id>win</id>
  465. <activation>
  466. <os>
  467. <family>windows</family>
  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-win</artifactId>
  477. <version>${cryptomator.integrations.win.version}</version>
  478. </dependency>
  479. </dependencies>
  480. </profile>
  481. </profiles>
  482. </project>