pom.xml 15 KB

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