pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  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>17</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.cryptofs.version>2.3.1</cryptomator.cryptofs.version>
  26. <cryptomator.integrations.version>1.1.0-beta1</cryptomator.integrations.version>
  27. <cryptomator.integrations.win.version>1.0.0</cryptomator.integrations.win.version>
  28. <cryptomator.integrations.mac.version>1.0.0</cryptomator.integrations.mac.version>
  29. <cryptomator.integrations.linux.version>1.0.1</cryptomator.integrations.linux.version>
  30. <cryptomator.fuse.version>1.3.3</cryptomator.fuse.version>
  31. <cryptomator.dokany.version>1.3.3</cryptomator.dokany.version>
  32. <cryptomator.webdav.version>1.2.6</cryptomator.webdav.version>
  33. <!-- 3rd party dependencies -->
  34. <javafx.version>17.0.2</javafx.version>
  35. <commons-lang3.version>3.12.0</commons-lang3.version>
  36. <jwt.version>3.18.3</jwt.version>
  37. <easybind.version>2.2</easybind.version>
  38. <guava.version>31.0-jre</guava.version>
  39. <dagger.version>2.40.3</dagger.version>
  40. <gson.version>2.8.9</gson.version>
  41. <zxcvbn.version>1.5.2</zxcvbn.version>
  42. <slf4j.version>1.7.32</slf4j.version>
  43. <logback.version>1.2.9</logback.version>
  44. <!-- test dependencies -->
  45. <junit.jupiter.version>5.8.1</junit.jupiter.version>
  46. <mockito.version>3.12.4</mockito.version>
  47. <hamcrest.version>2.2</hamcrest.version>
  48. <!-- build plugin dependencies -->
  49. <dependency-check.version>7.0.0</dependency-check.version>
  50. </properties>
  51. <dependencies>
  52. <!-- Cryptomator Libs -->
  53. <dependency>
  54. <groupId>org.cryptomator</groupId>
  55. <artifactId>cryptofs</artifactId>
  56. <version>${cryptomator.cryptofs.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.cryptomator</groupId>
  60. <artifactId>fuse-nio-adapter</artifactId>
  61. <version>${cryptomator.fuse.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.cryptomator</groupId>
  65. <artifactId>dokany-nio-adapter</artifactId>
  66. <version>${cryptomator.dokany.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.cryptomator</groupId>
  70. <artifactId>webdav-nio-adapter</artifactId>
  71. <version>${cryptomator.webdav.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.cryptomator</groupId>
  75. <artifactId>integrations-api</artifactId>
  76. <version>${cryptomator.integrations.version}</version>
  77. </dependency>
  78. <!-- JavaFX -->
  79. <dependency>
  80. <groupId>org.openjfx</groupId>
  81. <artifactId>javafx-base</artifactId>
  82. <version>${javafx.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.openjfx</groupId>
  86. <artifactId>javafx-graphics</artifactId>
  87. <version>${javafx.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.openjfx</groupId>
  91. <artifactId>javafx-controls</artifactId>
  92. <version>${javafx.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.openjfx</groupId>
  96. <artifactId>javafx-fxml</artifactId>
  97. <version>${javafx.version}</version>
  98. </dependency>
  99. <!-- Logging -->
  100. <dependency>
  101. <groupId>org.slf4j</groupId>
  102. <artifactId>slf4j-api</artifactId>
  103. <version>${slf4j.version}</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>ch.qos.logback</groupId>
  107. <artifactId>logback-core</artifactId>
  108. <version>${logback.version}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>ch.qos.logback</groupId>
  112. <artifactId>logback-classic</artifactId>
  113. <version>${logback.version}</version>
  114. </dependency>
  115. <!-- Apache Commons -->
  116. <dependency>
  117. <groupId>org.apache.commons</groupId>
  118. <artifactId>commons-lang3</artifactId>
  119. <version>${commons-lang3.version}</version>
  120. </dependency>
  121. <!-- JWT -->
  122. <dependency>
  123. <groupId>com.auth0</groupId>
  124. <artifactId>java-jwt</artifactId>
  125. <version>${jwt.version}</version>
  126. </dependency>
  127. <!-- EasyBind -->
  128. <dependency>
  129. <groupId>com.tobiasdiez</groupId>
  130. <artifactId>easybind</artifactId>
  131. <version>${easybind.version}</version>
  132. </dependency>
  133. <!-- Zxcvbn -->
  134. <dependency>
  135. <groupId>com.nulab-inc</groupId>
  136. <artifactId>zxcvbn</artifactId>
  137. <version>${zxcvbn.version}</version>
  138. </dependency>
  139. <!-- Google -->
  140. <dependency>
  141. <groupId>com.google.guava</groupId>
  142. <artifactId>guava</artifactId>
  143. <version>${guava.version}</version>
  144. <exclusions>
  145. <!-- see https://github.com/google/guava/wiki/UseGuavaInYourBuild#what-about-guavas-own-dependencies -->
  146. <exclusion>
  147. <groupId>com.google.guava</groupId>
  148. <artifactId>listenablefuture</artifactId>
  149. </exclusion>
  150. <exclusion>
  151. <groupId>com.google.code.findbugs</groupId>
  152. <artifactId>jsr305</artifactId>
  153. </exclusion>
  154. <exclusion>
  155. <groupId>org.checkerframework</groupId>
  156. <artifactId>checker-qual</artifactId>
  157. </exclusion>
  158. <exclusion>
  159. <groupId>com.google.errorprone</groupId>
  160. <artifactId>error_prone_annotations</artifactId>
  161. </exclusion>
  162. <exclusion>
  163. <groupId>com.google.j2objc</groupId>
  164. <artifactId>j2objc-annotations</artifactId>
  165. </exclusion>
  166. </exclusions>
  167. </dependency>
  168. <dependency>
  169. <groupId>com.google.dagger</groupId>
  170. <artifactId>dagger</artifactId>
  171. <version>${dagger.version}</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>com.google.code.gson</groupId>
  175. <artifactId>gson</artifactId>
  176. <version>${gson.version}</version>
  177. </dependency>
  178. <!-- JUnit / Mockito / Hamcrest -->
  179. <dependency>
  180. <groupId>org.junit.jupiter</groupId>
  181. <artifactId>junit-jupiter</artifactId>
  182. <version>${junit.jupiter.version}</version>
  183. <scope>test</scope>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.mockito</groupId>
  187. <artifactId>mockito-core</artifactId>
  188. <version>${mockito.version}</version>
  189. <scope>test</scope>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.hamcrest</groupId>
  193. <artifactId>hamcrest</artifactId>
  194. <version>${hamcrest.version}</version>
  195. <scope>test</scope>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.openjfx</groupId>
  199. <artifactId>javafx-swing</artifactId>
  200. <version>${javafx.version}</version>
  201. <scope>test</scope>
  202. </dependency>
  203. <dependency>
  204. <groupId>com.google.jimfs</groupId>
  205. <artifactId>jimfs</artifactId>
  206. <version>1.2</version>
  207. <scope>test</scope>
  208. </dependency>
  209. </dependencies>
  210. <build>
  211. <pluginManagement>
  212. <plugins>
  213. <plugin>
  214. <groupId>org.apache.maven.plugins</groupId>
  215. <artifactId>maven-compiler-plugin</artifactId>
  216. <version>3.8.1</version>
  217. </plugin>
  218. <plugin>
  219. <groupId>org.apache.maven.plugins</groupId>
  220. <artifactId>maven-resources-plugin</artifactId>
  221. <version>3.2.0</version>
  222. </plugin>
  223. <plugin>
  224. <groupId>org.apache.maven.plugins</groupId>
  225. <artifactId>maven-dependency-plugin</artifactId>
  226. <version>3.2.0</version>
  227. </plugin>
  228. <plugin>
  229. <groupId>org.apache.maven.plugins</groupId>
  230. <artifactId>maven-surefire-plugin</artifactId>
  231. <version>3.0.0-M5</version>
  232. </plugin>
  233. <plugin>
  234. <groupId>org.codehaus.mojo</groupId>
  235. <artifactId>license-maven-plugin</artifactId>
  236. <version>2.0.0</version>
  237. </plugin>
  238. <plugin>
  239. <groupId>org.apache.maven.plugins</groupId>
  240. <artifactId>maven-jar-plugin</artifactId>
  241. <version>3.2.0</version>
  242. </plugin>
  243. <plugin>
  244. <groupId>org.jacoco</groupId>
  245. <artifactId>jacoco-maven-plugin</artifactId>
  246. <version>0.8.7</version>
  247. </plugin>
  248. <plugin>
  249. <groupId>org.owasp</groupId>
  250. <artifactId>dependency-check-maven</artifactId>
  251. <version>${dependency-check.version}</version>
  252. </plugin>
  253. </plugins>
  254. </pluginManagement>
  255. <plugins>
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-compiler-plugin</artifactId>
  259. <configuration>
  260. <release>${project.jdk.version}</release>
  261. <annotationProcessorPaths>
  262. <path>
  263. <groupId>com.google.dagger</groupId>
  264. <artifactId>dagger-compiler</artifactId>
  265. <version>${dagger.version}</version>
  266. </path>
  267. </annotationProcessorPaths>
  268. <compilerArgs>
  269. <arg>-Adagger.fastInit=enabled</arg>
  270. <arg>-Adagger.formatGeneratedSource=enabled</arg>
  271. </compilerArgs>
  272. </configuration>
  273. </plugin>
  274. <plugin>
  275. <groupId>org.apache.maven.plugins</groupId>
  276. <artifactId>maven-jar-plugin</artifactId>
  277. <configuration>
  278. <archive>
  279. <manifest>
  280. <!-- adds Implementation-Version which can be read during runtime -->
  281. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  282. </manifest>
  283. </archive>
  284. </configuration>
  285. </plugin>
  286. <plugin>
  287. <groupId>org.apache.maven.plugins</groupId>
  288. <artifactId>maven-surefire-plugin</artifactId>
  289. </plugin>
  290. <plugin>
  291. <groupId>org.apache.maven.plugins</groupId>
  292. <artifactId>maven-dependency-plugin</artifactId>
  293. <executions>
  294. <execution>
  295. <id>copy-mods</id>
  296. <phase>prepare-package</phase>
  297. <goals>
  298. <goal>copy-dependencies</goal>
  299. </goals>
  300. <configuration>
  301. <includeScope>runtime</includeScope>
  302. <outputDirectory>${project.build.directory}/mods</outputDirectory>
  303. <excludeGroupIds>${nonModularGroupIds}</excludeGroupIds>
  304. </configuration>
  305. </execution>
  306. <execution>
  307. <id>copy-libs</id>
  308. <phase>prepare-package</phase>
  309. <goals>
  310. <goal>copy-dependencies</goal>
  311. </goals>
  312. <configuration>
  313. <includeScope>runtime</includeScope>
  314. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  315. <includeGroupIds>${nonModularGroupIds}</includeGroupIds>
  316. </configuration>
  317. </execution>
  318. </executions>
  319. </plugin>
  320. <plugin>
  321. <groupId>org.codehaus.mojo</groupId>
  322. <artifactId>license-maven-plugin</artifactId>
  323. <executions>
  324. <execution>
  325. <id>add-third-party</id>
  326. <goals>
  327. <goal>add-third-party</goal>
  328. </goals>
  329. <phase>generate-resources</phase>
  330. <configuration>
  331. <outputDirectory>${project.basedir}/src/main/resources/license</outputDirectory>
  332. <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
  333. <includedScopes>compile</includedScopes>
  334. <excludedGroups>org\.cryptomator</excludedGroups>
  335. <licenseMerges>
  336. <licenseMerge>Apache License v2.0|Apache License, Version 2.0|The Apache Software License, Version 2.0|Apache 2.0|Apache Software License - Version 2.0</licenseMerge>
  337. <licenseMerge>MIT License|The MIT License (MIT)|The MIT License|MIT license</licenseMerge>
  338. <licenseMerge>LGPL 2.1|LGPL, version 2.1|GNU Lesser/Library General Public License version 2|GNU Lesser General Public License Version 2.1</licenseMerge>
  339. <licenseMerge>GPLv2|GNU General Public License Version 2</licenseMerge>
  340. <licenseMerge>GPLv2+CE|CDDL + GPLv2 with classpath exception</licenseMerge>
  341. </licenseMerges>
  342. <fileTemplate>${project.basedir}/src/license/template.ftl</fileTemplate>
  343. </configuration>
  344. </execution>
  345. </executions>
  346. </plugin>
  347. </plugins>
  348. </build>
  349. <profiles>
  350. <profile>
  351. <id>coverage</id>
  352. <build>
  353. <plugins>
  354. <plugin>
  355. <groupId>org.jacoco</groupId>
  356. <artifactId>jacoco-maven-plugin</artifactId>
  357. <executions>
  358. <execution>
  359. <id>prepare-agent</id>
  360. <goals>
  361. <goal>prepare-agent</goal>
  362. </goals>
  363. </execution>
  364. <execution>
  365. <id>report</id>
  366. <goals>
  367. <goal>report</goal>
  368. </goals>
  369. </execution>
  370. </executions>
  371. <configuration>
  372. <excludes>
  373. <exclude>**/*_*</exclude>
  374. <exclude>**/Dagger*</exclude>
  375. </excludes>
  376. </configuration>
  377. </plugin>
  378. </plugins>
  379. </build>
  380. </profile>
  381. <profile>
  382. <id>dependency-check</id>
  383. <build>
  384. <plugins>
  385. <plugin>
  386. <groupId>org.owasp</groupId>
  387. <artifactId>dependency-check-maven</artifactId>
  388. <configuration>
  389. <cveValidForHours>24</cveValidForHours>
  390. <failBuildOnCVSS>0</failBuildOnCVSS>
  391. <skipTestScope>true</skipTestScope>
  392. <detail>true</detail>
  393. <suppressionFile>suppression.xml</suppressionFile>
  394. </configuration>
  395. <executions>
  396. <execution>
  397. <goals>
  398. <goal>check</goal>
  399. </goals>
  400. </execution>
  401. </executions>
  402. </plugin>
  403. </plugins>
  404. </build>
  405. </profile>
  406. <profile>
  407. <id>mac</id>
  408. <activation>
  409. <os>
  410. <family>mac</family>
  411. </os>
  412. <property>
  413. <name>idea.version</name>
  414. </property>
  415. </activation>
  416. <dependencies>
  417. <dependency>
  418. <groupId>org.cryptomator</groupId>
  419. <artifactId>integrations-mac</artifactId>
  420. <version>${cryptomator.integrations.mac.version}</version>
  421. </dependency>
  422. </dependencies>
  423. </profile>
  424. <profile>
  425. <id>linux</id>
  426. <activation>
  427. <os>
  428. <family>unix</family>
  429. <name>Linux</name>
  430. </os>
  431. <property>
  432. <name>idea.version</name>
  433. </property>
  434. </activation>
  435. <dependencies>
  436. <dependency>
  437. <groupId>org.cryptomator</groupId>
  438. <artifactId>integrations-linux</artifactId>
  439. <version>${cryptomator.integrations.linux.version}</version>
  440. </dependency>
  441. </dependencies>
  442. </profile>
  443. <profile>
  444. <id>win</id>
  445. <activation>
  446. <os>
  447. <family>windows</family>
  448. </os>
  449. <property>
  450. <name>idea.version</name>
  451. </property>
  452. </activation>
  453. <dependencies>
  454. <dependency>
  455. <groupId>org.cryptomator</groupId>
  456. <artifactId>integrations-win</artifactId>
  457. <version>${cryptomator.integrations.win.version}</version>
  458. </dependency>
  459. </dependencies>
  460. </profile>
  461. </profiles>
  462. </project>