pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  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.cryptofs.version>2.6.2</cryptomator.cryptofs.version>
  32. <cryptomator.integrations.version>1.2.0</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>1.2.0</cryptomator.integrations.linux.version>
  36. <cryptomator.fuse.version>2.0.4</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>19.0.2.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.codehaus.mojo</groupId>
  303. <artifactId>exec-maven-plugin</artifactId>
  304. <version>3.1.0</version>
  305. <executions>
  306. <execution>
  307. <id>compile-light-theme</id>
  308. <phase>compile</phase>
  309. <goals>
  310. <goal>java</goal>
  311. </goals>
  312. <configuration>
  313. <mainClass>javafx.graphics/com.sun.javafx.css.parser.Css2Bin</mainClass>
  314. <arguments>
  315. <arg>${project.basedir}/src/main/resources/css/light_theme.css</arg>
  316. <arg>${project.build.outputDirectory}/css/light_theme.bss</arg>
  317. </arguments>
  318. </configuration>
  319. </execution>
  320. <execution>
  321. <id>compile-dark-theme</id>
  322. <phase>compile</phase>
  323. <goals>
  324. <goal>java</goal>
  325. </goals>
  326. <configuration>
  327. <mainClass>javafx.graphics/com.sun.javafx.css.parser.Css2Bin</mainClass>
  328. <arguments>
  329. <arg>${project.basedir}/src/main/resources/css/dark_theme.css</arg>
  330. <arg>${project.build.outputDirectory}/css/dark_theme.bss</arg>
  331. </arguments>
  332. </configuration>
  333. </execution>
  334. </executions>
  335. </plugin>
  336. <plugin>
  337. <groupId>org.apache.maven.plugins</groupId>
  338. <artifactId>maven-jar-plugin</artifactId>
  339. <configuration>
  340. <archive>
  341. <manifest>
  342. <!-- adds Implementation-Version which can be read during runtime -->
  343. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  344. </manifest>
  345. </archive>
  346. </configuration>
  347. </plugin>
  348. <plugin>
  349. <groupId>org.apache.maven.plugins</groupId>
  350. <artifactId>maven-surefire-plugin</artifactId>
  351. </plugin>
  352. <plugin>
  353. <groupId>org.apache.maven.plugins</groupId>
  354. <artifactId>maven-dependency-plugin</artifactId>
  355. <executions>
  356. <!-- sort jars into two buckets (classpath and modulepath). exclude openjfx, which gets jlinked separately -->
  357. <execution>
  358. <id>copy-mods</id>
  359. <phase>prepare-package</phase>
  360. <goals>
  361. <goal>copy-dependencies</goal>
  362. </goals>
  363. <configuration>
  364. <includeScope>runtime</includeScope>
  365. <outputDirectory>${project.build.directory}/mods</outputDirectory>
  366. <excludeGroupIds>org.openjfx,${nonModularGroupIds}</excludeGroupIds>
  367. </configuration>
  368. </execution>
  369. <execution>
  370. <id>copy-libs</id>
  371. <phase>prepare-package</phase>
  372. <goals>
  373. <goal>copy-dependencies</goal>
  374. </goals>
  375. <configuration>
  376. <includeScope>runtime</includeScope>
  377. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  378. <includeGroupIds>${nonModularGroupIds}</includeGroupIds>
  379. </configuration>
  380. </execution>
  381. </executions>
  382. </plugin>
  383. <plugin>
  384. <groupId>org.codehaus.mojo</groupId>
  385. <artifactId>license-maven-plugin</artifactId>
  386. <executions>
  387. <execution>
  388. <id>add-third-party</id>
  389. <goals>
  390. <goal>add-third-party</goal>
  391. </goals>
  392. <phase>generate-resources</phase>
  393. <configuration>
  394. <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
  395. <includedScopes>compile</includedScopes>
  396. <excludedGroups>org\.cryptomator</excludedGroups>
  397. <licenseMergesUrl>file:///${project.basedir}/license/merges</licenseMergesUrl>
  398. <fileTemplate>${project.basedir}/src/main/resources/license/template.ftl</fileTemplate>
  399. </configuration>
  400. </execution>
  401. </executions>
  402. </plugin>
  403. </plugins>
  404. <resources>
  405. <resource>
  406. <directory>src/main/resources</directory>
  407. <excludes>
  408. <exclude>license/*</exclude>
  409. </excludes>
  410. </resource>
  411. </resources>
  412. </build>
  413. <profiles>
  414. <profile>
  415. <id>coverage</id>
  416. <build>
  417. <plugins>
  418. <plugin>
  419. <groupId>org.jacoco</groupId>
  420. <artifactId>jacoco-maven-plugin</artifactId>
  421. <executions>
  422. <execution>
  423. <id>prepare-agent</id>
  424. <goals>
  425. <goal>prepare-agent</goal>
  426. </goals>
  427. </execution>
  428. <execution>
  429. <id>report</id>
  430. <goals>
  431. <goal>report</goal>
  432. </goals>
  433. </execution>
  434. </executions>
  435. <configuration>
  436. <excludes>
  437. <exclude>**/*_*</exclude>
  438. <exclude>**/Dagger*</exclude>
  439. </excludes>
  440. </configuration>
  441. </plugin>
  442. </plugins>
  443. </build>
  444. </profile>
  445. <profile>
  446. <id>dependency-check</id>
  447. <build>
  448. <plugins>
  449. <plugin>
  450. <groupId>org.owasp</groupId>
  451. <artifactId>dependency-check-maven</artifactId>
  452. <configuration>
  453. <cveValidForHours>24</cveValidForHours>
  454. <failBuildOnCVSS>0</failBuildOnCVSS>
  455. <skipTestScope>true</skipTestScope>
  456. <detail>true</detail>
  457. <suppressionFile>suppression.xml</suppressionFile>
  458. </configuration>
  459. <executions>
  460. <execution>
  461. <goals>
  462. <goal>check</goal>
  463. </goals>
  464. </execution>
  465. </executions>
  466. </plugin>
  467. </plugins>
  468. </build>
  469. </profile>
  470. <profile>
  471. <id>mac</id>
  472. <activation>
  473. <os>
  474. <family>mac</family>
  475. </os>
  476. <property>
  477. <name>idea.version</name>
  478. </property>
  479. </activation>
  480. <dependencies>
  481. <dependency>
  482. <groupId>org.cryptomator</groupId>
  483. <artifactId>integrations-mac</artifactId>
  484. <version>${cryptomator.integrations.mac.version}</version>
  485. </dependency>
  486. </dependencies>
  487. </profile>
  488. <profile>
  489. <id>linux</id>
  490. <activation>
  491. <os>
  492. <family>unix</family>
  493. <name>Linux</name>
  494. </os>
  495. <property>
  496. <name>idea.version</name>
  497. </property>
  498. </activation>
  499. <dependencies>
  500. <dependency>
  501. <groupId>org.cryptomator</groupId>
  502. <artifactId>integrations-linux</artifactId>
  503. <version>${cryptomator.integrations.linux.version}</version>
  504. </dependency>
  505. </dependencies>
  506. </profile>
  507. <profile>
  508. <id>win</id>
  509. <activation>
  510. <os>
  511. <family>windows</family>
  512. </os>
  513. <property>
  514. <name>idea.version</name>
  515. </property>
  516. </activation>
  517. <dependencies>
  518. <dependency>
  519. <groupId>org.cryptomator</groupId>
  520. <artifactId>integrations-win</artifactId>
  521. <version>${cryptomator.integrations.win.version}</version>
  522. </dependency>
  523. </dependencies>
  524. </profile>
  525. </profiles>
  526. </project>