pom.xml 16 KB

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