2
2
<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" >
3
3
<modelVersion >4.0.0</modelVersion >
4
4
<groupId >io.github.kavahub</groupId >
5
- <artifactId >async-file</artifactId >
5
+ <artifactId >kavahub- async-file</artifactId >
6
6
<version >1.0.0-SNA</version >
7
- <name >async-file</name >
7
+ <name >kavahub- async-file</name >
8
8
<packaging >jar</packaging >
9
9
10
10
<description >
14
14
<url >https://gitee.com/yangyunjiao/async-file</url >
15
15
<licenses >
16
16
<license >
17
- <name >MIT license</name >
18
- <url >https://opensource.org/licenses/MIT</url >
17
+ <name >MIT license</name >
18
+ <url >https://opensource.org/licenses/MIT</url >
19
19
</license >
20
- </licenses >
20
+ </licenses >
21
21
<developers >
22
22
<developer >
23
23
<name >PinWei Wan</name >
50
50
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
51
51
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
52
52
<argLine >-Dfile.encoding=UTF-8</argLine >
53
- </properties >
54
53
55
- <dependencyManagement >
56
- <dependencies >
57
- <dependency >
58
- <groupId >org.junit</groupId >
59
- <artifactId >junit-bom</artifactId >
60
- <version >5.8.1</version >
61
- <type >pom</type >
62
- <scope >import</scope >
63
- </dependency >
64
- </dependencies >
65
- </dependencyManagement >
54
+ <!-- maven plugin -->
55
+ <maven-surefire-plugin .version>3.0.0-M5</maven-surefire-plugin .version>
56
+ <maven-release-plugin .veriosn>3.0.0-M4</maven-release-plugin .veriosn>
57
+ <maven-gpg-plugin .version>3.0.1</maven-gpg-plugin .version>
58
+ <maven-source-plugin .version>3.2.1</maven-source-plugin .version>
59
+ <maven-javadoc-plugin .version>3.3.1</maven-javadoc-plugin .version>
60
+ <maven-compiler-plugin .version>3.8.1</maven-compiler-plugin .version>
61
+
62
+ <!-- thrid lib -->
63
+ <junit-jupiter .version>5.8.1</junit-jupiter .version>
64
+ <slf4j-api .version>1.7.32</slf4j-api .version>
65
+ <jmh-generator-annprocess .version>1.33</jmh-generator-annprocess .version>
66
+ <testng .version>7.4.0</testng .version>
67
+ <assertj-core .version>3.21.0</assertj-core .version>
68
+ <logback-classic .version>1.2.7</logback-classic .version>
69
+ <lombok .version>1.18.20</lombok .version>
70
+ </properties >
66
71
67
72
<dependencies >
68
73
<dependency >
69
74
<groupId >org.slf4j</groupId >
70
75
<artifactId >slf4j-api</artifactId >
71
- <version >2.0.0-alpha4 </version >
76
+ <version >${slf4j-api.version} </version >
72
77
</dependency >
73
78
74
79
<dependency >
75
80
<groupId >org.openjdk.jmh</groupId >
76
81
<artifactId >jmh-generator-annprocess</artifactId >
77
- <version >1.33 </version >
82
+ <version >${jmh-generator-annprocess.version} </version >
78
83
<scope >provided</scope >
79
84
</dependency >
80
85
81
86
<!-- test -->
82
87
<dependency >
83
88
<groupId >org.junit.jupiter</groupId >
84
89
<artifactId >junit-jupiter</artifactId >
85
- <scope >test</scope >
86
- </dependency >
87
-
88
- <dependency >
89
- <groupId >org.testng</groupId >
90
- <artifactId >testng</artifactId >
91
- <version >7.4.0</version >
90
+ <version >${junit-jupiter.version} </version >
92
91
<scope >test</scope >
93
92
</dependency >
94
93
95
94
<dependency >
96
95
<groupId >org.assertj</groupId >
97
96
<artifactId >assertj-core</artifactId >
98
- <version >3.21.0 </version >
97
+ <version >${assertj-core.version} </version >
99
98
<scope >test</scope >
100
99
</dependency >
101
100
102
101
<dependency >
103
102
<groupId >ch.qos.logback</groupId >
104
103
<artifactId >logback-classic</artifactId >
105
- <version >1.3.0-alpha10</version >
104
+ <version >${logback-classic.version} </version >
105
+ <scope >test</scope >
106
+ </dependency >
107
+
108
+ <dependency >
109
+ <groupId >org.testng</groupId >
110
+ <artifactId >testng</artifactId >
111
+ <version >${testng.version} </version >
106
112
<scope >test</scope >
107
113
</dependency >
108
114
109
115
<dependency >
110
116
<groupId >org.projectlombok</groupId >
111
117
<artifactId >lombok</artifactId >
112
- <version >1.18.20 </version >
118
+ <version >${lombok.version} </version >
113
119
<scope >provided</scope >
114
120
</dependency >
115
121
</dependencies >
130
136
<plugin >
131
137
<groupId >org.apache.maven.plugins</groupId >
132
138
<artifactId >maven-surefire-plugin</artifactId >
133
- <version >3.0.0-M5 </version >
139
+ <version >${maven-surefire-plugin.version} </version >
134
140
<configuration >
135
141
<parallel >methods</parallel >
136
142
<threadCount >10</threadCount >
139
145
</suiteXmlFiles >
140
146
</configuration >
141
147
</plugin >
142
-
143
- <plugin >
144
- <groupId >org.apache.maven.plugins</groupId >
145
- <artifactId >maven-release-plugin</artifactId >
146
- <version >3.0.0-M4</version >
147
- <configuration >
148
- <autoVersionSubmodules >true</autoVersionSubmodules >
149
- <useReleaseProfile >false</useReleaseProfile >
150
- <releaseProfiles >release</releaseProfiles >
151
- <goals >deploy</goals >
152
- <pushChanges >false</pushChanges >
153
- </configuration >
154
- </plugin >
155
-
156
- <plugin >
157
- <groupId >org.apache.maven.plugins</groupId >
158
- <artifactId >maven-gpg-plugin</artifactId >
159
- <version >3.0.1</version >
160
- <executions >
161
- <execution >
162
- <id >sign-artifacts</id >
163
- <phase >verify</phase >
164
- <goals >
165
- <goal >sign</goal >
166
- </goals >
167
- </execution >
168
- </executions >
169
- </plugin >
170
-
171
- <plugin >
172
- <groupId >org.apache.maven.plugins</groupId >
173
- <artifactId >maven-source-plugin</artifactId >
174
- <version >3.2.1</version >
175
- <executions >
176
- <execution >
177
- <id >attach-sources</id >
178
- <goals >
179
- <goal >jar-no-fork</goal >
180
- </goals >
181
- </execution >
182
- </executions >
183
- </plugin >
184
-
185
- <plugin >
186
- <groupId >org.apache.maven.plugins</groupId >
187
- <artifactId >maven-javadoc-plugin</artifactId >
188
- <version >3.3.1</version >
189
- <executions >
190
- <execution >
191
- <id >attach-javadocs</id >
192
- <goals >
193
- <goal >jar</goal >
194
- </goals >
195
- </execution >
196
- </executions >
197
- </plugin >
148
+
198
149
<plugin >
199
150
<groupId >org.apache.maven.plugins</groupId >
200
151
<artifactId >maven-compiler-plugin</artifactId >
201
- <version >3.8.1 </version >
152
+ <version >${maven-compiler-plugin.version} </version >
202
153
</plugin >
203
154
</plugins >
204
155
</build >
156
+
157
+ <profiles >
158
+ <profile >
159
+ <id >release</id >
160
+
161
+ <build >
162
+ <plugins >
163
+ <plugin >
164
+ <groupId >org.apache.maven.plugins</groupId >
165
+ <artifactId >maven-surefire-plugin</artifactId >
166
+ <version >${maven-surefire-plugin.version} </version >
167
+ <configuration >
168
+ <parallel >methods</parallel >
169
+ <threadCount >10</threadCount >
170
+ <suiteXmlFiles >
171
+ <file >testng.xml</file >
172
+ </suiteXmlFiles >
173
+ </configuration >
174
+ </plugin >
175
+
176
+ <plugin >
177
+ <groupId >org.apache.maven.plugins</groupId >
178
+ <artifactId >maven-release-plugin</artifactId >
179
+ <version >${maven-release-plugin.version} </version >
180
+ <configuration >
181
+ <autoVersionSubmodules >true</autoVersionSubmodules >
182
+ <useReleaseProfile >false</useReleaseProfile >
183
+ <releaseProfiles >release</releaseProfiles >
184
+ <goals >deploy</goals >
185
+ <pushChanges >false</pushChanges >
186
+ </configuration >
187
+ </plugin >
188
+
189
+ <plugin >
190
+ <groupId >org.apache.maven.plugins</groupId >
191
+ <artifactId >maven-gpg-plugin</artifactId >
192
+ <version >${maven-gpg-plugin.version} </version >
193
+ <executions >
194
+ <execution >
195
+ <id >sign-artifacts</id >
196
+ <phase >verify</phase >
197
+ <goals >
198
+ <goal >sign</goal >
199
+ </goals >
200
+ </execution >
201
+ </executions >
202
+ </plugin >
203
+
204
+ <plugin >
205
+ <groupId >org.apache.maven.plugins</groupId >
206
+ <artifactId >maven-source-plugin</artifactId >
207
+ <version >${maven-source-plugin.version} </version >
208
+ <executions >
209
+ <execution >
210
+ <id >attach-sources</id >
211
+ <goals >
212
+ <goal >jar-no-fork</goal >
213
+ </goals >
214
+ </execution >
215
+ </executions >
216
+ </plugin >
217
+
218
+ <plugin >
219
+ <groupId >org.apache.maven.plugins</groupId >
220
+ <artifactId >maven-javadoc-plugin</artifactId >
221
+ <version >${maven-javadoc-plugin.version} </version >
222
+ <executions >
223
+ <execution >
224
+ <id >attach-javadocs</id >
225
+ <goals >
226
+ <goal >jar</goal >
227
+ </goals >
228
+ </execution >
229
+ </executions >
230
+ </plugin >
231
+ <plugin >
232
+ <groupId >org.apache.maven.plugins</groupId >
233
+ <artifactId >maven-compiler-plugin</artifactId >
234
+ <version >${maven-compiler-plugin.version} </version >
235
+ <configuration >
236
+ <source >1.8</source >
237
+ <target >1.8</target >
238
+ </configuration >
239
+ </plugin >
240
+ </plugins >
241
+ </build >
242
+ </profile >
243
+ </profiles >
205
244
</project >
0 commit comments