pom.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>powerjob</artifactId>
  7. <groupId>tech.powerjob</groupId>
  8. <version>4.3.9</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>powerjob-worker</artifactId>
  12. <version>4.3.9</version>
  13. <packaging>jar</packaging>
  14. <properties>
  15. <spring.version>5.3.31</spring.version>
  16. <h2.db.version>2.2.224</h2.db.version>
  17. <hikaricp.version>4.0.3</hikaricp.version>
  18. <junit.version>5.9.1</junit.version>
  19. <logback.version>1.2.13</logback.version>
  20. <powerjob-common.version>4.3.9</powerjob-common.version>
  21. <powerjob-remote-framework.version>4.3.9</powerjob-remote-framework.version>
  22. <powerjob-remote-impl-akka.version>4.3.9</powerjob-remote-impl-akka.version>
  23. <powerjob-remote-impl-http.version>4.3.9</powerjob-remote-impl-http.version>
  24. </properties>
  25. <dependencies>
  26. <!-- 仍然手动引入 common 依赖并置顶,保证依赖仲裁时占据上风 -->
  27. <dependency>
  28. <groupId>tech.powerjob</groupId>
  29. <artifactId>powerjob-common</artifactId>
  30. <version>${powerjob-common.version}</version>
  31. </dependency>
  32. <!-- PowerJob 通讯框架 -->
  33. <dependency>
  34. <groupId>tech.powerjob</groupId>
  35. <artifactId>powerjob-remote-framework</artifactId>
  36. <version>${powerjob-remote-framework.version}</version>
  37. </dependency>
  38. <!-- PowerJob 通讯层具体实现,按需选择自己需要的通讯器即可。如果包冲突可尝试更换通讯器实现,并排除未使用的通讯器包 -->
  39. <!-- 4.3.x 版本前 AKKA 都是 PowerJob 通讯层的唯一实现,考虑到兼容性 4.3.x 默认仍为 AKKA,但由于 AKKA 后续收费,最终会废弃该模块,扶正太子(HTTP)上位 -->
  40. <dependency>
  41. <groupId>tech.powerjob</groupId>
  42. <artifactId>powerjob-remote-impl-akka</artifactId>
  43. <version>${powerjob-remote-impl-akka.version}</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>tech.powerjob</groupId>
  47. <artifactId>powerjob-remote-impl-http</artifactId>
  48. <version>${powerjob-remote-impl-http.version}</version>
  49. </dependency>
  50. <!-- h2 database -->
  51. <dependency>
  52. <groupId>com.h2database</groupId>
  53. <artifactId>h2</artifactId>
  54. <version>${h2.db.version}</version>
  55. </dependency>
  56. <!-- HikariCP, Java8 只能用 4.X 版本 -->
  57. <dependency>
  58. <groupId>com.zaxxer</groupId>
  59. <artifactId>HikariCP</artifactId>
  60. <version>${hikaricp.version}</version>
  61. </dependency>
  62. <!-- Spring 依赖(非强依赖) -->
  63. <dependency>
  64. <groupId>org.springframework</groupId>
  65. <artifactId>spring-context</artifactId>
  66. <version>${spring.version}</version>
  67. <scope>provided</scope>
  68. </dependency>
  69. <!-- Junit 测试 -->
  70. <dependency>
  71. <groupId>org.junit.jupiter</groupId>
  72. <artifactId>junit-jupiter-api</artifactId>
  73. <version>${junit.version}</version>
  74. <scope>test</scope>
  75. </dependency>
  76. <!-- log for test stage -->
  77. <dependency>
  78. <groupId>ch.qos.logback</groupId>
  79. <artifactId>logback-classic</artifactId>
  80. <version>${logback.version}</version>
  81. <scope>test</scope>
  82. </dependency>
  83. </dependencies>
  84. </project>