pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  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.16.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>23</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.9.0-beta2</cryptomator.cryptofs.version>
  32. <cryptomator.integrations.version>1.5.1</cryptomator.integrations.version>
  33. <cryptomator.integrations.win.version>1.3.0</cryptomator.integrations.win.version>
  34. <cryptomator.integrations.mac.version>1.3.0</cryptomator.integrations.mac.version>
  35. <cryptomator.integrations.linux.version>1.5.3</cryptomator.integrations.linux.version>
  36. <cryptomator.fuse.version>5.0.3</cryptomator.fuse.version>
  37. <cryptomator.webdav.version>2.0.8</cryptomator.webdav.version>
  38. <!-- 3rd party dependencies -->
  39. <commons-lang3.version>3.17.0</commons-lang3.version>
  40. <dagger.version>2.55</dagger.version>
  41. <easybind.version>2.2</easybind.version>
  42. <jackson.version>2.18.3</jackson.version>
  43. <javafx.version>23.0.2</javafx.version>
  44. <jwt.version>4.5.0</jwt.version>
  45. <nimbus-jose.version>9.37.3</nimbus-jose.version>
  46. <logback.version>1.5.17</logback.version>
  47. <slf4j.version>2.0.17</slf4j.version>
  48. <tinyoauth2.version>0.8.1</tinyoauth2.version>
  49. <zxcvbn.version>1.9.0</zxcvbn.version>
  50. <!-- test dependencies -->
  51. <junit.jupiter.version>5.11.4</junit.jupiter.version>
  52. <mockito.version>5.15.2</mockito.version>
  53. <hamcrest.version>3.0</hamcrest.version>
  54. <!-- build-time dependencies -->
  55. <jetbrains.annotations.version>26.0.2</jetbrains.annotations.version>
  56. <dependency-check.version>12.1.0</dependency-check.version>
  57. <jacoco.version>0.8.12</jacoco.version>
  58. <license-generator.version>2.5.0</license-generator.version>
  59. <junit-tree-reporter.version>1.4.0</junit-tree-reporter.version>
  60. <mvn-compiler.version>3.13.0</mvn-compiler.version>
  61. <mvn-resources.version>3.3.1</mvn-resources.version>
  62. <mvn-dependency.version>3.8.1</mvn-dependency.version>
  63. <mvn-surefire.version>3.5.2</mvn-surefire.version>
  64. <mvn-jar.version>3.4.2</mvn-jar.version>
  65. <!-- Property used by surefire to determine jacoco engine -->
  66. <surefire.jacoco.args></surefire.jacoco.args>
  67. </properties>
  68. <dependencies>
  69. <!-- Cryptomator Libs -->
  70. <dependency>
  71. <groupId>org.cryptomator</groupId>
  72. <artifactId>cryptolib</artifactId>
  73. <version>2.2.1</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.cryptomator</groupId>
  77. <artifactId>cryptofs</artifactId>
  78. <version>${cryptomator.cryptofs.version}</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.cryptomator</groupId>
  82. <artifactId>fuse-nio-adapter</artifactId>
  83. <version>${cryptomator.fuse.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. <exclusions>
  149. <exclusion>
  150. <groupId>com.fasterxml.jackson.core</groupId>
  151. <artifactId>jackson-core</artifactId>
  152. </exclusion>
  153. </exclusions>
  154. </dependency>
  155. <dependency>
  156. <groupId>com.nimbusds</groupId>
  157. <artifactId>nimbus-jose-jwt</artifactId>
  158. <version>${nimbus-jose.version}</version>
  159. </dependency>
  160. <!-- Jackson -->
  161. <dependency>
  162. <groupId>com.fasterxml.jackson.core</groupId>
  163. <artifactId>jackson-databind</artifactId>
  164. <version>${jackson.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>com.fasterxml.jackson.datatype</groupId>
  168. <artifactId>jackson-datatype-jsr310</artifactId>
  169. <version>${jackson.version}</version>
  170. </dependency>
  171. <!-- EasyBind -->
  172. <dependency>
  173. <groupId>com.tobiasdiez</groupId>
  174. <artifactId>easybind</artifactId>
  175. <version>${easybind.version}</version>
  176. </dependency>
  177. <!-- Zxcvbn -->
  178. <dependency>
  179. <groupId>com.nulab-inc</groupId>
  180. <artifactId>zxcvbn</artifactId>
  181. <version>${zxcvbn.version}</version>
  182. </dependency>
  183. <!-- Google -->
  184. <dependency>
  185. <groupId>com.google.dagger</groupId>
  186. <artifactId>dagger</artifactId>
  187. <version>${dagger.version}</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>jakarta.inject</groupId>
  191. <artifactId>jakarta.inject-api</artifactId>
  192. <version>2.0.1</version>
  193. </dependency>
  194. <!-- Caffeine -->
  195. <dependency>
  196. <groupId>com.github.ben-manes.caffeine</groupId>
  197. <artifactId>caffeine</artifactId>
  198. <version>3.2.0</version>
  199. </dependency>
  200. <!-- JUnit / Mockito / Hamcrest -->
  201. <dependency>
  202. <groupId>org.junit.jupiter</groupId>
  203. <artifactId>junit-jupiter</artifactId>
  204. <version>${junit.jupiter.version}</version>
  205. <scope>test</scope>
  206. </dependency>
  207. <dependency>
  208. <groupId>org.mockito</groupId>
  209. <artifactId>mockito-core</artifactId>
  210. <version>${mockito.version}</version>
  211. <scope>test</scope>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.hamcrest</groupId>
  215. <artifactId>hamcrest</artifactId>
  216. <version>${hamcrest.version}</version>
  217. <scope>test</scope>
  218. </dependency>
  219. <dependency>
  220. <groupId>org.openjfx</groupId>
  221. <artifactId>javafx-swing</artifactId>
  222. <version>${javafx.version}</version>
  223. <scope>test</scope>
  224. </dependency>
  225. <dependency>
  226. <groupId>com.google.jimfs</groupId>
  227. <artifactId>jimfs</artifactId>
  228. <version>1.3.0</version>
  229. <scope>test</scope>
  230. </dependency>
  231. <dependency>
  232. <groupId>org.jetbrains</groupId>
  233. <artifactId>annotations</artifactId>
  234. <version>${jetbrains.annotations.version}</version>
  235. <scope>provided</scope>
  236. </dependency>
  237. </dependencies>
  238. <build>
  239. <pluginManagement>
  240. <plugins>
  241. <plugin>
  242. <groupId>org.apache.maven.plugins</groupId>
  243. <artifactId>maven-compiler-plugin</artifactId>
  244. <version>${mvn-compiler.version}</version>
  245. </plugin>
  246. <plugin>
  247. <groupId>org.apache.maven.plugins</groupId>
  248. <artifactId>maven-resources-plugin</artifactId>
  249. <version>${mvn-resources.version}</version>
  250. </plugin>
  251. <plugin>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-dependency-plugin</artifactId>
  254. <version>${mvn-dependency.version}</version>
  255. </plugin>
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-surefire-plugin</artifactId>
  259. <version>${mvn-surefire.version}</version>
  260. </plugin>
  261. <plugin>
  262. <groupId>org.codehaus.mojo</groupId>
  263. <artifactId>license-maven-plugin</artifactId>
  264. <version>${license-generator.version}</version>
  265. </plugin>
  266. <plugin>
  267. <groupId>org.apache.maven.plugins</groupId>
  268. <artifactId>maven-jar-plugin</artifactId>
  269. <version>${mvn-jar.version}</version>
  270. </plugin>
  271. <plugin>
  272. <groupId>org.jacoco</groupId>
  273. <artifactId>jacoco-maven-plugin</artifactId>
  274. <version>${jacoco.version}</version>
  275. </plugin>
  276. <plugin>
  277. <groupId>org.owasp</groupId>
  278. <artifactId>dependency-check-maven</artifactId>
  279. <version>${dependency-check.version}</version>
  280. </plugin>
  281. </plugins>
  282. </pluginManagement>
  283. <plugins>
  284. <plugin>
  285. <groupId>org.apache.maven.plugins</groupId>
  286. <artifactId>maven-compiler-plugin</artifactId>
  287. <configuration>
  288. <release>${project.jdk.version}</release>
  289. <annotationProcessorPaths>
  290. <path>
  291. <groupId>com.google.dagger</groupId>
  292. <artifactId>dagger-compiler</artifactId>
  293. <version>${dagger.version}</version>
  294. </path>
  295. </annotationProcessorPaths>
  296. <compilerArgs>
  297. <arg>-Adagger.fastInit=enabled</arg>
  298. <arg>-Adagger.formatGeneratedSource=enabled</arg>
  299. </compilerArgs>
  300. </configuration>
  301. </plugin>
  302. <plugin>
  303. <groupId>org.apache.maven.plugins</groupId>
  304. <artifactId>maven-jar-plugin</artifactId>
  305. <configuration>
  306. <archive>
  307. <manifest>
  308. <!-- adds Implementation-Version which can be read during runtime -->
  309. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  310. </manifest>
  311. </archive>
  312. </configuration>
  313. </plugin>
  314. <plugin>
  315. <groupId>org.apache.maven.plugins</groupId>
  316. <artifactId>maven-surefire-plugin</artifactId>
  317. <dependencies>
  318. <dependency>
  319. <groupId>me.fabriciorby</groupId>
  320. <artifactId>maven-surefire-junit5-tree-reporter</artifactId>
  321. <version>${junit-tree-reporter.version}</version>
  322. </dependency>
  323. </dependencies>
  324. <configuration>
  325. <reportFormat>plain</reportFormat>
  326. <consoleOutputReporter>
  327. <disable>true</disable>
  328. </consoleOutputReporter>
  329. <argLine>@{surefire.jacoco.args} -javaagent:${org.mockito:mockito-core:jar}</argLine>
  330. <statelessTestsetInfoReporter
  331. implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter">
  332. </statelessTestsetInfoReporter>
  333. </configuration>
  334. </plugin>
  335. <plugin>
  336. <groupId>org.apache.maven.plugins</groupId>
  337. <artifactId>maven-dependency-plugin</artifactId>
  338. <executions>
  339. <execution>
  340. <id>jar-paths-to-properties</id>
  341. <phase>validate</phase>
  342. <goals>
  343. <goal>properties</goal>
  344. </goals>
  345. </execution>
  346. <!-- sort jars into two buckets (classpath and modulepath). exclude openjfx, which gets jlinked separately -->
  347. <execution>
  348. <id>copy-mods</id>
  349. <phase>prepare-package</phase>
  350. <goals>
  351. <goal>copy-dependencies</goal>
  352. </goals>
  353. <configuration>
  354. <includeScope>runtime</includeScope>
  355. <outputDirectory>${project.build.directory}/mods</outputDirectory>
  356. <excludeGroupIds>org.openjfx,${nonModularGroupIds}</excludeGroupIds>
  357. </configuration>
  358. </execution>
  359. <execution>
  360. <id>copy-libs</id>
  361. <phase>prepare-package</phase>
  362. <goals>
  363. <goal>copy-dependencies</goal>
  364. </goals>
  365. <configuration>
  366. <includeScope>runtime</includeScope>
  367. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  368. <includeGroupIds>${nonModularGroupIds}</includeGroupIds>
  369. </configuration>
  370. </execution>
  371. </executions>
  372. </plugin>
  373. <plugin>
  374. <groupId>org.codehaus.mojo</groupId>
  375. <artifactId>license-maven-plugin</artifactId>
  376. <executions>
  377. <execution>
  378. <id>add-third-party</id>
  379. <goals>
  380. <goal>add-third-party</goal>
  381. </goals>
  382. <phase>generate-resources</phase>
  383. <configuration>
  384. <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
  385. <includedScopes>compile</includedScopes>
  386. <excludedGroups>org\.cryptomator</excludedGroups>
  387. <licenseMergesUrl>file:///${project.basedir}/license/merges</licenseMergesUrl>
  388. <fileTemplate>${project.basedir}/src/main/resources/license/template.ftl</fileTemplate>
  389. </configuration>
  390. </execution>
  391. </executions>
  392. </plugin>
  393. </plugins>
  394. <resources>
  395. <resource>
  396. <directory>src/main/resources</directory>
  397. <excludes>
  398. <exclude>license/*</exclude>
  399. </excludes>
  400. </resource>
  401. </resources>
  402. </build>
  403. <profiles>
  404. <profile>
  405. <id>coverage</id>
  406. <build>
  407. <plugins>
  408. <plugin>
  409. <groupId>org.jacoco</groupId>
  410. <artifactId>jacoco-maven-plugin</artifactId>
  411. <executions>
  412. <execution>
  413. <id>prepare-agent</id>
  414. <goals>
  415. <goal>prepare-agent</goal>
  416. </goals>
  417. <configuration>
  418. <propertyName>surefire.jacoco.args</propertyName>
  419. </configuration>
  420. </execution>
  421. <execution>
  422. <id>report</id>
  423. <goals>
  424. <goal>report</goal>
  425. </goals>
  426. </execution>
  427. </executions>
  428. <configuration>
  429. <excludes>
  430. <exclude>**/*_*</exclude>
  431. <exclude>**/Dagger*</exclude>
  432. </excludes>
  433. </configuration>
  434. </plugin>
  435. </plugins>
  436. </build>
  437. </profile>
  438. <profile>
  439. <id>dependency-check</id>
  440. <build>
  441. <plugins>
  442. <plugin>
  443. <groupId>org.owasp</groupId>
  444. <artifactId>dependency-check-maven</artifactId>
  445. <configuration>
  446. <nvdValidForHours>24</nvdValidForHours>
  447. <failBuildOnCVSS>0</failBuildOnCVSS>
  448. <skipTestScope>true</skipTestScope>
  449. <detail>true</detail>
  450. <suppressionFile>suppression.xml</suppressionFile>
  451. <nvdApiKeyEnvironmentVariable>NVD_API_KEY</nvdApiKeyEnvironmentVariable>
  452. </configuration>
  453. <executions>
  454. <execution>
  455. <goals>
  456. <goal>check</goal>
  457. </goals>
  458. <phase>validate</phase>
  459. </execution>
  460. </executions>
  461. </plugin>
  462. </plugins>
  463. </build>
  464. </profile>
  465. <profile>
  466. <id>mac</id>
  467. <activation>
  468. <os>
  469. <family>mac</family>
  470. </os>
  471. <property>
  472. <name>idea.version</name>
  473. </property>
  474. </activation>
  475. <dependencies>
  476. <dependency>
  477. <groupId>org.cryptomator</groupId>
  478. <artifactId>integrations-mac</artifactId>
  479. <version>${cryptomator.integrations.mac.version}</version>
  480. </dependency>
  481. </dependencies>
  482. </profile>
  483. <profile>
  484. <id>linux</id>
  485. <activation>
  486. <os>
  487. <family>unix</family>
  488. <name>Linux</name>
  489. </os>
  490. <property>
  491. <name>idea.version</name>
  492. </property>
  493. </activation>
  494. <dependencies>
  495. <dependency>
  496. <groupId>org.cryptomator</groupId>
  497. <artifactId>integrations-linux</artifactId>
  498. <version>${cryptomator.integrations.linux.version}</version>
  499. </dependency>
  500. </dependencies>
  501. </profile>
  502. <profile>
  503. <id>win</id>
  504. <activation>
  505. <os>
  506. <family>windows</family>
  507. </os>
  508. <property>
  509. <name>idea.version</name>
  510. </property>
  511. </activation>
  512. <dependencies>
  513. <dependency>
  514. <groupId>org.cryptomator</groupId>
  515. <artifactId>integrations-win</artifactId>
  516. <version>${cryptomator.integrations.win.version}</version>
  517. </dependency>
  518. </dependencies>
  519. </profile>
  520. </profiles>
  521. </project>