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.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.1</cryptomator.cryptolib.version>
  26. <cryptomator.cryptofs.version>2.6.1</cryptomator.cryptofs.version>
  27. <cryptomator.integrations.version>1.2.0-beta4</cryptomator.integrations.version>
  28. <cryptomator.integrations.win.version>1.2.0-beta1</cryptomator.integrations.win.version>
  29. <cryptomator.integrations.mac.version>1.2.0-beta1</cryptomator.integrations.mac.version>
  30. <cryptomator.integrations.linux.version>1.2.0-beta1</cryptomator.integrations.linux.version>
  31. <cryptomator.fuse.version>1.3.4</cryptomator.fuse.version>
  32. <cryptomator.dokany.version>1.3.3</cryptomator.dokany.version>
  33. <cryptomator.webdav.version>1.2.8</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.4</dependency-check.version>
  54. <jacoco.version>0.8.8</jacoco.version>
  55. </properties>
  56. <dependencies>
  57. <!-- Cryptomator Libs -->
  58. <dependency>
  59. <!-- needed due to https://github.com/cryptomator/cryptolib/issues/34-->
  60. <groupId>org.cryptomator</groupId>
  61. <artifactId>cryptolib</artifactId>
  62. <version>${cryptomator.cryptolib.version}</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.cryptomator</groupId>
  66. <artifactId>cryptofs</artifactId>
  67. <version>${cryptomator.cryptofs.version}</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.cryptomator</groupId>
  71. <artifactId>fuse-nio-adapter</artifactId>
  72. <version>${cryptomator.fuse.version}</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.cryptomator</groupId>
  76. <artifactId>dokany-nio-adapter</artifactId>
  77. <version>${cryptomator.dokany.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.cryptomator</groupId>
  81. <artifactId>webdav-nio-adapter</artifactId>
  82. <version>${cryptomator.webdav.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.cryptomator</groupId>
  86. <artifactId>integrations-api</artifactId>
  87. <version>${cryptomator.integrations.version}</version>
  88. </dependency>
  89. <!-- JavaFX -->
  90. <dependency>
  91. <groupId>org.openjfx</groupId>
  92. <artifactId>javafx-base</artifactId>
  93. <version>${javafx.version}</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.openjfx</groupId>
  97. <artifactId>javafx-graphics</artifactId>
  98. <version>${javafx.version}</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.openjfx</groupId>
  102. <artifactId>javafx-controls</artifactId>
  103. <version>${javafx.version}</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.openjfx</groupId>
  107. <artifactId>javafx-fxml</artifactId>
  108. <version>${javafx.version}</version>
  109. </dependency>
  110. <!-- Logging -->
  111. <dependency>
  112. <groupId>org.slf4j</groupId>
  113. <artifactId>slf4j-api</artifactId>
  114. <version>${slf4j.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>ch.qos.logback</groupId>
  118. <artifactId>logback-core</artifactId>
  119. <version>${logback.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>ch.qos.logback</groupId>
  123. <artifactId>logback-classic</artifactId>
  124. <version>${logback.version}</version>
  125. </dependency>
  126. <!-- Apache Commons -->
  127. <dependency>
  128. <groupId>org.apache.commons</groupId>
  129. <artifactId>commons-lang3</artifactId>
  130. <version>${commons-lang3.version}</version>
  131. </dependency>
  132. <!-- OAuth/JWT -->
  133. <dependency>
  134. <groupId>io.github.coffeelibs</groupId>
  135. <artifactId>tiny-oauth2-client</artifactId>
  136. <version>${tinyoauth2.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.auth0</groupId>
  140. <artifactId>java-jwt</artifactId>
  141. <version>${jwt.version}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>com.nimbusds</groupId>
  145. <artifactId>nimbus-jose-jwt</artifactId>
  146. <version>${nimbus-jose.version}</version>
  147. </dependency>
  148. <!-- EasyBind -->
  149. <dependency>
  150. <groupId>com.tobiasdiez</groupId>
  151. <artifactId>easybind</artifactId>
  152. <version>${easybind.version}</version>
  153. </dependency>
  154. <!-- Zxcvbn -->
  155. <dependency>
  156. <groupId>com.nulab-inc</groupId>
  157. <artifactId>zxcvbn</artifactId>
  158. <version>${zxcvbn.version}</version>
  159. </dependency>
  160. <!-- Google -->
  161. <dependency>
  162. <groupId>com.google.guava</groupId>
  163. <artifactId>guava</artifactId>
  164. <version>${guava.version}</version>
  165. <exclusions>
  166. <!-- see https://github.com/google/guava/wiki/UseGuavaInYourBuild#what-about-guavas-own-dependencies -->
  167. <exclusion>
  168. <groupId>com.google.guava</groupId>
  169. <artifactId>listenablefuture</artifactId>
  170. </exclusion>
  171. <exclusion>
  172. <groupId>com.google.code.findbugs</groupId>
  173. <artifactId>jsr305</artifactId>
  174. </exclusion>
  175. <exclusion>
  176. <groupId>org.checkerframework</groupId>
  177. <artifactId>checker-qual</artifactId>
  178. </exclusion>
  179. <exclusion>
  180. <groupId>com.google.errorprone</groupId>
  181. <artifactId>error_prone_annotations</artifactId>
  182. </exclusion>
  183. <exclusion>
  184. <groupId>com.google.j2objc</groupId>
  185. <artifactId>j2objc-annotations</artifactId>
  186. </exclusion>
  187. </exclusions>
  188. </dependency>
  189. <dependency>
  190. <groupId>com.google.dagger</groupId>
  191. <artifactId>dagger</artifactId>
  192. <version>${dagger.version}</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>com.google.code.gson</groupId>
  196. <artifactId>gson</artifactId>
  197. <version>${gson.version}</version>
  198. </dependency>
  199. <!-- JUnit / Mockito / Hamcrest -->
  200. <dependency>
  201. <groupId>org.junit.jupiter</groupId>
  202. <artifactId>junit-jupiter</artifactId>
  203. <version>${junit.jupiter.version}</version>
  204. <scope>test</scope>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.mockito</groupId>
  208. <artifactId>mockito-core</artifactId>
  209. <version>${mockito.version}</version>
  210. <scope>test</scope>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.hamcrest</groupId>
  214. <artifactId>hamcrest</artifactId>
  215. <version>${hamcrest.version}</version>
  216. <scope>test</scope>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.openjfx</groupId>
  220. <artifactId>javafx-swing</artifactId>
  221. <version>${javafx.version}</version>
  222. <scope>test</scope>
  223. </dependency>
  224. <dependency>
  225. <groupId>com.google.jimfs</groupId>
  226. <artifactId>jimfs</artifactId>
  227. <version>1.2</version>
  228. <scope>test</scope>
  229. </dependency>
  230. <dependency>
  231. <groupId>org.jetbrains</groupId>
  232. <artifactId>annotations</artifactId>
  233. <version>${jetbrains.annotations.version}</version>
  234. <scope>provided</scope>
  235. </dependency>
  236. </dependencies>
  237. <build>
  238. <pluginManagement>
  239. <plugins>
  240. <plugin>
  241. <groupId>org.apache.maven.plugins</groupId>
  242. <artifactId>maven-compiler-plugin</artifactId>
  243. <version>3.10.1</version>
  244. </plugin>
  245. <plugin>
  246. <groupId>org.apache.maven.plugins</groupId>
  247. <artifactId>maven-resources-plugin</artifactId>
  248. <version>3.3.0</version>
  249. </plugin>
  250. <plugin>
  251. <groupId>org.apache.maven.plugins</groupId>
  252. <artifactId>maven-dependency-plugin</artifactId>
  253. <version>3.3.0</version>
  254. </plugin>
  255. <plugin>
  256. <groupId>org.apache.maven.plugins</groupId>
  257. <artifactId>maven-surefire-plugin</artifactId>
  258. <version>3.0.0-M7</version>
  259. </plugin>
  260. <plugin>
  261. <groupId>org.codehaus.mojo</groupId>
  262. <artifactId>license-maven-plugin</artifactId>
  263. <version>2.0.0</version>
  264. </plugin>
  265. <plugin>
  266. <groupId>org.apache.maven.plugins</groupId>
  267. <artifactId>maven-jar-plugin</artifactId>
  268. <version>3.3.0</version>
  269. </plugin>
  270. <plugin>
  271. <groupId>org.jacoco</groupId>
  272. <artifactId>jacoco-maven-plugin</artifactId>
  273. <version>${jacoco.version}</version>
  274. </plugin>
  275. <plugin>
  276. <groupId>org.owasp</groupId>
  277. <artifactId>dependency-check-maven</artifactId>
  278. <version>${dependency-check.version}</version>
  279. </plugin>
  280. </plugins>
  281. </pluginManagement>
  282. <plugins>
  283. <plugin>
  284. <groupId>org.apache.maven.plugins</groupId>
  285. <artifactId>maven-compiler-plugin</artifactId>
  286. <configuration>
  287. <release>${project.jdk.version}</release>
  288. <annotationProcessorPaths>
  289. <path>
  290. <groupId>com.google.dagger</groupId>
  291. <artifactId>dagger-compiler</artifactId>
  292. <version>${dagger.version}</version>
  293. </path>
  294. </annotationProcessorPaths>
  295. <compilerArgs>
  296. <arg>-Adagger.fastInit=enabled</arg>
  297. <arg>-Adagger.formatGeneratedSource=enabled</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>