blob: 7b65b0578d471d4306935c12acc19023571f410a [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>
18 </properties>
19 <dependencies>
20 <dependency>
21 <groupId>org.springframework.boot</groupId>
22 <artifactId>spring-boot-starter-web</artifactId>
23 </dependency>
24 <dependency>
25 <groupId>org.springframework.boot</groupId>
26 <artifactId>spring-boot-starter-test</artifactId>
27 <scope>test</scope>
28 </dependency>
29 <dependency>
30 <groupId>org.springframework.boot</groupId>
31 <artifactId>spring-boot-devtools</artifactId>
32 <optional>true</optional>
33 </dependency>
34 <dependency>
35 <groupId>org.springframework.boot</groupId>
36 <artifactId>spring-boot-starter-jdbc</artifactId>
37 </dependency>
38 <!-- Spring boot 核心 -->
39 <dependency>
40 <groupId>org.springframework.boot</groupId>
41 <artifactId>spring-boot-starter-data-jpa</artifactId>
42 </dependency>
43 <dependency>
44 <groupId>org.lionsoul</groupId>
45 <artifactId>ip2region</artifactId>
46 <version>1.7.2</version>
47 </dependency>
48 <!-- MyBatis Plus -->
49 <dependency>
50 <groupId>com.baomidou</groupId>
51 <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
52 <version>3.5.10.1</version>
53 </dependency>
22301080a0334732025-05-17 21:38:32 +080054
Lambda6f532bd2025-05-14 15:22:57 +080055 <dependency>
56 <groupId>com.baomidou</groupId>
57 <artifactId>mybatis-plus-jsqlparser</artifactId>
58 <version>3.5.10.1</version> <!-- 确保版本和 MyBatis Plus 主包一致 -->
59 </dependency>
22301080fd521b02025-04-24 23:22:49 +080060 <!-- 数据库-->
61 <!-- Mysql依赖包 -->
62 <dependency>
63 <groupId>mysql</groupId>
64 <artifactId>mysql-connector-java</artifactId>
65 <version>8.0.25</version>
66 <scope>runtime</scope>
67 </dependency>
68 <!-- H2 内存数据库 -->
69 <dependency>
70 <groupId>com.h2database</groupId>
71 <artifactId>h2</artifactId>
72 <scope>test</scope>
73 </dependency>
74
75 <!-- druid 数据连接池 -->
76 <dependency>
77 <groupId>com.alibaba</groupId>
78 <artifactId>druid-spring-boot-starter</artifactId>
79 <version>1.1.20</version>
80 </dependency>
81
82 <!-- jwt登录验证 -->
83 <dependency>
84 <groupId>io.jsonwebtoken</groupId>
85 <artifactId>jjwt</artifactId>
86 <version>0.9.1</version>
87 </dependency>
88
89 <!-- 日期数据显示 -->
90 <dependency>
91 <groupId>javax.xml.bind</groupId>
92 <artifactId>jaxb-api</artifactId>
93 <version>2.3.0</version>
94 </dependency>
95 <dependency>
96 <groupId>org.glassfish.jaxb</groupId>
97 <artifactId>jaxb-runtime</artifactId>
98 <version>2.3.0</version>
99 </dependency>
100
101 <!-- 单元测试 -->
102 <dependency>
103 <groupId>junit</groupId>
104 <artifactId>junit</artifactId>
105 <version>4.12</version>
106 </dependency>
107
108 <!-- Mockito -->
109 <dependency>
110 <groupId>org.mockito</groupId>
111 <artifactId>mockito-core</artifactId>
112 <version>${mockito.version}</version>
113 <scope>test</scope>
114 </dependency>
115
Lambda6f532bd2025-05-14 15:22:57 +0800116 <dependency>
117 <groupId>org.projectlombok</groupId>
118 <artifactId>lombok</artifactId>
119 <version>1.18.32</version> <!-- 请根据需要选择最新版本 -->
120 <scope>provided</scope>
121 </dependency>
122
123 <dependency>
124 <groupId>com.jayway.jsonpath</groupId>
125 <artifactId>json-path</artifactId>
126 <version>2.9.0</version>
127 </dependency>
128
22301080a0334732025-05-17 21:38:32 +0800129 <!--tracker 配置-->
130 <dependency>
131 <groupId>com.turn</groupId>
132 <artifactId>ttorrent-tracker</artifactId>
133 <version>1.3.0-SNAPSHOT</version>
134 </dependency>
135 <dependency>
136 <groupId>com.turn</groupId>
137 <artifactId>ttorrent-client</artifactId>
138 <version>1.3.0-SNAPSHOT</version>
139 </dependency>
140 <dependency>
141 <groupId>com.turn</groupId>
142 <artifactId>ttorrent-bencoding</artifactId>
143 <version>1.3.0-SNAPSHOT</version>
144 </dependency>
145
146
22301080fd521b02025-04-24 23:22:49 +0800147 </dependencies>
148
149 <build>
150 <plugins>
151 <!-- Maven 编译插件 -->
152 <plugin>
153 <groupId>org.apache.maven.plugins</groupId>
154 <artifactId>maven-compiler-plugin</artifactId>
155 <version>3.13.0</version>
156 <configuration>
157 <source>${java.version}</source>
158 <target>${java.version}</target>
159 </configuration>
160 </plugin>
161
162 <!-- 解决 Mockito 警告 -->
163 <plugin>
164 <groupId>org.apache.maven.plugins</groupId>
165 <artifactId>maven-surefire-plugin</artifactId>
166 <version>3.5.2</version>
167 <configuration>
168 <argLine>
169 -javaagent:"${settings.localRepository}/net/bytebuddy/byte-buddy-agent/1.15.11/byte-buddy-agent-1.15.11.jar"
170 </argLine>
171 </configuration>
172 </plugin>
173 </plugins>
174 </build>
175</project>