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.14.1</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>22</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.7.1-beta1</cryptomator.cryptofs.version>
  32. <cryptomator.integrations.version>1.4.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.1</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.16.0</commons-lang3.version>
  40. <dagger.version>2.51.1</dagger.version>
  41. <easybind.version>2.2</easybind.version>
  42. <guava.version>33.3.0-jre</guava.version>
  43. <jackson.version>2.17.2</jackson.version>
  44. <javafx.version>22.0.2</javafx.version>
  45. <jwt.version>4.4.0</jwt.version>
  46. <nimbus-jose.version>9.37.3</nimbus-jose.version>
  47. <logback.version>1.5.7</logback.version>
  48. <slf4j.version>2.0.16</slf4j.version>
  49. <tinyoauth2.version>0.8.0</tinyoauth2.version>
  50. <zxcvbn.version>1.9.0</zxcvbn.version>
  51. <!-- test dependencies -->
  52. <junit.jupiter.version>5.11.0</junit.jupiter.version>
  53. <mockito.version>5.12.0</mockito.version>
  54. <hamcrest.version>3.0</hamcrest.version>
  55. <!-- build-time dependencies -->
  56. <jetbrains.annotations.version>24.1.0</jetbrains.annotations.version>
  57. <dependency-check.version>10.0.3</dependency-check.version>
  58. <jacoco.version>0.8.12</jacoco.version>
  59. <license-generator.version>2.4.0</license-generator.version>
  60. <junit-tree-reporter.version>1.3.0</junit-tree-reporter.version>
  61. <mvn-compiler.version>3.13.0</mvn-compiler.version>
  62. <mvn-resources.version>3.3.1</mvn-resources.version>
  63. <mvn-dependency.version>3.7.1</mvn-dependency.version>
  64. <mvn-surefire.version>3.4.0</mvn-surefire.version>
  65. <mvn-jar.version>3.4.2</mvn-jar.version>
  66. </properties>
  67. <dependencies>
  68. <!-- Cryptomator Libs -->
  69. <dependency>
  70. <groupId>org.cryptomator</groupId>
  71. <artifactId>cryptolib</artifactId>
  72. <version>2.2.0</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.cryptomator</groupId>
  76. <artifactId>cryptofs</artifactId>
  77. <version>${cryptomator.cryptofs.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.cryptomator</groupId>
  81. <artifactId>fuse-nio-adapter</artifactId>
  82. <version>${cryptomator.fuse.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.cryptomator</groupId>
  86. <artifactId>webdav-nio-adapter</artifactId>
  87. <version>${cryptomator.webdav.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.cryptomator</groupId>
  91. <artifactId>integrations-api</artifactId>
  92. <version>${cryptomator.integrations.version}</version>
  93. </dependency>
  94. <!-- JavaFX -->
  95. <dependency>
  96. <groupId>org.openjfx</groupId>
  97. <artifactId>javafx-base</artifactId>
  98. <version>${javafx.version}</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.openjfx</groupId>
  102. <artifactId>javafx-graphics</artifactId>
  103. <version>${javafx.version}</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.openjfx</groupId>
  107. <artifactId>javafx-controls</artifactId>
  108. <version>${javafx.version}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.openjfx</groupId>
  112. <artifactId>javafx-fxml</artifactId>
  113. <version>${javafx.version}</version>
  114. </dependency>
  115. <!-- Logging -->
  116. <dependency>
  117. <groupId>org.slf4j</groupId>
  118. <artifactId>slf4j-api</artifactId>
  119. <version>${slf4j.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>ch.qos.logback</groupId>
  123. <artifactId>logback-core</artifactId>
  124. <version>${logback.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>ch.qos.logback</groupId>
  128. <artifactId>logback-classic</artifactId>
  129. <version>${logback.version}</version>
  130. </dependency>
  131. <!-- Apache Commons -->
  132. <dependency>
  133. <groupId>org.apache.commons</groupId>
  134. <artifactId>commons-lang3</artifactId>
  135. <version>${commons-lang3.version}</version>
  136. </dependency>
  137. <!-- OAuth/JWT -->
  138. <dependency>
  139. <groupId>io.github.coffeelibs</groupId>
  140. <artifactId>tiny-oauth2-client</artifactId>
  141. <version>${tinyoauth2.version}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>com.auth0</groupId>
  145. <artifactId>java-jwt</artifactId>
  146. <version>${jwt.version}</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>com.nimbusds</groupId>
  150. <artifactId>nimbus-jose-jwt</artifactId>
  151. <version>${nimbus-jose.version}</version>
  152. </dependency>
  153. <!-- Jackson -->
  154. <dependency>
  155. <groupId>com.fasterxml.jackson.core</groupId>
  156. <artifactId>jackson-databind</artifactId>
  157. <version>${jackson.version}</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>com.fasterxml.jackson.datatype</groupId>
  161. <artifactId>jackson-datatype-jsr310</artifactId>
  162. <version>${jackson.version}</version>
  163. </dependency>
  164. <!-- EasyBind -->
  165. <dependency>
  166. <groupId>com.tobiasdiez</groupId>
  167. <artifactId>easybind</artifactId>
  168. <version>${easybind.version}</version>
  169. </dependency>
  170. <!-- Zxcvbn -->
  171. <dependency>
  172. <groupId>com.nulab-inc</groupId>
  173. <artifactId>zxcvbn</artifactId>
  174. <version>${zxcvbn.version}</version>
  175. </dependency>
  176. <!-- Google -->
  177. <dependency>
  178. <groupId>com.google.guava</groupId>
  179. <artifactId>guava</artifactId>
  180. <version>${guava.version}</version>
  181. <exclusions>
  182. <!-- see https://github.com/google/guava/wiki/UseGuavaInYourBuild#what-about-guavas-own-dependencies -->
  183. <exclusion>
  184. <groupId>com.google.guava</groupId>
  185. <artifactId>listenablefuture</artifactId>
  186. </exclusion>
  187. <exclusion>
  188. <groupId>com.google.code.findbugs</groupId>
  189. <artifactId>jsr305</artifactId>
  190. </exclusion>
  191. <exclusion>
  192. <groupId>org.checkerframework</groupId>
  193. <artifactId>checker-qual</artifactId>
  194. </exclusion>
  195. <exclusion>
  196. <groupId>com.google.errorprone</groupId>
  197. <artifactId>error_prone_annotations</artifactId>
  198. </exclusion>
  199. <exclusion>
  200. <groupId>com.google.j2objc</groupId>
  201. <artifactId>j2objc-annotations</artifactId>
  202. </exclusion>
  203. </exclusions>
  204. </dependency>
  205. <dependency>
  206. <groupId>com.google.dagger</groupId>
  207. <artifactId>dagger</artifactId>
  208. <version>${dagger.version}</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. <arg>--enable-preview</arg>
  310. </compilerArgs>
  311. </configuration>
  312. </plugin>
  313. <plugin>
  314. <groupId>org.apache.maven.plugins</groupId>
  315. <artifactId>maven-jar-plugin</artifactId>
  316. <configuration>
  317. <archive>
  318. <manifest>
  319. <!-- adds Implementation-Version which can be read during runtime -->
  320. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  321. </manifest>
  322. </archive>
  323. </configuration>
  324. </plugin>
  325. <plugin>
  326. <groupId>org.apache.maven.plugins</groupId>
  327. <artifactId>maven-surefire-plugin</artifactId>
  328. <dependencies>
  329. <dependency>
  330. <groupId>me.fabriciorby</groupId>
  331. <artifactId>maven-surefire-junit5-tree-reporter</artifactId>
  332. <version>${junit-tree-reporter.version}</version>
  333. </dependency>
  334. </dependencies>
  335. <configuration>
  336. <argLine>--enable-preview</argLine>
  337. <reportFormat>plain</reportFormat>
  338. <consoleOutputReporter>
  339. <disable>true</disable>
  340. </consoleOutputReporter>
  341. <statelessTestsetInfoReporter
  342. implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter">
  343. </statelessTestsetInfoReporter>
  344. </configuration>
  345. </plugin>
  346. <plugin>
  347. <groupId>org.apache.maven.plugins</groupId>
  348. <artifactId>maven-dependency-plugin</artifactId>
  349. <executions>
  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. </execution>
  422. <execution>
  423. <id>report</id>
  424. <goals>
  425. <goal>report</goal>
  426. </goals>
  427. </execution>
  428. </executions>
  429. <configuration>
  430. <excludes>
  431. <exclude>**/*_*</exclude>
  432. <exclude>**/Dagger*</exclude>
  433. </excludes>
  434. </configuration>
  435. </plugin>
  436. </plugins>
  437. </build>
  438. </profile>
  439. <profile>
  440. <id>dependency-check</id>
  441. <build>
  442. <plugins>
  443. <plugin>
  444. <groupId>org.owasp</groupId>
  445. <artifactId>dependency-check-maven</artifactId>
  446. <configuration>
  447. <nvdValidForHours>24</nvdValidForHours>
  448. <failBuildOnCVSS>0</failBuildOnCVSS>
  449. <skipTestScope>true</skipTestScope>
  450. <detail>true</detail>
  451. <suppressionFile>suppression.xml</suppressionFile>
  452. <nvdApiKeyEnvironmentVariable>NVD_API_KEY</nvdApiKeyEnvironmentVariable>
  453. </configuration>
  454. <executions>
  455. <execution>
  456. <goals>
  457. <goal>check</goal>
  458. </goals>
  459. <phase>validate</phase>
  460. </execution>
  461. </executions>
  462. </plugin>
  463. </plugins>
  464. </build>
  465. </profile>
  466. <profile>
  467. <id>mac</id>
  468. <activation>
  469. <os>
  470. <family>mac</family>
  471. </os>
  472. <property>
  473. <name>idea.version</name>
  474. </property>
  475. </activation>
  476. <dependencies>
  477. <dependency>
  478. <groupId>org.cryptomator</groupId>
  479. <artifactId>integrations-mac</artifactId>
  480. <version>${cryptomator.integrations.mac.version}</version>
  481. </dependency>
  482. </dependencies>
  483. </profile>
  484. <profile>
  485. <id>linux</id>
  486. <activation>
  487. <os>
  488. <family>unix</family>
  489. <name>Linux</name>
  490. </os>
  491. <property>
  492. <name>idea.version</name>
  493. </property>
  494. </activation>
  495. <dependencies>
  496. <dependency>
  497. <groupId>org.cryptomator</groupId>
  498. <artifactId>integrations-linux</artifactId>
  499. <version>${cryptomator.integrations.linux.version}</version>
  500. </dependency>
  501. </dependencies>
  502. </profile>
  503. <profile>
  504. <id>win</id>
  505. <activation>
  506. <os>
  507. <family>windows</family>
  508. </os>
  509. <property>
  510. <name>idea.version</name>
  511. </property>
  512. </activation>
  513. <dependencies>
  514. <dependency>
  515. <groupId>org.cryptomator</groupId>
  516. <artifactId>integrations-win</artifactId>
  517. <version>${cryptomator.integrations.win.version}</version>
  518. </dependency>
  519. </dependencies>
  520. </profile>
  521. </profiles>
  522. </project>