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