pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  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.8.0</cryptomator.cryptofs.version>
  32. <cryptomator.integrations.version>1.5.0</cryptomator.integrations.version>
  33. <cryptomator.integrations.win.version>1.3.0</cryptomator.integrations.win.version>
  34. <cryptomator.integrations.mac.version>1.2.4</cryptomator.integrations.mac.version>
  35. <cryptomator.integrations.linux.version>1.5.2</cryptomator.integrations.linux.version>
  36. <cryptomator.fuse.version>5.0.2</cryptomator.fuse.version>
  37. <cryptomator.webdav.version>2.0.7</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.2</jackson.version>
  43. <javafx.version>23.0.1</javafx.version>
  44. <jwt.version>4.4.0</jwt.version>
  45. <nimbus-jose.version>9.37.3</nimbus-jose.version>
  46. <logback.version>1.5.16</logback.version>
  47. <slf4j.version>2.0.16</slf4j.version>
  48. <tinyoauth2.version>0.8.0</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.1</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.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.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.0</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. </dependency>
  149. <dependency>
  150. <groupId>com.nimbusds</groupId>
  151. <artifactId>nimbus-jose-jwt</artifactId>
  152. <version>${nimbus-jose.version}</version>
  153. </dependency>
  154. <!-- Jackson -->
  155. <dependency>
  156. <groupId>com.fasterxml.jackson.core</groupId>
  157. <artifactId>jackson-databind</artifactId>
  158. <version>${jackson.version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>com.fasterxml.jackson.datatype</groupId>
  162. <artifactId>jackson-datatype-jsr310</artifactId>
  163. <version>${jackson.version}</version>
  164. </dependency>
  165. <!-- EasyBind -->
  166. <dependency>
  167. <groupId>com.tobiasdiez</groupId>
  168. <artifactId>easybind</artifactId>
  169. <version>${easybind.version}</version>
  170. </dependency>
  171. <!-- Zxcvbn -->
  172. <dependency>
  173. <groupId>com.nulab-inc</groupId>
  174. <artifactId>zxcvbn</artifactId>
  175. <version>${zxcvbn.version}</version>
  176. </dependency>
  177. <!-- Google -->
  178. <dependency>
  179. <groupId>com.google.dagger</groupId>
  180. <artifactId>dagger</artifactId>
  181. <version>${dagger.version}</version>
  182. </dependency>
  183. <dependency>
  184. <groupId>jakarta.inject</groupId>
  185. <artifactId>jakarta.inject-api</artifactId>
  186. <version>2.0.1</version>
  187. </dependency>
  188. <!-- Caffeine -->
  189. <dependency>
  190. <groupId>com.github.ben-manes.caffeine</groupId>
  191. <artifactId>caffeine</artifactId>
  192. <version>3.2.0</version>
  193. </dependency>
  194. <!-- JUnit / Mockito / Hamcrest -->
  195. <dependency>
  196. <groupId>org.junit.jupiter</groupId>
  197. <artifactId>junit-jupiter</artifactId>
  198. <version>${junit.jupiter.version}</version>
  199. <scope>test</scope>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.mockito</groupId>
  203. <artifactId>mockito-core</artifactId>
  204. <version>${mockito.version}</version>
  205. <scope>test</scope>
  206. </dependency>
  207. <dependency>
  208. <groupId>org.hamcrest</groupId>
  209. <artifactId>hamcrest</artifactId>
  210. <version>${hamcrest.version}</version>
  211. <scope>test</scope>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.openjfx</groupId>
  215. <artifactId>javafx-swing</artifactId>
  216. <version>${javafx.version}</version>
  217. <scope>test</scope>
  218. </dependency>
  219. <dependency>
  220. <groupId>com.google.jimfs</groupId>
  221. <artifactId>jimfs</artifactId>
  222. <version>1.3.0</version>
  223. <scope>test</scope>
  224. </dependency>
  225. <dependency>
  226. <groupId>org.jetbrains</groupId>
  227. <artifactId>annotations</artifactId>
  228. <version>${jetbrains.annotations.version}</version>
  229. <scope>provided</scope>
  230. </dependency>
  231. </dependencies>
  232. <build>
  233. <pluginManagement>
  234. <plugins>
  235. <plugin>
  236. <groupId>org.apache.maven.plugins</groupId>
  237. <artifactId>maven-compiler-plugin</artifactId>
  238. <version>${mvn-compiler.version}</version>
  239. </plugin>
  240. <plugin>
  241. <groupId>org.apache.maven.plugins</groupId>
  242. <artifactId>maven-resources-plugin</artifactId>
  243. <version>${mvn-resources.version}</version>
  244. </plugin>
  245. <plugin>
  246. <groupId>org.apache.maven.plugins</groupId>
  247. <artifactId>maven-dependency-plugin</artifactId>
  248. <version>${mvn-dependency.version}</version>
  249. </plugin>
  250. <plugin>
  251. <groupId>org.apache.maven.plugins</groupId>
  252. <artifactId>maven-surefire-plugin</artifactId>
  253. <version>${mvn-surefire.version}</version>
  254. </plugin>
  255. <plugin>
  256. <groupId>org.codehaus.mojo</groupId>
  257. <artifactId>license-maven-plugin</artifactId>
  258. <version>${license-generator.version}</version>
  259. </plugin>
  260. <plugin>
  261. <groupId>org.apache.maven.plugins</groupId>
  262. <artifactId>maven-jar-plugin</artifactId>
  263. <version>${mvn-jar.version}</version>
  264. </plugin>
  265. <plugin>
  266. <groupId>org.jacoco</groupId>
  267. <artifactId>jacoco-maven-plugin</artifactId>
  268. <version>${jacoco.version}</version>
  269. </plugin>
  270. <plugin>
  271. <groupId>org.owasp</groupId>
  272. <artifactId>dependency-check-maven</artifactId>
  273. <version>${dependency-check.version}</version>
  274. </plugin>
  275. </plugins>
  276. </pluginManagement>
  277. <plugins>
  278. <plugin>
  279. <groupId>org.apache.maven.plugins</groupId>
  280. <artifactId>maven-compiler-plugin</artifactId>
  281. <configuration>
  282. <release>${project.jdk.version}</release>
  283. <annotationProcessorPaths>
  284. <path>
  285. <groupId>com.google.dagger</groupId>
  286. <artifactId>dagger-compiler</artifactId>
  287. <version>${dagger.version}</version>
  288. </path>
  289. </annotationProcessorPaths>
  290. <compilerArgs>
  291. <arg>-Adagger.fastInit=enabled</arg>
  292. <arg>-Adagger.formatGeneratedSource=enabled</arg>
  293. </compilerArgs>
  294. </configuration>
  295. </plugin>
  296. <plugin>
  297. <groupId>org.apache.maven.plugins</groupId>
  298. <artifactId>maven-jar-plugin</artifactId>
  299. <configuration>
  300. <archive>
  301. <manifest>
  302. <!-- adds Implementation-Version which can be read during runtime -->
  303. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  304. </manifest>
  305. </archive>
  306. </configuration>
  307. </plugin>
  308. <plugin>
  309. <groupId>org.apache.maven.plugins</groupId>
  310. <artifactId>maven-surefire-plugin</artifactId>
  311. <dependencies>
  312. <dependency>
  313. <groupId>me.fabriciorby</groupId>
  314. <artifactId>maven-surefire-junit5-tree-reporter</artifactId>
  315. <version>${junit-tree-reporter.version}</version>
  316. </dependency>
  317. </dependencies>
  318. <configuration>
  319. <reportFormat>plain</reportFormat>
  320. <consoleOutputReporter>
  321. <disable>true</disable>
  322. </consoleOutputReporter>
  323. <argLine>@{surefire.jacoco.args} -javaagent:${org.mockito:mockito-core:jar}</argLine>
  324. <statelessTestsetInfoReporter
  325. implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter">
  326. </statelessTestsetInfoReporter>
  327. </configuration>
  328. </plugin>
  329. <plugin>
  330. <groupId>org.apache.maven.plugins</groupId>
  331. <artifactId>maven-dependency-plugin</artifactId>
  332. <executions>
  333. <execution>
  334. <id>jar-paths-to-properties</id>
  335. <phase>validate</phase>
  336. <goals>
  337. <goal>properties</goal>
  338. </goals>
  339. </execution>
  340. <!-- sort jars into two buckets (classpath and modulepath). exclude openjfx, which gets jlinked separately -->
  341. <execution>
  342. <id>copy-mods</id>
  343. <phase>prepare-package</phase>
  344. <goals>
  345. <goal>copy-dependencies</goal>
  346. </goals>
  347. <configuration>
  348. <includeScope>runtime</includeScope>
  349. <outputDirectory>${project.build.directory}/mods</outputDirectory>
  350. <excludeGroupIds>org.openjfx,${nonModularGroupIds}</excludeGroupIds>
  351. </configuration>
  352. </execution>
  353. <execution>
  354. <id>copy-libs</id>
  355. <phase>prepare-package</phase>
  356. <goals>
  357. <goal>copy-dependencies</goal>
  358. </goals>
  359. <configuration>
  360. <includeScope>runtime</includeScope>
  361. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  362. <includeGroupIds>${nonModularGroupIds}</includeGroupIds>
  363. </configuration>
  364. </execution>
  365. </executions>
  366. </plugin>
  367. <plugin>
  368. <groupId>org.codehaus.mojo</groupId>
  369. <artifactId>license-maven-plugin</artifactId>
  370. <executions>
  371. <execution>
  372. <id>add-third-party</id>
  373. <goals>
  374. <goal>add-third-party</goal>
  375. </goals>
  376. <phase>generate-resources</phase>
  377. <configuration>
  378. <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
  379. <includedScopes>compile</includedScopes>
  380. <excludedGroups>org\.cryptomator</excludedGroups>
  381. <licenseMergesUrl>file:///${project.basedir}/license/merges</licenseMergesUrl>
  382. <fileTemplate>${project.basedir}/src/main/resources/license/template.ftl</fileTemplate>
  383. </configuration>
  384. </execution>
  385. </executions>
  386. </plugin>
  387. </plugins>
  388. <resources>
  389. <resource>
  390. <directory>src/main/resources</directory>
  391. <excludes>
  392. <exclude>license/*</exclude>
  393. </excludes>
  394. </resource>
  395. </resources>
  396. </build>
  397. <profiles>
  398. <profile>
  399. <id>coverage</id>
  400. <build>
  401. <plugins>
  402. <plugin>
  403. <groupId>org.jacoco</groupId>
  404. <artifactId>jacoco-maven-plugin</artifactId>
  405. <executions>
  406. <execution>
  407. <id>prepare-agent</id>
  408. <goals>
  409. <goal>prepare-agent</goal>
  410. </goals>
  411. <configuration>
  412. <propertyName>surefire.jacoco.args</propertyName>
  413. </configuration>
  414. </execution>
  415. <execution>
  416. <id>report</id>
  417. <goals>
  418. <goal>report</goal>
  419. </goals>
  420. </execution>
  421. </executions>
  422. <configuration>
  423. <excludes>
  424. <exclude>**/*_*</exclude>
  425. <exclude>**/Dagger*</exclude>
  426. </excludes>
  427. </configuration>
  428. </plugin>
  429. </plugins>
  430. </build>
  431. </profile>
  432. <profile>
  433. <id>dependency-check</id>
  434. <build>
  435. <plugins>
  436. <plugin>
  437. <groupId>org.owasp</groupId>
  438. <artifactId>dependency-check-maven</artifactId>
  439. <configuration>
  440. <nvdValidForHours>24</nvdValidForHours>
  441. <failBuildOnCVSS>0</failBuildOnCVSS>
  442. <skipTestScope>true</skipTestScope>
  443. <detail>true</detail>
  444. <suppressionFile>suppression.xml</suppressionFile>
  445. <nvdApiKeyEnvironmentVariable>NVD_API_KEY</nvdApiKeyEnvironmentVariable>
  446. </configuration>
  447. <executions>
  448. <execution>
  449. <goals>
  450. <goal>check</goal>
  451. </goals>
  452. <phase>validate</phase>
  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>