pom.xml 14 KB

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