pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  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.8.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>19</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.cryptolib.version>2.1.1</cryptomator.cryptolib.version>
  32. <cryptomator.cryptofs.version>2.6.1</cryptomator.cryptofs.version>
  33. <cryptomator.integrations.version>1.2.0</cryptomator.integrations.version>
  34. <cryptomator.integrations.win.version>1.2.0</cryptomator.integrations.win.version>
  35. <cryptomator.integrations.mac.version>1.2.0</cryptomator.integrations.mac.version>
  36. <cryptomator.integrations.linux.version>1.2.0</cryptomator.integrations.linux.version>
  37. <cryptomator.fuse.version>2.0.3</cryptomator.fuse.version>
  38. <cryptomator.dokany.version>2.0.0</cryptomator.dokany.version>
  39. <cryptomator.webdav.version>2.0.2</cryptomator.webdav.version>
  40. <!-- 3rd party dependencies -->
  41. <commons-lang3.version>3.12.0</commons-lang3.version>
  42. <dagger.version>2.45</dagger.version>
  43. <easybind.version>2.2</easybind.version>
  44. <guava.version>31.1-jre</guava.version>
  45. <gson.version>2.10.1</gson.version>
  46. <javafx.version>19.0.2.1</javafx.version>
  47. <jwt.version>4.3.0</jwt.version>
  48. <nimbus-jose.version>9.31</nimbus-jose.version>
  49. <logback.version>1.4.5</logback.version>
  50. <slf4j.version>2.0.6</slf4j.version>
  51. <tinyoauth2.version>0.5.1</tinyoauth2.version>
  52. <zxcvbn.version>1.7.0</zxcvbn.version>
  53. <!-- test dependencies -->
  54. <junit.jupiter.version>5.9.2</junit.jupiter.version>
  55. <mockito.version>5.1.1</mockito.version>
  56. <hamcrest.version>2.2</hamcrest.version>
  57. <!-- build-time dependencies -->
  58. <jetbrains.annotations.version>23.0.0</jetbrains.annotations.version>
  59. <dependency-check.version>8.1.0</dependency-check.version>
  60. <jacoco.version>0.8.8</jacoco.version>
  61. </properties>
  62. <dependencies>
  63. <!-- Cryptomator Libs -->
  64. <dependency>
  65. <!-- needed due to https://github.com/cryptomator/cryptolib/issues/34 -->
  66. <groupId>org.cryptomator</groupId>
  67. <artifactId>cryptolib</artifactId>
  68. <version>${cryptomator.cryptolib.version}</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.cryptomator</groupId>
  72. <artifactId>cryptofs</artifactId>
  73. <version>${cryptomator.cryptofs.version}</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.cryptomator</groupId>
  77. <artifactId>fuse-nio-adapter</artifactId>
  78. <version>${cryptomator.fuse.version}</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.cryptomator</groupId>
  82. <artifactId>dokany-nio-adapter</artifactId>
  83. <version>${cryptomator.dokany.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. <!-- EasyBind -->
  155. <dependency>
  156. <groupId>com.tobiasdiez</groupId>
  157. <artifactId>easybind</artifactId>
  158. <version>${easybind.version}</version>
  159. </dependency>
  160. <!-- Zxcvbn -->
  161. <dependency>
  162. <groupId>com.nulab-inc</groupId>
  163. <artifactId>zxcvbn</artifactId>
  164. <version>${zxcvbn.version}</version>
  165. </dependency>
  166. <!-- Google -->
  167. <dependency>
  168. <groupId>com.google.guava</groupId>
  169. <artifactId>guava</artifactId>
  170. <version>${guava.version}</version>
  171. <exclusions>
  172. <!-- see https://github.com/google/guava/wiki/UseGuavaInYourBuild#what-about-guavas-own-dependencies -->
  173. <exclusion>
  174. <groupId>com.google.guava</groupId>
  175. <artifactId>listenablefuture</artifactId>
  176. </exclusion>
  177. <exclusion>
  178. <groupId>com.google.code.findbugs</groupId>
  179. <artifactId>jsr305</artifactId>
  180. </exclusion>
  181. <exclusion>
  182. <groupId>org.checkerframework</groupId>
  183. <artifactId>checker-qual</artifactId>
  184. </exclusion>
  185. <exclusion>
  186. <groupId>com.google.errorprone</groupId>
  187. <artifactId>error_prone_annotations</artifactId>
  188. </exclusion>
  189. <exclusion>
  190. <groupId>com.google.j2objc</groupId>
  191. <artifactId>j2objc-annotations</artifactId>
  192. </exclusion>
  193. </exclusions>
  194. </dependency>
  195. <dependency>
  196. <groupId>com.google.dagger</groupId>
  197. <artifactId>dagger</artifactId>
  198. <version>${dagger.version}</version>
  199. </dependency>
  200. <dependency>
  201. <groupId>com.google.code.gson</groupId>
  202. <artifactId>gson</artifactId>
  203. <version>${gson.version}</version>
  204. </dependency>
  205. <!-- JUnit / Mockito / Hamcrest -->
  206. <dependency>
  207. <groupId>org.junit.jupiter</groupId>
  208. <artifactId>junit-jupiter</artifactId>
  209. <version>${junit.jupiter.version}</version>
  210. <scope>test</scope>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.mockito</groupId>
  214. <artifactId>mockito-core</artifactId>
  215. <version>${mockito.version}</version>
  216. <scope>test</scope>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.hamcrest</groupId>
  220. <artifactId>hamcrest</artifactId>
  221. <version>${hamcrest.version}</version>
  222. <scope>test</scope>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.openjfx</groupId>
  226. <artifactId>javafx-swing</artifactId>
  227. <version>${javafx.version}</version>
  228. <scope>test</scope>
  229. </dependency>
  230. <dependency>
  231. <groupId>com.google.jimfs</groupId>
  232. <artifactId>jimfs</artifactId>
  233. <version>1.2</version>
  234. <scope>test</scope>
  235. </dependency>
  236. <dependency>
  237. <groupId>org.jetbrains</groupId>
  238. <artifactId>annotations</artifactId>
  239. <version>${jetbrains.annotations.version}</version>
  240. <scope>provided</scope>
  241. </dependency>
  242. </dependencies>
  243. <build>
  244. <pluginManagement>
  245. <plugins>
  246. <plugin>
  247. <groupId>org.apache.maven.plugins</groupId>
  248. <artifactId>maven-compiler-plugin</artifactId>
  249. <version>3.10.1</version>
  250. </plugin>
  251. <plugin>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-resources-plugin</artifactId>
  254. <version>3.3.0</version>
  255. </plugin>
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-dependency-plugin</artifactId>
  259. <version>3.3.0</version>
  260. </plugin>
  261. <plugin>
  262. <groupId>org.apache.maven.plugins</groupId>
  263. <artifactId>maven-surefire-plugin</artifactId>
  264. <version>3.0.0-M7</version>
  265. </plugin>
  266. <plugin>
  267. <groupId>org.codehaus.mojo</groupId>
  268. <artifactId>license-maven-plugin</artifactId>
  269. <version>2.0.0</version>
  270. </plugin>
  271. <plugin>
  272. <groupId>org.apache.maven.plugins</groupId>
  273. <artifactId>maven-jar-plugin</artifactId>
  274. <version>3.3.0</version>
  275. </plugin>
  276. <plugin>
  277. <groupId>org.jacoco</groupId>
  278. <artifactId>jacoco-maven-plugin</artifactId>
  279. <version>${jacoco.version}</version>
  280. </plugin>
  281. <plugin>
  282. <groupId>org.owasp</groupId>
  283. <artifactId>dependency-check-maven</artifactId>
  284. <version>${dependency-check.version}</version>
  285. </plugin>
  286. </plugins>
  287. </pluginManagement>
  288. <plugins>
  289. <plugin>
  290. <groupId>org.apache.maven.plugins</groupId>
  291. <artifactId>maven-compiler-plugin</artifactId>
  292. <configuration>
  293. <release>${project.jdk.version}</release>
  294. <annotationProcessorPaths>
  295. <path>
  296. <groupId>com.google.dagger</groupId>
  297. <artifactId>dagger-compiler</artifactId>
  298. <version>${dagger.version}</version>
  299. </path>
  300. </annotationProcessorPaths>
  301. <compilerArgs>
  302. <arg>-Adagger.fastInit=enabled</arg>
  303. <arg>-Adagger.formatGeneratedSource=enabled</arg>
  304. <arg>--enable-preview</arg>
  305. </compilerArgs>
  306. </configuration>
  307. </plugin>
  308. <plugin>
  309. <groupId>org.codehaus.mojo</groupId>
  310. <artifactId>exec-maven-plugin</artifactId>
  311. <version>3.1.0</version>
  312. <executions>
  313. <execution>
  314. <id>compile-light-theme</id>
  315. <phase>compile</phase>
  316. <goals>
  317. <goal>java</goal>
  318. </goals>
  319. <configuration>
  320. <mainClass>javafx.graphics/com.sun.javafx.css.parser.Css2Bin</mainClass>
  321. <arguments>
  322. <arg>${project.basedir}/src/main/resources/css/light_theme.css</arg>
  323. <arg>${project.build.outputDirectory}/css/light_theme.bss</arg>
  324. </arguments>
  325. </configuration>
  326. </execution>
  327. <execution>
  328. <id>compile-dark-theme</id>
  329. <phase>compile</phase>
  330. <goals>
  331. <goal>java</goal>
  332. </goals>
  333. <configuration>
  334. <mainClass>javafx.graphics/com.sun.javafx.css.parser.Css2Bin</mainClass>
  335. <arguments>
  336. <arg>${project.basedir}/src/main/resources/css/dark_theme.css</arg>
  337. <arg>${project.build.outputDirectory}/css/dark_theme.bss</arg>
  338. </arguments>
  339. </configuration>
  340. </execution>
  341. </executions>
  342. </plugin>
  343. <plugin>
  344. <groupId>org.apache.maven.plugins</groupId>
  345. <artifactId>maven-jar-plugin</artifactId>
  346. <configuration>
  347. <archive>
  348. <manifest>
  349. <!-- adds Implementation-Version which can be read during runtime -->
  350. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  351. </manifest>
  352. </archive>
  353. </configuration>
  354. </plugin>
  355. <plugin>
  356. <groupId>org.apache.maven.plugins</groupId>
  357. <artifactId>maven-surefire-plugin</artifactId>
  358. </plugin>
  359. <plugin>
  360. <groupId>org.apache.maven.plugins</groupId>
  361. <artifactId>maven-dependency-plugin</artifactId>
  362. <executions>
  363. <!-- sort jars into two buckets (classpath and modulepath). exclude openjfx, which gets jlinked separately -->
  364. <execution>
  365. <id>copy-mods</id>
  366. <phase>prepare-package</phase>
  367. <goals>
  368. <goal>copy-dependencies</goal>
  369. </goals>
  370. <configuration>
  371. <includeScope>runtime</includeScope>
  372. <outputDirectory>${project.build.directory}/mods</outputDirectory>
  373. <excludeGroupIds>org.openjfx,${nonModularGroupIds}</excludeGroupIds>
  374. </configuration>
  375. </execution>
  376. <execution>
  377. <id>copy-libs</id>
  378. <phase>prepare-package</phase>
  379. <goals>
  380. <goal>copy-dependencies</goal>
  381. </goals>
  382. <configuration>
  383. <includeScope>runtime</includeScope>
  384. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  385. <includeGroupIds>${nonModularGroupIds}</includeGroupIds>
  386. </configuration>
  387. </execution>
  388. </executions>
  389. </plugin>
  390. <plugin>
  391. <groupId>org.codehaus.mojo</groupId>
  392. <artifactId>license-maven-plugin</artifactId>
  393. <executions>
  394. <execution>
  395. <id>add-third-party</id>
  396. <goals>
  397. <goal>add-third-party</goal>
  398. </goals>
  399. <phase>generate-resources</phase>
  400. <configuration>
  401. <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
  402. <includedScopes>compile</includedScopes>
  403. <excludedGroups>org\.cryptomator</excludedGroups>
  404. <licenseMergesUrl>file:///${project.basedir}/license/merges</licenseMergesUrl>
  405. <fileTemplate>${project.basedir}/src/main/resources/license/template.ftl</fileTemplate>
  406. </configuration>
  407. </execution>
  408. </executions>
  409. </plugin>
  410. </plugins>
  411. <resources>
  412. <resource>
  413. <directory>src/main/resources</directory>
  414. <excludes>
  415. <exclude>license/*</exclude>
  416. </excludes>
  417. </resource>
  418. </resources>
  419. </build>
  420. <profiles>
  421. <profile>
  422. <id>coverage</id>
  423. <build>
  424. <plugins>
  425. <plugin>
  426. <groupId>org.jacoco</groupId>
  427. <artifactId>jacoco-maven-plugin</artifactId>
  428. <executions>
  429. <execution>
  430. <id>prepare-agent</id>
  431. <goals>
  432. <goal>prepare-agent</goal>
  433. </goals>
  434. </execution>
  435. <execution>
  436. <id>report</id>
  437. <goals>
  438. <goal>report</goal>
  439. </goals>
  440. </execution>
  441. </executions>
  442. <configuration>
  443. <excludes>
  444. <exclude>**/*_*</exclude>
  445. <exclude>**/Dagger*</exclude>
  446. </excludes>
  447. </configuration>
  448. </plugin>
  449. </plugins>
  450. </build>
  451. </profile>
  452. <profile>
  453. <id>dependency-check</id>
  454. <build>
  455. <plugins>
  456. <plugin>
  457. <groupId>org.owasp</groupId>
  458. <artifactId>dependency-check-maven</artifactId>
  459. <configuration>
  460. <cveValidForHours>24</cveValidForHours>
  461. <failBuildOnCVSS>0</failBuildOnCVSS>
  462. <skipTestScope>true</skipTestScope>
  463. <detail>true</detail>
  464. <suppressionFile>suppression.xml</suppressionFile>
  465. </configuration>
  466. <executions>
  467. <execution>
  468. <goals>
  469. <goal>check</goal>
  470. </goals>
  471. </execution>
  472. </executions>
  473. </plugin>
  474. </plugins>
  475. </build>
  476. </profile>
  477. <profile>
  478. <id>mac</id>
  479. <activation>
  480. <os>
  481. <family>mac</family>
  482. </os>
  483. <property>
  484. <name>idea.version</name>
  485. </property>
  486. </activation>
  487. <dependencies>
  488. <dependency>
  489. <groupId>org.cryptomator</groupId>
  490. <artifactId>integrations-mac</artifactId>
  491. <version>${cryptomator.integrations.mac.version}</version>
  492. </dependency>
  493. </dependencies>
  494. </profile>
  495. <profile>
  496. <id>linux</id>
  497. <activation>
  498. <os>
  499. <family>unix</family>
  500. <name>Linux</name>
  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-linux</artifactId>
  510. <version>${cryptomator.integrations.linux.version}</version>
  511. </dependency>
  512. </dependencies>
  513. </profile>
  514. <profile>
  515. <id>win</id>
  516. <activation>
  517. <os>
  518. <family>windows</family>
  519. </os>
  520. <property>
  521. <name>idea.version</name>
  522. </property>
  523. </activation>
  524. <dependencies>
  525. <dependency>
  526. <groupId>org.cryptomator</groupId>
  527. <artifactId>integrations-win</artifactId>
  528. <version>${cryptomator.integrations.win.version}</version>
  529. </dependency>
  530. </dependencies>
  531. </profile>
  532. </profiles>
  533. </project>