pom.xml 14 KB

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