pom.xml 16 KB

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