pom.xml 16 KB

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