pom.xml 15 KB

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