blob: a2635e400823b33c2ddc9311b760a3f7188300c4 [file] [log] [blame]
22301080fd521b02025-04-24 23:22:49 +08001<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5 <parent>
6 <groupId>org.springframework.boot</groupId>
7 <artifactId>spring-boot-starter-parent</artifactId>
8 <version>3.4.3</version>
9 <relativePath/> <!-- lookup parent from repository -->
10 </parent>
11 <groupId>com.ptp</groupId>
12 <artifactId>PTPlatform</artifactId>
13 <version>0.0.1-SNAPSHOT</version>
14 <name>PTPlatform</name>
15 <description>PTPlatform</description>
16 <properties>
17 <java.version>17</java.version>
2230108057e3ed22025-06-02 16:13:38 +080018 <mockito.version>4.5.1</mockito.version>
22301080fd521b02025-04-24 23:22:49 +080019 </properties>
2230108057e3ed22025-06-02 16:13:38 +080020
22301080fd521b02025-04-24 23:22:49 +080021 <dependencies>
22 <dependency>
23 <groupId>org.springframework.boot</groupId>
24 <artifactId>spring-boot-starter-web</artifactId>
25 </dependency>
26 <dependency>
27 <groupId>org.springframework.boot</groupId>
28 <artifactId>spring-boot-starter-test</artifactId>
29 <scope>test</scope>
30 </dependency>
31 <dependency>
32 <groupId>org.springframework.boot</groupId>
33 <artifactId>spring-boot-devtools</artifactId>
34 <optional>true</optional>
35 </dependency>
36 <dependency>
37 <groupId>org.springframework.boot</groupId>
38 <artifactId>spring-boot-starter-jdbc</artifactId>
39 </dependency>
40 <!-- Spring boot 核心 -->
41 <dependency>
42 <groupId>org.springframework.boot</groupId>
43 <artifactId>spring-boot-starter-data-jpa</artifactId>
44 </dependency>
45 <dependency>
46 <groupId>org.lionsoul</groupId>
47 <artifactId>ip2region</artifactId>
48 <version>1.7.2</version>
49 </dependency>
50 <!-- MyBatis Plus -->
51 <dependency>
52 <groupId>com.baomidou</groupId>
53 <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
54 <version>3.5.10.1</version>
55 </dependency>
22301080a0334732025-05-17 21:38:32 +080056
Lambda6f532bd2025-05-14 15:22:57 +080057 <dependency>
58 <groupId>com.baomidou</groupId>
59 <artifactId>mybatis-plus-jsqlparser</artifactId>
60 <version>3.5.10.1</version> <!-- 确保版本和 MyBatis Plus 主包一致 -->
61 </dependency>
22301080fd521b02025-04-24 23:22:49 +080062 <!-- 数据库-->
63 <!-- Mysql依赖包 -->
64 <dependency>
65 <groupId>mysql</groupId>
66 <artifactId>mysql-connector-java</artifactId>
67 <version>8.0.25</version>
68 <scope>runtime</scope>
69 </dependency>
70 <!-- H2 内存数据库 -->
71 <dependency>
72 <groupId>com.h2database</groupId>
73 <artifactId>h2</artifactId>
74 <scope>test</scope>
75 </dependency>
76
77 <!-- druid 数据连接池 -->
78 <dependency>
79 <groupId>com.alibaba</groupId>
80 <artifactId>druid-spring-boot-starter</artifactId>
81 <version>1.1.20</version>
82 </dependency>
83
84 <!-- jwt登录验证 -->
85 <dependency>
86 <groupId>io.jsonwebtoken</groupId>
87 <artifactId>jjwt</artifactId>
88 <version>0.9.1</version>
89 </dependency>
90
91 <!-- 日期数据显示 -->
92 <dependency>
93 <groupId>javax.xml.bind</groupId>
94 <artifactId>jaxb-api</artifactId>
95 <version>2.3.0</version>
96 </dependency>
97 <dependency>
98 <groupId>org.glassfish.jaxb</groupId>
99 <artifactId>jaxb-runtime</artifactId>
100 <version>2.3.0</version>
101 </dependency>
102
103 <!-- 单元测试 -->
104 <dependency>
105 <groupId>junit</groupId>
106 <artifactId>junit</artifactId>
107 <version>4.12</version>
108 </dependency>
109
110 <!-- Mockito -->
111 <dependency>
112 <groupId>org.mockito</groupId>
113 <artifactId>mockito-core</artifactId>
114 <version>${mockito.version}</version>
115 <scope>test</scope>
116 </dependency>
117
Lambda6f532bd2025-05-14 15:22:57 +0800118 <dependency>
119 <groupId>org.projectlombok</groupId>
120 <artifactId>lombok</artifactId>
121 <version>1.18.32</version> <!-- 请根据需要选择最新版本 -->
122 <scope>provided</scope>
123 </dependency>
124
125 <dependency>
126 <groupId>com.jayway.jsonpath</groupId>
127 <artifactId>json-path</artifactId>
128 <version>2.9.0</version>
129 </dependency>
130
22301080a0334732025-05-17 21:38:32 +0800131 <!--tracker 配置-->
132 <dependency>
133 <groupId>com.turn</groupId>
134 <artifactId>ttorrent-tracker</artifactId>
135 <version>1.3.0-SNAPSHOT</version>
136 </dependency>
137 <dependency>
138 <groupId>com.turn</groupId>
139 <artifactId>ttorrent-client</artifactId>
140 <version>1.3.0-SNAPSHOT</version>
141 </dependency>
142 <dependency>
143 <groupId>com.turn</groupId>
144 <artifactId>ttorrent-bencoding</artifactId>
145 <version>1.3.0-SNAPSHOT</version>
146 </dependency>
147
148
223010802ce82b52025-05-27 17:35:04 +0800149 <dependency>
150 <groupId>com.fasterxml.jackson.core</groupId>
151 <artifactId>jackson-databind</artifactId>
152 </dependency>
153 <!-- Jakarta Bean Validation API -->
154 <dependency>
155 <groupId>jakarta.validation</groupId>
156 <artifactId>jakarta.validation-api</artifactId>
157 </dependency>
158
159 <!-- Hibernate Validator(实现) -->
160 <dependency>
161 <groupId>org.hibernate.validator</groupId>
162 <artifactId>hibernate-validator</artifactId>
163 </dependency>
164
22301080fd521b02025-04-24 23:22:49 +0800165 </dependencies>
166
167 <build>
168 <plugins>
169 <!-- Maven 编译插件 -->
170 <plugin>
171 <groupId>org.apache.maven.plugins</groupId>
172 <artifactId>maven-compiler-plugin</artifactId>
173 <version>3.13.0</version>
174 <configuration>
175 <source>${java.version}</source>
176 <target>${java.version}</target>
177 </configuration>
178 </plugin>
179
180 <!-- 解决 Mockito 警告 -->
181 <plugin>
182 <groupId>org.apache.maven.plugins</groupId>
183 <artifactId>maven-surefire-plugin</artifactId>
184 <version>3.5.2</version>
185 <configuration>
186 <argLine>
187 -javaagent:"${settings.localRepository}/net/bytebuddy/byte-buddy-agent/1.15.11/byte-buddy-agent-1.15.11.jar"
188 </argLine>
189 </configuration>
190 </plugin>
191 </plugins>
192 </build>
193</project>