pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  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.9.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>20</project.jdk.version>
  27. <!-- Group IDs of jars that need to stay on the class path for now -->
  28. <!-- Once swiesend has module-info, remove them-->
  29. <nonModularGroupIds>org.ow2.asm,org.apache.jackrabbit,org.apache.httpcomponents</nonModularGroupIds>
  30. <!-- cryptomator dependencies -->
  31. <cryptomator.cryptofs.version>2.6.2</cryptomator.cryptofs.version>
  32. <cryptomator.integrations.version>1.3.0-beta1</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.3.0-beta2</cryptomator.integrations.linux.version>
  36. <cryptomator.fuse.version>3.0.0</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>20.0.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.9</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.apache.maven.plugins</groupId>
  303. <artifactId>maven-jar-plugin</artifactId>
  304. <configuration>
  305. <archive>
  306. <manifest>
  307. <!-- adds Implementation-Version which can be read during runtime -->
  308. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  309. </manifest>
  310. </archive>
  311. </configuration>
  312. </plugin>
  313. <plugin>
  314. <groupId>org.apache.maven.plugins</groupId>
  315. <artifactId>maven-surefire-plugin</artifactId>
  316. <configuration>
  317. <argLine>--enable-preview</argLine>
  318. </configuration>
  319. </plugin>
  320. <plugin>
  321. <groupId>org.apache.maven.plugins</groupId>
  322. <artifactId>maven-dependency-plugin</artifactId>
  323. <executions>
  324. <!-- sort jars into two buckets (classpath and modulepath). exclude openjfx, which gets jlinked separately -->
  325. <execution>
  326. <id>copy-mods</id>
  327. <phase>prepare-package</phase>
  328. <goals>
  329. <goal>copy-dependencies</goal>
  330. </goals>
  331. <configuration>
  332. <includeScope>runtime</includeScope>
  333. <outputDirectory>${project.build.directory}/mods</outputDirectory>
  334. <excludeGroupIds>org.openjfx,${nonModularGroupIds}</excludeGroupIds>
  335. </configuration>
  336. </execution>
  337. <execution>
  338. <id>copy-libs</id>
  339. <phase>prepare-package</phase>
  340. <goals>
  341. <goal>copy-dependencies</goal>
  342. </goals>
  343. <configuration>
  344. <includeScope>runtime</includeScope>
  345. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  346. <includeGroupIds>${nonModularGroupIds}</includeGroupIds>
  347. </configuration>
  348. </execution>
  349. </executions>
  350. </plugin>
  351. <plugin>
  352. <groupId>org.codehaus.mojo</groupId>
  353. <artifactId>license-maven-plugin</artifactId>
  354. <executions>
  355. <execution>
  356. <id>add-third-party</id>
  357. <goals>
  358. <goal>add-third-party</goal>
  359. </goals>
  360. <phase>generate-resources</phase>
  361. <configuration>
  362. <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
  363. <includedScopes>compile</includedScopes>
  364. <excludedGroups>org\.cryptomator</excludedGroups>
  365. <licenseMergesUrl>file:///${project.basedir}/license/merges</licenseMergesUrl>
  366. <fileTemplate>${project.basedir}/src/main/resources/license/template.ftl</fileTemplate>
  367. </configuration>
  368. </execution>
  369. </executions>
  370. </plugin>
  371. </plugins>
  372. <resources>
  373. <resource>
  374. <directory>src/main/resources</directory>
  375. <excludes>
  376. <exclude>license/*</exclude>
  377. </excludes>
  378. </resource>
  379. </resources>
  380. </build>
  381. <profiles>
  382. <profile>
  383. <id>coverage</id>
  384. <build>
  385. <plugins>
  386. <plugin>
  387. <groupId>org.jacoco</groupId>
  388. <artifactId>jacoco-maven-plugin</artifactId>
  389. <executions>
  390. <execution>
  391. <id>prepare-agent</id>
  392. <goals>
  393. <goal>prepare-agent</goal>
  394. </goals>
  395. </execution>
  396. <execution>
  397. <id>report</id>
  398. <goals>
  399. <goal>report</goal>
  400. </goals>
  401. </execution>
  402. </executions>
  403. <configuration>
  404. <excludes>
  405. <exclude>**/*_*</exclude>
  406. <exclude>**/Dagger*</exclude>
  407. </excludes>
  408. </configuration>
  409. </plugin>
  410. </plugins>
  411. </build>
  412. </profile>
  413. <profile>
  414. <id>dependency-check</id>
  415. <build>
  416. <plugins>
  417. <plugin>
  418. <groupId>org.owasp</groupId>
  419. <artifactId>dependency-check-maven</artifactId>
  420. <configuration>
  421. <cveValidForHours>24</cveValidForHours>
  422. <failBuildOnCVSS>0</failBuildOnCVSS>
  423. <skipTestScope>true</skipTestScope>
  424. <detail>true</detail>
  425. <suppressionFile>suppression.xml</suppressionFile>
  426. </configuration>
  427. <executions>
  428. <execution>
  429. <goals>
  430. <goal>check</goal>
  431. </goals>
  432. </execution>
  433. </executions>
  434. </plugin>
  435. </plugins>
  436. </build>
  437. </profile>
  438. <profile>
  439. <id>mac</id>
  440. <activation>
  441. <os>
  442. <family>mac</family>
  443. </os>
  444. <property>
  445. <name>idea.version</name>
  446. </property>
  447. </activation>
  448. <dependencies>
  449. <dependency>
  450. <groupId>org.cryptomator</groupId>
  451. <artifactId>integrations-mac</artifactId>
  452. <version>${cryptomator.integrations.mac.version}</version>
  453. </dependency>
  454. </dependencies>
  455. </profile>
  456. <profile>
  457. <id>linux</id>
  458. <activation>
  459. <os>
  460. <family>unix</family>
  461. <name>Linux</name>
  462. </os>
  463. <property>
  464. <name>idea.version</name>
  465. </property>
  466. </activation>
  467. <dependencies>
  468. <dependency>
  469. <groupId>org.cryptomator</groupId>
  470. <artifactId>integrations-linux</artifactId>
  471. <version>${cryptomator.integrations.linux.version}</version>
  472. </dependency>
  473. </dependencies>
  474. </profile>
  475. <profile>
  476. <id>win</id>
  477. <activation>
  478. <os>
  479. <family>windows</family>
  480. </os>
  481. <property>
  482. <name>idea.version</name>
  483. </property>
  484. </activation>
  485. <dependencies>
  486. <dependency>
  487. <groupId>org.cryptomator</groupId>
  488. <artifactId>integrations-win</artifactId>
  489. <version>${cryptomator.integrations.win.version}</version>
  490. </dependency>
  491. </dependencies>
  492. </profile>
  493. </profiles>
  494. </project>