pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  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.12.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. <developer>
  19. <name>Armin Schrenk</name>
  20. <email>armin.schrenk+dev@mailbox.org</email>
  21. <timezone>+1</timezone>
  22. </developer>
  23. </developers>
  24. <properties>
  25. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  26. <project.jdk.version>21</project.jdk.version>
  27. <!-- Group IDs of jars that need to stay on the class path for now -->
  28. <!-- remove them, as soon they got modularized or support is dropped (i.e., WebDAV) -->
  29. <nonModularGroupIds>org.ow2.asm,org.apache.jackrabbit,org.apache.httpcomponents</nonModularGroupIds>
  30. <!-- cryptomator dependencies -->
  31. <cryptomator.cryptofs.version>2.6.8</cryptomator.cryptofs.version>
  32. <cryptomator.integrations.version>1.3.0</cryptomator.integrations.version>
  33. <cryptomator.integrations.win.version>1.2.4</cryptomator.integrations.win.version>
  34. <cryptomator.integrations.mac.version>1.2.2</cryptomator.integrations.mac.version>
  35. <cryptomator.integrations.linux.version>1.4.0-beta2</cryptomator.integrations.linux.version>
  36. <cryptomator.fuse.version>4.0.0-beta5</cryptomator.fuse.version>
  37. <cryptomator.dokany.version>2.0.0</cryptomator.dokany.version>
  38. <cryptomator.webdav.version>2.0.5</cryptomator.webdav.version>
  39. <!-- 3rd party dependencies -->
  40. <commons-lang3.version>3.14.0</commons-lang3.version>
  41. <dagger.version>2.48.1</dagger.version>
  42. <easybind.version>2.2</easybind.version>
  43. <guava.version>32.1.3-jre</guava.version>
  44. <jackson.version>2.16.0</jackson.version>
  45. <javafx.version>21.0.1</javafx.version>
  46. <jwt.version>4.4.0</jwt.version>
  47. <nimbus-jose.version>9.37.1</nimbus-jose.version>
  48. <logback.version>1.4.12</logback.version>
  49. <slf4j.version>2.0.9</slf4j.version>
  50. <tinyoauth2.version>0.8.0</tinyoauth2.version>
  51. <zxcvbn.version>1.8.2</zxcvbn.version>
  52. <!-- test dependencies -->
  53. <junit.jupiter.version>5.10.1</junit.jupiter.version>
  54. <mockito.version>5.7.0</mockito.version>
  55. <hamcrest.version>2.2</hamcrest.version>
  56. <!-- build-time dependencies -->
  57. <jetbrains.annotations.version>24.1.0</jetbrains.annotations.version>
  58. <dependency-check.version>9.0.1</dependency-check.version>
  59. <jacoco.version>0.8.11</jacoco.version>
  60. <license-generator.version>2.3.0</license-generator.version>
  61. <junit-tree-reporter.version>1.2.1</junit-tree-reporter.version>
  62. <mvn-compiler.version>3.11.0</mvn-compiler.version>
  63. <mvn-resources.version>3.3.1</mvn-resources.version>
  64. <mvn-dependency.version>3.6.1</mvn-dependency.version>
  65. <mvn-surefire.version>3.2.2</mvn-surefire.version>
  66. <mvn-jar.version>3.3.0</mvn-jar.version>
  67. </properties>
  68. <dependencies>
  69. <!-- Cryptomator Libs -->
  70. <dependency>
  71. <groupId>org.cryptomator</groupId>
  72. <artifactId>cryptofs</artifactId>
  73. <version>${cryptomator.cryptofs.version}</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.cryptomator</groupId>
  77. <artifactId>fuse-nio-adapter</artifactId>
  78. <version>${cryptomator.fuse.version}</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.cryptomator</groupId>
  82. <artifactId>dokany-nio-adapter</artifactId>
  83. <version>${cryptomator.dokany.version}</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.cryptomator</groupId>
  87. <artifactId>webdav-nio-adapter</artifactId>
  88. <version>${cryptomator.webdav.version}</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.cryptomator</groupId>
  92. <artifactId>integrations-api</artifactId>
  93. <version>${cryptomator.integrations.version}</version>
  94. </dependency>
  95. <!-- JavaFX -->
  96. <dependency>
  97. <groupId>org.openjfx</groupId>
  98. <artifactId>javafx-base</artifactId>
  99. <version>${javafx.version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.openjfx</groupId>
  103. <artifactId>javafx-graphics</artifactId>
  104. <version>${javafx.version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.openjfx</groupId>
  108. <artifactId>javafx-controls</artifactId>
  109. <version>${javafx.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.openjfx</groupId>
  113. <artifactId>javafx-fxml</artifactId>
  114. <version>${javafx.version}</version>
  115. </dependency>
  116. <!-- Logging -->
  117. <dependency>
  118. <groupId>org.slf4j</groupId>
  119. <artifactId>slf4j-api</artifactId>
  120. <version>${slf4j.version}</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>ch.qos.logback</groupId>
  124. <artifactId>logback-core</artifactId>
  125. <version>${logback.version}</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>ch.qos.logback</groupId>
  129. <artifactId>logback-classic</artifactId>
  130. <version>${logback.version}</version>
  131. </dependency>
  132. <!-- Apache Commons -->
  133. <dependency>
  134. <groupId>org.apache.commons</groupId>
  135. <artifactId>commons-lang3</artifactId>
  136. <version>${commons-lang3.version}</version>
  137. </dependency>
  138. <!-- OAuth/JWT -->
  139. <dependency>
  140. <groupId>io.github.coffeelibs</groupId>
  141. <artifactId>tiny-oauth2-client</artifactId>
  142. <version>${tinyoauth2.version}</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>com.auth0</groupId>
  146. <artifactId>java-jwt</artifactId>
  147. <version>${jwt.version}</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>com.nimbusds</groupId>
  151. <artifactId>nimbus-jose-jwt</artifactId>
  152. <version>${nimbus-jose.version}</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>com.fasterxml.jackson.core</groupId>
  156. <artifactId>jackson-databind</artifactId>
  157. <version>${jackson.version}</version>
  158. </dependency>
  159. <!-- EasyBind -->
  160. <dependency>
  161. <groupId>com.tobiasdiez</groupId>
  162. <artifactId>easybind</artifactId>
  163. <version>${easybind.version}</version>
  164. </dependency>
  165. <!-- Zxcvbn -->
  166. <dependency>
  167. <groupId>com.nulab-inc</groupId>
  168. <artifactId>zxcvbn</artifactId>
  169. <version>${zxcvbn.version}</version>
  170. </dependency>
  171. <!-- Google -->
  172. <dependency>
  173. <groupId>com.google.guava</groupId>
  174. <artifactId>guava</artifactId>
  175. <version>${guava.version}</version>
  176. <exclusions>
  177. <!-- see https://github.com/google/guava/wiki/UseGuavaInYourBuild#what-about-guavas-own-dependencies -->
  178. <exclusion>
  179. <groupId>com.google.guava</groupId>
  180. <artifactId>listenablefuture</artifactId>
  181. </exclusion>
  182. <exclusion>
  183. <groupId>com.google.code.findbugs</groupId>
  184. <artifactId>jsr305</artifactId>
  185. </exclusion>
  186. <exclusion>
  187. <groupId>org.checkerframework</groupId>
  188. <artifactId>checker-qual</artifactId>
  189. </exclusion>
  190. <exclusion>
  191. <groupId>com.google.errorprone</groupId>
  192. <artifactId>error_prone_annotations</artifactId>
  193. </exclusion>
  194. <exclusion>
  195. <groupId>com.google.j2objc</groupId>
  196. <artifactId>j2objc-annotations</artifactId>
  197. </exclusion>
  198. </exclusions>
  199. </dependency>
  200. <dependency>
  201. <groupId>com.google.dagger</groupId>
  202. <artifactId>dagger</artifactId>
  203. <version>${dagger.version}</version>
  204. </dependency>
  205. <!-- JUnit / Mockito / Hamcrest -->
  206. <dependency>
  207. <groupId>org.junit.jupiter</groupId>
  208. <artifactId>junit-jupiter</artifactId>
  209. <version>${junit.jupiter.version}</version>
  210. <scope>test</scope>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.mockito</groupId>
  214. <artifactId>mockito-core</artifactId>
  215. <version>${mockito.version}</version>
  216. <scope>test</scope>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.hamcrest</groupId>
  220. <artifactId>hamcrest</artifactId>
  221. <version>${hamcrest.version}</version>
  222. <scope>test</scope>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.openjfx</groupId>
  226. <artifactId>javafx-swing</artifactId>
  227. <version>${javafx.version}</version>
  228. <scope>test</scope>
  229. </dependency>
  230. <dependency>
  231. <groupId>com.google.jimfs</groupId>
  232. <artifactId>jimfs</artifactId>
  233. <version>1.3.0</version>
  234. <scope>test</scope>
  235. </dependency>
  236. <dependency>
  237. <groupId>org.jetbrains</groupId>
  238. <artifactId>annotations</artifactId>
  239. <version>${jetbrains.annotations.version}</version>
  240. <scope>provided</scope>
  241. </dependency>
  242. </dependencies>
  243. <build>
  244. <pluginManagement>
  245. <plugins>
  246. <plugin>
  247. <groupId>org.apache.maven.plugins</groupId>
  248. <artifactId>maven-compiler-plugin</artifactId>
  249. <version>${mvn-compiler.version}</version>
  250. </plugin>
  251. <plugin>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-resources-plugin</artifactId>
  254. <version>${mvn-resources.version}</version>
  255. </plugin>
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-dependency-plugin</artifactId>
  259. <version>${mvn-dependency.version}</version>
  260. </plugin>
  261. <plugin>
  262. <groupId>org.apache.maven.plugins</groupId>
  263. <artifactId>maven-surefire-plugin</artifactId>
  264. <version>${mvn-surefire.version}</version>
  265. </plugin>
  266. <plugin>
  267. <groupId>org.codehaus.mojo</groupId>
  268. <artifactId>license-maven-plugin</artifactId>
  269. <version>${license-generator.version}</version>
  270. </plugin>
  271. <plugin>
  272. <groupId>org.apache.maven.plugins</groupId>
  273. <artifactId>maven-jar-plugin</artifactId>
  274. <version>${mvn-jar.version}</version>
  275. </plugin>
  276. <plugin>
  277. <groupId>org.jacoco</groupId>
  278. <artifactId>jacoco-maven-plugin</artifactId>
  279. <version>${jacoco.version}</version>
  280. </plugin>
  281. <plugin>
  282. <groupId>org.owasp</groupId>
  283. <artifactId>dependency-check-maven</artifactId>
  284. <version>${dependency-check.version}</version>
  285. </plugin>
  286. </plugins>
  287. </pluginManagement>
  288. <plugins>
  289. <plugin>
  290. <groupId>org.apache.maven.plugins</groupId>
  291. <artifactId>maven-compiler-plugin</artifactId>
  292. <configuration>
  293. <release>${project.jdk.version}</release>
  294. <annotationProcessorPaths>
  295. <path>
  296. <groupId>com.google.dagger</groupId>
  297. <artifactId>dagger-compiler</artifactId>
  298. <version>${dagger.version}</version>
  299. </path>
  300. </annotationProcessorPaths>
  301. <compilerArgs>
  302. <arg>-Adagger.fastInit=enabled</arg>
  303. <arg>-Adagger.formatGeneratedSource=enabled</arg>
  304. <arg>--enable-preview</arg>
  305. </compilerArgs>
  306. </configuration>
  307. </plugin>
  308. <plugin>
  309. <groupId>org.apache.maven.plugins</groupId>
  310. <artifactId>maven-jar-plugin</artifactId>
  311. <configuration>
  312. <archive>
  313. <manifest>
  314. <!-- adds Implementation-Version which can be read during runtime -->
  315. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  316. </manifest>
  317. </archive>
  318. </configuration>
  319. </plugin>
  320. <plugin>
  321. <groupId>org.apache.maven.plugins</groupId>
  322. <artifactId>maven-surefire-plugin</artifactId>
  323. <dependencies>
  324. <dependency>
  325. <groupId>me.fabriciorby</groupId>
  326. <artifactId>maven-surefire-junit5-tree-reporter</artifactId>
  327. <version>${junit-tree-reporter.version}</version>
  328. </dependency>
  329. </dependencies>
  330. <configuration>
  331. <argLine>--enable-preview</argLine>
  332. <reportFormat>plain</reportFormat>
  333. <consoleOutputReporter>
  334. <disable>true</disable>
  335. </consoleOutputReporter>
  336. <statelessTestsetInfoReporter
  337. implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter">
  338. </statelessTestsetInfoReporter>
  339. </configuration>
  340. </plugin>
  341. <plugin>
  342. <groupId>org.apache.maven.plugins</groupId>
  343. <artifactId>maven-dependency-plugin</artifactId>
  344. <executions>
  345. <!-- sort jars into two buckets (classpath and modulepath). exclude openjfx, which gets jlinked separately -->
  346. <execution>
  347. <id>copy-mods</id>
  348. <phase>prepare-package</phase>
  349. <goals>
  350. <goal>copy-dependencies</goal>
  351. </goals>
  352. <configuration>
  353. <includeScope>runtime</includeScope>
  354. <outputDirectory>${project.build.directory}/mods</outputDirectory>
  355. <excludeGroupIds>org.openjfx,${nonModularGroupIds}</excludeGroupIds>
  356. </configuration>
  357. </execution>
  358. <execution>
  359. <id>copy-libs</id>
  360. <phase>prepare-package</phase>
  361. <goals>
  362. <goal>copy-dependencies</goal>
  363. </goals>
  364. <configuration>
  365. <includeScope>runtime</includeScope>
  366. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  367. <includeGroupIds>${nonModularGroupIds}</includeGroupIds>
  368. </configuration>
  369. </execution>
  370. </executions>
  371. </plugin>
  372. <plugin>
  373. <groupId>org.codehaus.mojo</groupId>
  374. <artifactId>license-maven-plugin</artifactId>
  375. <executions>
  376. <execution>
  377. <id>add-third-party</id>
  378. <goals>
  379. <goal>add-third-party</goal>
  380. </goals>
  381. <phase>generate-resources</phase>
  382. <configuration>
  383. <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
  384. <includedScopes>compile</includedScopes>
  385. <excludedGroups>org\.cryptomator</excludedGroups>
  386. <licenseMergesUrl>file:///${project.basedir}/license/merges</licenseMergesUrl>
  387. <fileTemplate>${project.basedir}/src/main/resources/license/template.ftl</fileTemplate>
  388. </configuration>
  389. </execution>
  390. </executions>
  391. </plugin>
  392. </plugins>
  393. <resources>
  394. <resource>
  395. <directory>src/main/resources</directory>
  396. <excludes>
  397. <exclude>license/*</exclude>
  398. </excludes>
  399. </resource>
  400. </resources>
  401. </build>
  402. <profiles>
  403. <profile>
  404. <id>coverage</id>
  405. <build>
  406. <plugins>
  407. <plugin>
  408. <groupId>org.jacoco</groupId>
  409. <artifactId>jacoco-maven-plugin</artifactId>
  410. <executions>
  411. <execution>
  412. <id>prepare-agent</id>
  413. <goals>
  414. <goal>prepare-agent</goal>
  415. </goals>
  416. </execution>
  417. <execution>
  418. <id>report</id>
  419. <goals>
  420. <goal>report</goal>
  421. </goals>
  422. </execution>
  423. </executions>
  424. <configuration>
  425. <excludes>
  426. <exclude>**/*_*</exclude>
  427. <exclude>**/Dagger*</exclude>
  428. </excludes>
  429. </configuration>
  430. </plugin>
  431. </plugins>
  432. </build>
  433. </profile>
  434. <profile>
  435. <id>dependency-check</id>
  436. <build>
  437. <plugins>
  438. <plugin>
  439. <groupId>org.owasp</groupId>
  440. <artifactId>dependency-check-maven</artifactId>
  441. <configuration>
  442. <cveValidForHours>24</cveValidForHours>
  443. <failBuildOnCVSS>0</failBuildOnCVSS>
  444. <skipTestScope>true</skipTestScope>
  445. <detail>true</detail>
  446. <suppressionFile>suppression.xml</suppressionFile>
  447. </configuration>
  448. <executions>
  449. <execution>
  450. <goals>
  451. <goal>check</goal>
  452. </goals>
  453. </execution>
  454. </executions>
  455. </plugin>
  456. </plugins>
  457. </build>
  458. </profile>
  459. <profile>
  460. <id>mac</id>
  461. <activation>
  462. <os>
  463. <family>mac</family>
  464. </os>
  465. <property>
  466. <name>idea.version</name>
  467. </property>
  468. </activation>
  469. <dependencies>
  470. <dependency>
  471. <groupId>org.cryptomator</groupId>
  472. <artifactId>integrations-mac</artifactId>
  473. <version>${cryptomator.integrations.mac.version}</version>
  474. </dependency>
  475. </dependencies>
  476. </profile>
  477. <profile>
  478. <id>linux</id>
  479. <activation>
  480. <os>
  481. <family>unix</family>
  482. <name>Linux</name>
  483. </os>
  484. <property>
  485. <name>idea.version</name>
  486. </property>
  487. </activation>
  488. <dependencies>
  489. <dependency>
  490. <groupId>org.cryptomator</groupId>
  491. <artifactId>integrations-linux</artifactId>
  492. <version>${cryptomator.integrations.linux.version}</version>
  493. </dependency>
  494. </dependencies>
  495. </profile>
  496. <profile>
  497. <id>win</id>
  498. <activation>
  499. <os>
  500. <family>windows</family>
  501. </os>
  502. <property>
  503. <name>idea.version</name>
  504. </property>
  505. </activation>
  506. <dependencies>
  507. <dependency>
  508. <groupId>org.cryptomator</groupId>
  509. <artifactId>integrations-win</artifactId>
  510. <version>${cryptomator.integrations.win.version}</version>
  511. </dependency>
  512. </dependencies>
  513. </profile>
  514. </profiles>
  515. </project>