|
8 | 8 | <version>2.0.x.20260630-SNAPSHOT</version> |
9 | 9 | <packaging>jar</packaging> |
10 | 10 | <description>SocketIO extensions and utilities</description> |
11 | | - |
12 | 11 | <!-- 开源协议采用 Apache 2.0 协议 --> |
13 | 12 | <licenses> |
14 | 13 | <license> |
15 | 14 | <name>The Apache Software License, Version 2.0</name> |
16 | 15 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
17 | 16 | </license> |
18 | 17 | </licenses> |
19 | | - |
20 | 18 | <!-- 源码仓库(SCM)信息 --> |
21 | 19 | <scm> |
22 | 20 | <connection>scm:git:https://github.com/easy-4-java/${project.artifactId}.git</connection> |
23 | 21 | <developerConnection>scm:git:https://github.com/easy-4-java/${project.artifactId}.git</developerConnection> |
24 | 22 | <url>https://github.com/easy-4-java/${project.artifactId}</url> |
25 | 23 | <tag>${project.artifactId}</tag> |
26 | 24 | </scm> |
27 | | - |
28 | 25 | <!-- 开发者信息 --> |
29 | 26 | <developers> |
30 | 27 | <developer> |
|
37 | 34 | <timezone>+8</timezone> |
38 | 35 | </developer> |
39 | 36 | </developers> |
40 | | - |
41 | 37 | <!-- 版本属性定义:Java 版本、依赖版本与 Maven 插件版本统一管理 --> |
42 | 38 | <properties> |
43 | | -<!-- ═══ 第一段: 基础属性(自然排序)═══ --> |
44 | | - <java.version>17</java.version> |
45 | | - <maven.compiler.release>${java.version}</maven.compiler.release> |
46 | | - <maven.version>3.9.16</maven.version> |
47 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
48 | | - <!-- Dependency versions --> |
49 | | - <junit-jupiter.version>6.1.0</junit-jupiter.version> |
50 | | - <lombok.version>1.18.46</lombok.version> |
51 | | - <redisson.version>3.36.0</redisson.version> |
52 | | - <slf4j.version>2.0.18</slf4j.version> |
53 | | - <socketio.version>2.0.11</socketio.version> |
54 | | - <spring-framework.version>5.3.39</spring-framework.version> |
55 | | - <!-- Maven Plugin versions --> |
56 | | - <maven-central-publishing-plugin.version>0.11.0</maven-central-publishing-plugin.version> |
57 | | - <maven-compiler-plugin.version>3.15.0</maven-compiler-plugin.version> |
58 | | - <maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version> |
59 | | - <maven-jacoco-plugin.version>0.8.15</maven-jacoco-plugin.version> |
60 | | - <maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version> |
61 | | - <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
| 39 | + <!-- ═══ 第一段: 基础属性(自然排序)═══ --> |
| 40 | + <java.version>17</java.version> |
| 41 | + <maven.compiler.release>${java.version}</maven.compiler.release> |
| 42 | + <maven.version>3.9.16</maven.version> |
| 43 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 44 | + <!-- Dependency versions --> |
| 45 | + <junit-jupiter.version>6.1.0</junit-jupiter.version> |
| 46 | + <lombok.version>1.18.46</lombok.version> |
| 47 | + <redisson.version>3.36.0</redisson.version> |
| 48 | + <slf4j.version>2.0.18</slf4j.version> |
| 49 | + <socketio.version>2.0.11</socketio.version> |
| 50 | + <spring-framework.version>5.3.39</spring-framework.version> |
| 51 | + <!-- Maven Plugin versions --> |
| 52 | + <maven-central-publishing-plugin.version>0.11.0</maven-central-publishing-plugin.version> |
| 53 | + <maven-compiler-plugin.version>3.15.0</maven-compiler-plugin.version> |
| 54 | + <maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version> |
| 55 | + <maven-jacoco-plugin.version>0.8.15</maven-jacoco-plugin.version> |
| 56 | + <maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version> |
| 57 | + <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
62 | 58 | </properties> |
63 | | - |
64 | 59 | <!-- 依赖版本统一管理(dependencyManagement) --> |
65 | 60 | <dependencyManagement> |
66 | 61 | <dependencies> |
|
97 | 92 | </dependency> |
98 | 93 | </dependencies> |
99 | 94 | </dependencyManagement> |
100 | | - |
101 | 95 | <!-- 项目依赖(dependencies) --> |
102 | 96 | <dependencies> |
103 | 97 | <!-- For Lombok --> |
|
141 | 135 | <scope>test</scope> |
142 | 136 | </dependency> |
143 | 137 | </dependencies> |
144 | | - |
145 | 138 | <!-- 构建 Profile 配置 --> |
146 | 139 | <profiles> |
147 | 140 | <!-- 发布到 Maven Central Portal:mvn -Pcentral deploy(GPG 签名 + 源码 + Javadoc + Central 发布插件) --> |
148 | | - |
149 | 141 | <profile> |
150 | 142 | <id>central</id> |
151 | 143 | </profile> |
|
165 | 157 | <build> |
166 | 158 | <pluginManagement> |
167 | 159 | <plugins> |
168 | | - |
169 | 160 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
170 | 161 | <plugin> |
171 | 162 | <!-- 编译插件:编译主代码至主输出目录 --> |
172 | 163 | <groupId>org.apache.maven.plugins</groupId> |
173 | 164 | <artifactId>maven-compiler-plugin</artifactId> |
174 | 165 | <version>${maven-compiler-plugin.version}</version> |
175 | 166 | <configuration> |
176 | | - </configuration> |
| 167 | + </configuration> |
177 | 168 | </plugin> |
178 | 169 | </plugins> |
179 | 170 | </pluginManagement> |
180 | 171 | <plugins> |
181 | | - |
182 | 172 | <!-- https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin --> |
183 | 173 | <plugin> |
184 | 174 | <!-- 覆盖率插件:生成覆盖率报告并校验测试覆盖率(目标 90%) --> |
|
223 | 213 | </execution> |
224 | 214 | </executions> |
225 | 215 | </plugin> |
226 | | - |
227 | 216 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
228 | 217 | <plugin> |
229 | 218 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
246 | 235 | </annotationProcessorPaths> |
247 | 236 | </configuration> |
248 | 237 | </plugin> |
249 | | - |
250 | 238 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin --> |
251 | 239 | <plugin> |
252 | 240 | <!-- 文档插件:发布时自动生成 Javadoc 并发布 --> |
|
266 | 254 | </execution> |
267 | 255 | </executions> |
268 | 256 | </plugin> |
269 | | - |
270 | 257 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> |
271 | 258 | <plugin> |
272 | 259 | <!-- 源码插件:发布时自动将源码同时发布 --> |
|
0 commit comments