pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  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.17.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>24</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</cryptomator.cryptofs.version>
  32. <cryptomator.integrations.version>1.6.0</cryptomator.integrations.version>
  33. <cryptomator.integrations.win.version>1.5.0</cryptomator.integrations.win.version>
  34. <cryptomator.integrations.mac.version>1.4.0</cryptomator.integrations.mac.version>
  35. <cryptomator.integrations.linux.version>1.6.0</cryptomator.integrations.linux.version>
  36. <cryptomator.fuse.version>5.0.5</cryptomator.fuse.version>
  37. <cryptomator.webdav.version>2.0.10</cryptomator.webdav.version>
  38. <!-- 3rd party dependencies -->
  39. <commons-lang3.version>3.17.0</commons-lang3.version>
  40. <dagger.version>2.56.1</dagger.version>
  41. <easybind.version>2.2</easybind.version>
  42. <jackson.version>2.18.3</jackson.version>
  43. <javafx.version>24.0.1</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.18</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.13.0</junit.jupiter.version>
  52. <mockito.version>5.18.0</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.1</dependency-check.version>
  57. <jacoco.version>0.8.13</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.14.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.3</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. <!-- TODO: Remove once webdav version 2.0.11 is released -->
  69. <dependencyManagement>
  70. <dependencies>
  71. <dependency>
  72. <groupId>org.cryptomator</groupId>
  73. <artifactId>webdav-nio-adapter-servlet</artifactId>
  74. <version>1.2.9</version>
  75. </dependency>
  76. </dependencies>
  77. </dependencyManagement>
  78. <dependencies>
  79. <!-- Cryptomator Libs -->
  80. <dependency>
  81. <groupId>org.cryptomator</groupId>
  82. <artifactId>cryptolib</artifactId>
  83. <version>2.2.1</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.cryptomator</groupId>
  87. <artifactId>cryptofs</artifactId>
  88. <version>${cryptomator.cryptofs.version}</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.cryptomator</groupId>
  92. <artifactId>fuse-nio-adapter</artifactId>
  93. <version>${cryptomator.fuse.version}</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.cryptomator</groupId>
  97. <artifactId>webdav-nio-adapter</artifactId>
  98. <version>${cryptomator.webdav.version}</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.cryptomator</groupId>
  102. <artifactId>integrations-api</artifactId>
  103. <version>${cryptomator.integrations.version}</version>
  104. </dependency>
  105. <!-- JavaFX -->
  106. <dependency>
  107. <groupId>org.openjfx</groupId>
  108. <artifactId>javafx-base</artifactId>
  109. <version>${javafx.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.openjfx</groupId>
  113. <artifactId>javafx-graphics</artifactId>
  114. <version>${javafx.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.openjfx</groupId>
  118. <artifactId>javafx-controls</artifactId>
  119. <version>${javafx.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.openjfx</groupId>
  123. <artifactId>javafx-fxml</artifactId>
  124. <version>${javafx.version}</version>
  125. </dependency>
  126. <!-- Logging -->
  127. <dependency>
  128. <groupId>org.slf4j</groupId>
  129. <artifactId>slf4j-api</artifactId>
  130. <version>${slf4j.version}</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>ch.qos.logback</groupId>
  134. <artifactId>logback-core</artifactId>
  135. <version>${logback.version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>ch.qos.logback</groupId>
  139. <artifactId>logback-classic</artifactId>
  140. <version>${logback.version}</version>
  141. </dependency>
  142. <!-- Apache Commons -->
  143. <dependency>
  144. <groupId>org.apache.commons</groupId>
  145. <artifactId>commons-lang3</artifactId>
  146. <version>${commons-lang3.version}</version>
  147. </dependency>
  148. <!-- OAuth/JWT -->
  149. <dependency>
  150. <groupId>io.github.coffeelibs</groupId>
  151. <artifactId>tiny-oauth2-client</artifactId>
  152. <version>${tinyoauth2.version}</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>com.auth0</groupId>
  156. <artifactId>java-jwt</artifactId>
  157. <version>${jwt.version}</version>
  158. <exclusions>
  159. <exclusion>
  160. <groupId>com.fasterxml.jackson.core</groupId>
  161. <artifactId>jackson-core</artifactId>
  162. </exclusion>
  163. </exclusions>
  164. </dependency>
  165. <dependency>
  166. <groupId>com.nimbusds</groupId>
  167. <artifactId>nimbus-jose-jwt</artifactId>
  168. <version>${nimbus-jose.version}</version>
  169. </dependency>
  170. <!-- Jackson -->
  171. <dependency>
  172. <groupId>com.fasterxml.jackson.core</groupId>
  173. <artifactId>jackson-databind</artifactId>
  174. <version>${jackson.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>com.fasterxml.jackson.datatype</groupId>
  178. <artifactId>jackson-datatype-jsr310</artifactId>
  179. <version>${jackson.version}</version>
  180. </dependency>
  181. <!-- EasyBind -->
  182. <dependency>
  183. <groupId>com.tobiasdiez</groupId>
  184. <artifactId>easybind</artifactId>
  185. <version>${easybind.version}</version>
  186. </dependency>
  187. <!-- Zxcvbn -->
  188. <dependency>
  189. <groupId>com.nulab-inc</groupId>
  190. <artifactId>zxcvbn</artifactId>
  191. <version>${zxcvbn.version}</version>
  192. </dependency>
  193. <!-- Google -->
  194. <dependency>
  195. <groupId>com.google.dagger</groupId>
  196. <artifactId>dagger</artifactId>
  197. <version>${dagger.version}</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>jakarta.inject</groupId>
  201. <artifactId>jakarta.inject-api</artifactId>
  202. <version>2.0.1</version>
  203. </dependency>
  204. <!-- Caffeine -->
  205. <dependency>
  206. <groupId>com.github.ben-manes.caffeine</groupId>
  207. <artifactId>caffeine</artifactId>
  208. <version>3.2.0</version>
  209. </dependency>
  210. <!-- JUnit / Mockito / Hamcrest -->
  211. <dependency>
  212. <groupId>org.junit.jupiter</groupId>
  213. <artifactId>junit-jupiter</artifactId>
  214. <version>${junit.jupiter.version}</version>
  215. <scope>test</scope>
  216. </dependency>
  217. <dependency>
  218. <groupId>org.mockito</groupId>
  219. <artifactId>mockito-core</artifactId>
  220. <version>${mockito.version}</version>
  221. <scope>test</scope>
  222. </dependency>
  223. <dependency>
  224. <groupId>org.hamcrest</groupId>
  225. <artifactId>hamcrest</artifactId>
  226. <version>${hamcrest.version}</version>
  227. <scope>test</scope>
  228. </dependency>
  229. <dependency>
  230. <groupId>org.openjfx</groupId>
  231. <artifactId>javafx-swing</artifactId>
  232. <version>${javafx.version}</version>
  233. <scope>test</scope>
  234. </dependency>
  235. <dependency>
  236. <groupId>com.google.jimfs</groupId>
  237. <artifactId>jimfs</artifactId>
  238. <version>1.3.0</version>
  239. <scope>test</scope>
  240. </dependency>
  241. <dependency>
  242. <groupId>org.jetbrains</groupId>
  243. <artifactId>annotations</artifactId>
  244. <version>${jetbrains.annotations.version}</version>
  245. <scope>provided</scope>
  246. </dependency>
  247. </dependencies>
  248. <build>
  249. <pluginManagement>
  250. <plugins>
  251. <plugin>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-compiler-plugin</artifactId>
  254. <version>${mvn-compiler.version}</version>
  255. </plugin>
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-resources-plugin</artifactId>
  259. <version>${mvn-resources.version}</version>
  260. </plugin>
  261. <plugin>
  262. <groupId>org.apache.maven.plugins</groupId>
  263. <artifactId>maven-dependency-plugin</artifactId>
  264. <version>${mvn-dependency.version}</version>
  265. </plugin>
  266. <plugin>
  267. <groupId>org.apache.maven.plugins</groupId>
  268. <artifactId>maven-surefire-plugin</artifactId>
  269. <version>${mvn-surefire.version}</version>
  270. </plugin>
  271. <plugin>
  272. <groupId>org.codehaus.mojo</groupId>
  273. <artifactId>license-maven-plugin</artifactId>
  274. <version>${license-generator.version}</version>
  275. </plugin>
  276. <plugin>
  277. <groupId>org.apache.maven.plugins</groupId>
  278. <artifactId>maven-jar-plugin</artifactId>
  279. <version>${mvn-jar.version}</version>
  280. </plugin>
  281. <plugin>
  282. <groupId>org.jacoco</groupId>
  283. <artifactId>jacoco-maven-plugin</artifactId>
  284. <version>${jacoco.version}</version>
  285. </plugin>
  286. <plugin>
  287. <groupId>org.owasp</groupId>
  288. <artifactId>dependency-check-maven</artifactId>
  289. <version>${dependency-check.version}</version>
  290. </plugin>
  291. </plugins>
  292. </pluginManagement>
  293. <plugins>
  294. <plugin>
  295. <groupId>org.apache.maven.plugins</groupId>
  296. <artifactId>maven-compiler-plugin</artifactId>
  297. <configuration>
  298. <release>${project.jdk.version}</release>
  299. <annotationProcessorPaths>
  300. <path>
  301. <groupId>com.google.dagger</groupId>
  302. <artifactId>dagger-compiler</artifactId>
  303. <version>${dagger.version}</version>
  304. </path>
  305. </annotationProcessorPaths>
  306. <compilerArgs>
  307. <arg>-Adagger.fastInit=enabled</arg>
  308. <arg>-Adagger.formatGeneratedSource=enabled</arg>
  309. </compilerArgs>
  310. </configuration>
  311. </plugin>
  312. <plugin>
  313. <groupId>org.apache.maven.plugins</groupId>
  314. <artifactId>maven-jar-plugin</artifactId>
  315. <configuration>
  316. <archive>
  317. <manifest>
  318. <!-- adds Implementation-Version which can be read during runtime -->
  319. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  320. </manifest>
  321. </archive>
  322. </configuration>
  323. </plugin>
  324. <plugin>
  325. <groupId>org.apache.maven.plugins</groupId>
  326. <artifactId>maven-surefire-plugin</artifactId>
  327. <dependencies>
  328. <dependency>
  329. <groupId>me.fabriciorby</groupId>
  330. <artifactId>maven-surefire-junit5-tree-reporter</artifactId>
  331. <version>${junit-tree-reporter.version}</version>
  332. </dependency>
  333. </dependencies>
  334. <configuration>
  335. <reportFormat>plain</reportFormat>
  336. <consoleOutputReporter>
  337. <disable>true</disable>
  338. </consoleOutputReporter>
  339. <argLine>@{surefire.jacoco.args} -javaagent:${org.mockito:mockito-core:jar} --enable-native-access=javafx.graphics</argLine>
  340. <statelessTestsetInfoReporter
  341. implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter">
  342. </statelessTestsetInfoReporter>
  343. </configuration>
  344. </plugin>
  345. <plugin>
  346. <groupId>org.apache.maven.plugins</groupId>
  347. <artifactId>maven-dependency-plugin</artifactId>
  348. <executions>
  349. <execution>
  350. <id>jar-paths-to-properties</id>
  351. <phase>validate</phase>
  352. <goals>
  353. <goal>properties</goal>
  354. </goals>
  355. </execution>
  356. <!-- sort jars into two buckets (classpath and modulepath). exclude openjfx, which gets jlinked separately -->
  357. <execution>
  358. <id>copy-mods</id>
  359. <phase>prepare-package</phase>
  360. <goals>
  361. <goal>copy-dependencies</goal>
  362. </goals>
  363. <configuration>
  364. <includeScope>runtime</includeScope>
  365. <outputDirectory>${project.build.directory}/mods</outputDirectory>
  366. <excludeGroupIds>org.openjfx,${nonModularGroupIds}</excludeGroupIds>
  367. </configuration>
  368. </execution>
  369. <execution>
  370. <id>copy-libs</id>
  371. <phase>prepare-package</phase>
  372. <goals>
  373. <goal>copy-dependencies</goal>
  374. </goals>
  375. <configuration>
  376. <includeScope>runtime</includeScope>
  377. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  378. <includeGroupIds>${nonModularGroupIds}</includeGroupIds>
  379. </configuration>
  380. </execution>
  381. </executions>
  382. </plugin>
  383. <plugin>
  384. <groupId>org.codehaus.mojo</groupId>
  385. <artifactId>license-maven-plugin</artifactId>
  386. <executions>
  387. <execution>
  388. <id>add-third-party</id>
  389. <goals>
  390. <goal>add-third-party</goal>
  391. </goals>
  392. <phase>generate-resources</phase>
  393. <configuration>
  394. <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
  395. <includedScopes>compile</includedScopes>
  396. <excludedGroups>org\.cryptomator</excludedGroups>
  397. <licenseMergesUrl>file:///${project.basedir}/license/merges</licenseMergesUrl>
  398. <fileTemplate>${project.basedir}/src/main/resources/license/template.ftl</fileTemplate>
  399. </configuration>
  400. </execution>
  401. </executions>
  402. </plugin>
  403. </plugins>
  404. <resources>
  405. <resource>
  406. <directory>src/main/resources</directory>
  407. <excludes>
  408. <exclude>license/*</exclude>
  409. </excludes>
  410. </resource>
  411. </resources>
  412. </build>
  413. <profiles>
  414. <profile>
  415. <id>coverage</id>
  416. <build>
  417. <plugins>
  418. <plugin>
  419. <groupId>org.jacoco</groupId>
  420. <artifactId>jacoco-maven-plugin</artifactId>
  421. <executions>
  422. <execution>
  423. <id>prepare-agent</id>
  424. <goals>
  425. <goal>prepare-agent</goal>
  426. </goals>
  427. <configuration>
  428. <propertyName>surefire.jacoco.args</propertyName>
  429. </configuration>
  430. </execution>
  431. <execution>
  432. <id>report</id>
  433. <goals>
  434. <goal>report</goal>
  435. </goals>
  436. </execution>
  437. </executions>
  438. <configuration>
  439. <excludes>
  440. <exclude>**/*_*</exclude>
  441. <exclude>**/Dagger*</exclude>
  442. </excludes>
  443. </configuration>
  444. </plugin>
  445. </plugins>
  446. </build>
  447. </profile>
  448. <profile>
  449. <id>dependency-check</id>
  450. <build>
  451. <plugins>
  452. <plugin>
  453. <groupId>org.owasp</groupId>
  454. <artifactId>dependency-check-maven</artifactId>
  455. <configuration>
  456. <nvdValidForHours>24</nvdValidForHours>
  457. <failBuildOnCVSS>0</failBuildOnCVSS>
  458. <skipTestScope>true</skipTestScope>
  459. <detail>true</detail>
  460. <suppressionFile>suppression.xml</suppressionFile>
  461. <nvdApiKeyEnvironmentVariable>NVD_API_KEY</nvdApiKeyEnvironmentVariable>
  462. </configuration>
  463. <executions>
  464. <execution>
  465. <goals>
  466. <goal>check</goal>
  467. </goals>
  468. <phase>validate</phase>
  469. </execution>
  470. </executions>
  471. </plugin>
  472. </plugins>
  473. </build>
  474. </profile>
  475. <profile>
  476. <id>mac</id>
  477. <activation>
  478. <os>
  479. <family>mac</family>
  480. </os>
  481. <property>
  482. <name>idea.version</name>
  483. </property>
  484. </activation>
  485. <dependencies>
  486. <dependency>
  487. <groupId>org.cryptomator</groupId>
  488. <artifactId>integrations-mac</artifactId>
  489. <version>${cryptomator.integrations.mac.version}</version>
  490. </dependency>
  491. </dependencies>
  492. </profile>
  493. <profile>
  494. <id>linux</id>
  495. <activation>
  496. <os>
  497. <family>unix</family>
  498. <name>Linux</name>
  499. </os>
  500. <property>
  501. <name>idea.version</name>
  502. </property>
  503. </activation>
  504. <dependencies>
  505. <dependency>
  506. <groupId>org.cryptomator</groupId>
  507. <artifactId>integrations-linux</artifactId>
  508. <version>${cryptomator.integrations.linux.version}</version>
  509. </dependency>
  510. </dependencies>
  511. </profile>
  512. <profile>
  513. <id>win</id>
  514. <activation>
  515. <os>
  516. <family>windows</family>
  517. </os>
  518. <property>
  519. <name>idea.version</name>
  520. </property>
  521. </activation>
  522. <dependencies>
  523. <dependency>
  524. <groupId>org.cryptomator</groupId>
  525. <artifactId>integrations-win</artifactId>
  526. <version>${cryptomator.integrations.win.version}</version>
  527. </dependency>
  528. </dependencies>
  529. </profile>
  530. </profiles>
  531. </project>