pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  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.9.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>20</project.jdk.version>
  27. <!-- Group IDs of jars that need to stay on the class path for now -->
  28. <!-- Once hypfvieh, swiesend, purejava and integrations-linux have module-info, remove them-->
  29. <nonModularGroupIds>org.ow2.asm,org.apache.jackrabbit,org.apache.httpcomponents,de.swiesend,org.purejava,com.github.hypfvieh</nonModularGroupIds>
  30. <!-- cryptomator dependencies -->
  31. <cryptomator.cryptofs.version>2.6.2</cryptomator.cryptofs.version>
  32. <cryptomator.integrations.version>2.0.0-alpha1</cryptomator.integrations.version>
  33. <cryptomator.integrations.win.version>1.2.0</cryptomator.integrations.win.version>
  34. <cryptomator.integrations.mac.version>1.2.0</cryptomator.integrations.mac.version>
  35. <cryptomator.integrations.linux.version>2.0.0-alpha1</cryptomator.integrations.linux.version>
  36. <cryptomator.fuse.version>2.0.5</cryptomator.fuse.version>
  37. <cryptomator.dokany.version>2.0.0</cryptomator.dokany.version>
  38. <cryptomator.webdav.version>2.0.2</cryptomator.webdav.version>
  39. <!-- 3rd party dependencies -->
  40. <commons-lang3.version>3.12.0</commons-lang3.version>
  41. <dagger.version>2.45</dagger.version>
  42. <easybind.version>2.2</easybind.version>
  43. <guava.version>31.1-jre</guava.version>
  44. <gson.version>2.10.1</gson.version>
  45. <javafx.version>20.0.1</javafx.version>
  46. <jwt.version>4.3.0</jwt.version>
  47. <nimbus-jose.version>9.31</nimbus-jose.version>
  48. <logback.version>1.4.5</logback.version>
  49. <slf4j.version>2.0.6</slf4j.version>
  50. <tinyoauth2.version>0.5.1</tinyoauth2.version>
  51. <zxcvbn.version>1.7.0</zxcvbn.version>
  52. <!-- test dependencies -->
  53. <junit.jupiter.version>5.9.2</junit.jupiter.version>
  54. <mockito.version>5.1.1</mockito.version>
  55. <hamcrest.version>2.2</hamcrest.version>
  56. <!-- build-time dependencies -->
  57. <jetbrains.annotations.version>23.0.0</jetbrains.annotations.version>
  58. <dependency-check.version>8.1.0</dependency-check.version>
  59. <jacoco.version>0.8.8</jacoco.version>
  60. </properties>
  61. <dependencies>
  62. <!-- Cryptomator Libs -->
  63. <dependency>
  64. <groupId>org.cryptomator</groupId>
  65. <artifactId>cryptofs</artifactId>
  66. <version>${cryptomator.cryptofs.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.cryptomator</groupId>
  70. <artifactId>fuse-nio-adapter</artifactId>
  71. <version>${cryptomator.fuse.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.cryptomator</groupId>
  75. <artifactId>dokany-nio-adapter</artifactId>
  76. <version>${cryptomator.dokany.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.cryptomator</groupId>
  80. <artifactId>webdav-nio-adapter</artifactId>
  81. <version>${cryptomator.webdav.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.cryptomator</groupId>
  85. <artifactId>integrations-api</artifactId>
  86. <version>${cryptomator.integrations.version}</version>
  87. </dependency>
  88. <!-- JavaFX -->
  89. <dependency>
  90. <groupId>org.openjfx</groupId>
  91. <artifactId>javafx-base</artifactId>
  92. <version>${javafx.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.openjfx</groupId>
  96. <artifactId>javafx-graphics</artifactId>
  97. <version>${javafx.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.openjfx</groupId>
  101. <artifactId>javafx-controls</artifactId>
  102. <version>${javafx.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.openjfx</groupId>
  106. <artifactId>javafx-fxml</artifactId>
  107. <version>${javafx.version}</version>
  108. </dependency>
  109. <!-- Logging -->
  110. <dependency>
  111. <groupId>org.slf4j</groupId>
  112. <artifactId>slf4j-api</artifactId>
  113. <version>${slf4j.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>ch.qos.logback</groupId>
  117. <artifactId>logback-core</artifactId>
  118. <version>${logback.version}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>ch.qos.logback</groupId>
  122. <artifactId>logback-classic</artifactId>
  123. <version>${logback.version}</version>
  124. </dependency>
  125. <!-- Apache Commons -->
  126. <dependency>
  127. <groupId>org.apache.commons</groupId>
  128. <artifactId>commons-lang3</artifactId>
  129. <version>${commons-lang3.version}</version>
  130. </dependency>
  131. <!-- OAuth/JWT -->
  132. <dependency>
  133. <groupId>io.github.coffeelibs</groupId>
  134. <artifactId>tiny-oauth2-client</artifactId>
  135. <version>${tinyoauth2.version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>com.auth0</groupId>
  139. <artifactId>java-jwt</artifactId>
  140. <version>${jwt.version}</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>com.nimbusds</groupId>
  144. <artifactId>nimbus-jose-jwt</artifactId>
  145. <version>${nimbus-jose.version}</version>
  146. </dependency>
  147. <!-- EasyBind -->
  148. <dependency>
  149. <groupId>com.tobiasdiez</groupId>
  150. <artifactId>easybind</artifactId>
  151. <version>${easybind.version}</version>
  152. </dependency>
  153. <!-- Zxcvbn -->
  154. <dependency>
  155. <groupId>com.nulab-inc</groupId>
  156. <artifactId>zxcvbn</artifactId>
  157. <version>${zxcvbn.version}</version>
  158. </dependency>
  159. <!-- Google -->
  160. <dependency>
  161. <groupId>com.google.guava</groupId>
  162. <artifactId>guava</artifactId>
  163. <version>${guava.version}</version>
  164. <exclusions>
  165. <!-- see https://github.com/google/guava/wiki/UseGuavaInYourBuild#what-about-guavas-own-dependencies -->
  166. <exclusion>
  167. <groupId>com.google.guava</groupId>
  168. <artifactId>listenablefuture</artifactId>
  169. </exclusion>
  170. <exclusion>
  171. <groupId>com.google.code.findbugs</groupId>
  172. <artifactId>jsr305</artifactId>
  173. </exclusion>
  174. <exclusion>
  175. <groupId>org.checkerframework</groupId>
  176. <artifactId>checker-qual</artifactId>
  177. </exclusion>
  178. <exclusion>
  179. <groupId>com.google.errorprone</groupId>
  180. <artifactId>error_prone_annotations</artifactId>
  181. </exclusion>
  182. <exclusion>
  183. <groupId>com.google.j2objc</groupId>
  184. <artifactId>j2objc-annotations</artifactId>
  185. </exclusion>
  186. </exclusions>
  187. </dependency>
  188. <dependency>
  189. <groupId>com.google.dagger</groupId>
  190. <artifactId>dagger</artifactId>
  191. <version>${dagger.version}</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>com.google.code.gson</groupId>
  195. <artifactId>gson</artifactId>
  196. <version>${gson.version}</version>
  197. </dependency>
  198. <!-- JUnit / Mockito / Hamcrest -->
  199. <dependency>
  200. <groupId>org.junit.jupiter</groupId>
  201. <artifactId>junit-jupiter</artifactId>
  202. <version>${junit.jupiter.version}</version>
  203. <scope>test</scope>
  204. </dependency>
  205. <dependency>
  206. <groupId>org.mockito</groupId>
  207. <artifactId>mockito-core</artifactId>
  208. <version>${mockito.version}</version>
  209. <scope>test</scope>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.hamcrest</groupId>
  213. <artifactId>hamcrest</artifactId>
  214. <version>${hamcrest.version}</version>
  215. <scope>test</scope>
  216. </dependency>
  217. <dependency>
  218. <groupId>org.openjfx</groupId>
  219. <artifactId>javafx-swing</artifactId>
  220. <version>${javafx.version}</version>
  221. <scope>test</scope>
  222. </dependency>
  223. <dependency>
  224. <groupId>com.google.jimfs</groupId>
  225. <artifactId>jimfs</artifactId>
  226. <version>1.2</version>
  227. <scope>test</scope>
  228. </dependency>
  229. <dependency>
  230. <groupId>org.jetbrains</groupId>
  231. <artifactId>annotations</artifactId>
  232. <version>${jetbrains.annotations.version}</version>
  233. <scope>provided</scope>
  234. </dependency>
  235. </dependencies>
  236. <build>
  237. <pluginManagement>
  238. <plugins>
  239. <plugin>
  240. <groupId>org.apache.maven.plugins</groupId>
  241. <artifactId>maven-compiler-plugin</artifactId>
  242. <version>3.10.1</version>
  243. </plugin>
  244. <plugin>
  245. <groupId>org.apache.maven.plugins</groupId>
  246. <artifactId>maven-resources-plugin</artifactId>
  247. <version>3.3.0</version>
  248. </plugin>
  249. <plugin>
  250. <groupId>org.apache.maven.plugins</groupId>
  251. <artifactId>maven-dependency-plugin</artifactId>
  252. <version>3.3.0</version>
  253. </plugin>
  254. <plugin>
  255. <groupId>org.apache.maven.plugins</groupId>
  256. <artifactId>maven-surefire-plugin</artifactId>
  257. <version>3.0.0-M7</version>
  258. </plugin>
  259. <plugin>
  260. <groupId>org.codehaus.mojo</groupId>
  261. <artifactId>license-maven-plugin</artifactId>
  262. <version>2.0.0</version>
  263. </plugin>
  264. <plugin>
  265. <groupId>org.apache.maven.plugins</groupId>
  266. <artifactId>maven-jar-plugin</artifactId>
  267. <version>3.3.0</version>
  268. </plugin>
  269. <plugin>
  270. <groupId>org.jacoco</groupId>
  271. <artifactId>jacoco-maven-plugin</artifactId>
  272. <version>${jacoco.version}</version>
  273. </plugin>
  274. <plugin>
  275. <groupId>org.owasp</groupId>
  276. <artifactId>dependency-check-maven</artifactId>
  277. <version>${dependency-check.version}</version>
  278. </plugin>
  279. </plugins>
  280. </pluginManagement>
  281. <plugins>
  282. <plugin>
  283. <groupId>org.apache.maven.plugins</groupId>
  284. <artifactId>maven-compiler-plugin</artifactId>
  285. <configuration>
  286. <release>${project.jdk.version}</release>
  287. <annotationProcessorPaths>
  288. <path>
  289. <groupId>com.google.dagger</groupId>
  290. <artifactId>dagger-compiler</artifactId>
  291. <version>${dagger.version}</version>
  292. </path>
  293. </annotationProcessorPaths>
  294. <compilerArgs>
  295. <arg>-Adagger.fastInit=enabled</arg>
  296. <arg>-Adagger.formatGeneratedSource=enabled</arg>
  297. <arg>--enable-preview</arg>
  298. </compilerArgs>
  299. </configuration>
  300. </plugin>
  301. <plugin>
  302. <groupId>org.apache.maven.plugins</groupId>
  303. <artifactId>maven-jar-plugin</artifactId>
  304. <configuration>
  305. <archive>
  306. <manifest>
  307. <!-- adds Implementation-Version which can be read during runtime -->
  308. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  309. </manifest>
  310. </archive>
  311. </configuration>
  312. </plugin>
  313. <plugin>
  314. <groupId>org.apache.maven.plugins</groupId>
  315. <artifactId>maven-surefire-plugin</artifactId>
  316. </plugin>
  317. <plugin>
  318. <groupId>org.apache.maven.plugins</groupId>
  319. <artifactId>maven-dependency-plugin</artifactId>
  320. <executions>
  321. <!-- sort jars into two buckets (classpath and modulepath). exclude openjfx, which gets jlinked separately -->
  322. <execution>
  323. <id>copy-mods</id>
  324. <phase>prepare-package</phase>
  325. <goals>
  326. <goal>copy-dependencies</goal>
  327. </goals>
  328. <configuration>
  329. <includeScope>runtime</includeScope>
  330. <outputDirectory>${project.build.directory}/mods</outputDirectory>
  331. <excludeGroupIds>org.openjfx,${nonModularGroupIds}</excludeGroupIds>
  332. </configuration>
  333. </execution>
  334. <execution>
  335. <id>copy-libs</id>
  336. <phase>prepare-package</phase>
  337. <goals>
  338. <goal>copy-dependencies</goal>
  339. </goals>
  340. <configuration>
  341. <includeScope>runtime</includeScope>
  342. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  343. <includeGroupIds>${nonModularGroupIds}</includeGroupIds>
  344. </configuration>
  345. </execution>
  346. </executions>
  347. </plugin>
  348. <plugin>
  349. <groupId>org.codehaus.mojo</groupId>
  350. <artifactId>license-maven-plugin</artifactId>
  351. <executions>
  352. <execution>
  353. <id>add-third-party</id>
  354. <goals>
  355. <goal>add-third-party</goal>
  356. </goals>
  357. <phase>generate-resources</phase>
  358. <configuration>
  359. <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
  360. <includedScopes>compile</includedScopes>
  361. <excludedGroups>org\.cryptomator</excludedGroups>
  362. <licenseMergesUrl>file:///${project.basedir}/license/merges</licenseMergesUrl>
  363. <fileTemplate>${project.basedir}/src/main/resources/license/template.ftl</fileTemplate>
  364. </configuration>
  365. </execution>
  366. </executions>
  367. </plugin>
  368. </plugins>
  369. <resources>
  370. <resource>
  371. <directory>src/main/resources</directory>
  372. <excludes>
  373. <exclude>license/*</exclude>
  374. </excludes>
  375. </resource>
  376. </resources>
  377. </build>
  378. <profiles>
  379. <profile>
  380. <id>coverage</id>
  381. <build>
  382. <plugins>
  383. <plugin>
  384. <groupId>org.jacoco</groupId>
  385. <artifactId>jacoco-maven-plugin</artifactId>
  386. <executions>
  387. <execution>
  388. <id>prepare-agent</id>
  389. <goals>
  390. <goal>prepare-agent</goal>
  391. </goals>
  392. </execution>
  393. <execution>
  394. <id>report</id>
  395. <goals>
  396. <goal>report</goal>
  397. </goals>
  398. </execution>
  399. </executions>
  400. <configuration>
  401. <excludes>
  402. <exclude>**/*_*</exclude>
  403. <exclude>**/Dagger*</exclude>
  404. </excludes>
  405. </configuration>
  406. </plugin>
  407. </plugins>
  408. </build>
  409. </profile>
  410. <profile>
  411. <id>dependency-check</id>
  412. <build>
  413. <plugins>
  414. <plugin>
  415. <groupId>org.owasp</groupId>
  416. <artifactId>dependency-check-maven</artifactId>
  417. <configuration>
  418. <cveValidForHours>24</cveValidForHours>
  419. <failBuildOnCVSS>0</failBuildOnCVSS>
  420. <skipTestScope>true</skipTestScope>
  421. <detail>true</detail>
  422. <suppressionFile>suppression.xml</suppressionFile>
  423. </configuration>
  424. <executions>
  425. <execution>
  426. <goals>
  427. <goal>check</goal>
  428. </goals>
  429. </execution>
  430. </executions>
  431. </plugin>
  432. </plugins>
  433. </build>
  434. </profile>
  435. <profile>
  436. <id>mac</id>
  437. <activation>
  438. <os>
  439. <family>mac</family>
  440. </os>
  441. <property>
  442. <name>idea.version</name>
  443. </property>
  444. </activation>
  445. <dependencies>
  446. <dependency>
  447. <groupId>org.cryptomator</groupId>
  448. <artifactId>integrations-mac</artifactId>
  449. <version>${cryptomator.integrations.mac.version}</version>
  450. </dependency>
  451. </dependencies>
  452. </profile>
  453. <profile>
  454. <id>linux</id>
  455. <activation>
  456. <os>
  457. <family>unix</family>
  458. <name>Linux</name>
  459. </os>
  460. <property>
  461. <name>idea.version</name>
  462. </property>
  463. </activation>
  464. <dependencies>
  465. <dependency>
  466. <groupId>org.cryptomator</groupId>
  467. <artifactId>integrations-linux</artifactId>
  468. <version>${cryptomator.integrations.linux.version}</version>
  469. </dependency>
  470. </dependencies>
  471. </profile>
  472. <profile>
  473. <id>win</id>
  474. <activation>
  475. <os>
  476. <family>windows</family>
  477. </os>
  478. <property>
  479. <name>idea.version</name>
  480. </property>
  481. </activation>
  482. <dependencies>
  483. <dependency>
  484. <groupId>org.cryptomator</groupId>
  485. <artifactId>integrations-win</artifactId>
  486. <version>${cryptomator.integrations.win.version}</version>
  487. </dependency>
  488. </dependencies>
  489. </profile>
  490. </profiles>
  491. </project>