pom.xml 14 KB

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