pom.xml 15 KB

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