168168 </dependencyManagement >
169169
170170 <distributionManagement >
171+ <snapshotRepository >
172+ <id >ossrh</id >
173+ <url >https://oss.sonatype.org/content/repositories/snapshots</url >
174+ </snapshotRepository >
171175 <repository >
172176 <id >ossrh</id >
173177 <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
174178 </repository >
175179 </distributionManagement >
176180
177- <profiles >
178- <profile >
179- <id >java21-doclint-disabled</id >
180- <activation >
181- <jdk >[21,)</jdk >
182- </activation >
183- <properties >
184- <javadoc .opts>-Xdoclint:none</javadoc .opts>
185- </properties >
186- </profile >
187- </profiles >
188-
189181 <build >
190182 <plugins >
191183 <plugin >
192184 <groupId >org.apache.maven.plugins</groupId >
193185 <artifactId >maven-compiler-plugin</artifactId >
194- <version >3.1 </version >
186+ <version >3.11.0 </version >
195187 <configuration >
196188 <source >21</source >
197189 <target >21</target >
198190 <encoding >UTF-8</encoding >
191+ <compilerArgs >
192+ <arg >-parameters</arg >
193+ </compilerArgs >
194+ </configuration >
195+ </plugin >
196+ <plugin >
197+ <groupId >org.apache.maven.plugins</groupId >
198+ <artifactId >maven-resources-plugin</artifactId >
199+ <version >3.3.1</version >
200+ <configuration >
201+ <encoding >UTF-8</encoding >
199202 </configuration >
200203 </plugin >
201204 <plugin >
202205 <groupId >org.apache.maven.plugins</groupId >
203206 <artifactId >maven-source-plugin</artifactId >
204- <version >2.2.1 </version >
207+ <version >3.3.0 </version >
205208 <executions >
206209 <execution >
207210 <id >attach-sources</id >
214217 <plugin >
215218 <groupId >org.apache.maven.plugins</groupId >
216219 <artifactId >maven-javadoc-plugin</artifactId >
217- <version >2.9</version >
220+ <version >3.6.3</version >
221+ <configuration >
222+ <encoding >UTF-8</encoding >
223+ <charset >UTF-8</charset >
224+ <docencoding >UTF-8</docencoding >
225+ <doclint >none</doclint >
226+ <source >21</source >
227+ </configuration >
218228 <executions >
219229 <execution >
220230 <id >attach-javadocs</id >
221231 <goals >
222232 <goal >jar</goal >
223233 </goals >
224- <configuration >
225- <javadocExecutable >${java.home} /../bin/javadoc</javadocExecutable >
226- <additionalparam >${javadoc.opts} </additionalparam >
227- </configuration >
228- </execution >
229- </executions >
230- </plugin >
231- <plugin >
232- <groupId >org.apache.maven.plugins</groupId >
233- <artifactId >maven-gpg-plugin</artifactId >
234- <version >1.5</version >
235- <executions >
236- <execution >
237- <id >ossrh</id >
238- <phase >verify</phase >
239- <goals >
240- <goal >sign</goal >
241- </goals >
242- <configuration >
243- <gpgArguments >
244- <arg >--pinentry-mode</arg >
245- <arg >loopback</arg >
246- </gpgArguments >
247- </configuration >
248234 </execution >
249235 </executions >
250236 </plugin >
251237 </plugins >
252238 </build >
253239
240+ <profiles >
241+ <profile >
242+ <id >java21-doclint-disabled</id >
243+ <activation >
244+ <jdk >[21,)</jdk >
245+ </activation >
246+ <properties >
247+ <javadoc .opts>-Xdoclint:none</javadoc .opts>
248+ </properties >
249+ </profile >
250+ <profile >
251+ <id >release</id >
252+ <build >
253+ <plugins >
254+ <plugin >
255+ <groupId >org.apache.maven.plugins</groupId >
256+ <artifactId >maven-gpg-plugin</artifactId >
257+ <version >3.2.5</version >
258+ <executions >
259+ <execution >
260+ <id >ossrh</id >
261+ <phase >verify</phase >
262+ <goals >
263+ <goal >sign</goal >
264+ </goals >
265+ <configuration >
266+ <gpgArguments >
267+ <arg >--pinentry-mode</arg >
268+ <arg >loopback</arg >
269+ </gpgArguments >
270+ </configuration >
271+ </execution >
272+ </executions >
273+ </plugin >
274+ <plugin >
275+ <groupId >org.sonatype.central</groupId >
276+ <artifactId >central-publishing-maven-plugin</artifactId >
277+ <version >0.5.0</version >
278+ <extensions >true</extensions >
279+ <configuration >
280+ <publishingServerId >ossrh</publishingServerId >
281+ </configuration >
282+ </plugin >
283+ </plugins >
284+ </build >
285+ </profile >
286+ </profiles >
287+
254288</project >
0 commit comments