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