|
36 | 36 | <version.compiler.plugin>3.11.0</version.compiler.plugin> |
37 | 37 | <version.deploy.plugin>3.1.1</version.deploy.plugin> |
38 | 38 | <version.git.plugin>5.0.0</version.git.plugin> |
39 | | - <version.gpg.plugin>1.6</version.gpg.plugin> |
40 | 39 | <version.install.plugin>3.1.1</version.install.plugin> |
41 | | - <version.javadoc.plugin>3..0</version.javadoc.plugin> |
| 40 | + <version.javadoc.plugin>3.5.0</version.javadoc.plugin> |
42 | 41 | <version.jar.plugin>3.3.0</version.jar.plugin> |
43 | | - <version.nexus.plugin>1.6.8</version.nexus.plugin> |
| 42 | + <version.jreleaser.plugin>1.6.0</version.jreleaser.plugin> |
44 | 43 | <version.resources.plugin>3.3.1</version.resources.plugin> |
45 | 44 | <version.source.plugin>3.2.1</version.source.plugin> |
46 | 45 | </properties> |
|
144 | 143 | <scope>test</scope> |
145 | 144 | </dependency> |
146 | 145 | </dependencies> |
| 146 | + |
147 | 147 | <build> |
148 | 148 | <pluginManagement> |
149 | 149 | <plugins> |
|
162 | 162 | <artifactId>maven-deploy-plugin</artifactId> |
163 | 163 | <version>${version.deploy.plugin}</version> |
164 | 164 | </plugin> |
165 | | - <plugin> |
166 | | - <groupId>org.apache.maven.plugins</groupId> |
167 | | - <artifactId>maven-gpg-plugin</artifactId> |
168 | | - <version>${version.gpg.plugin}</version> |
169 | | - </plugin> |
170 | 165 | <plugin> |
171 | 166 | <groupId>org.apache.maven.plugins</groupId> |
172 | 167 | <artifactId>maven-install-plugin</artifactId> |
|
192 | 187 | <artifactId>maven-source-plugin</artifactId> |
193 | 188 | <version>${version.source.plugin}</version> |
194 | 189 | </plugin> |
195 | | - <plugin> |
196 | | - <groupId>org.sonatype.plugins</groupId> |
197 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
198 | | - <version>${version.nexus.plugin}</version> |
199 | | - </plugin> |
200 | 190 | </plugins> |
201 | 191 | </pluginManagement> |
202 | 192 | <plugins> |
|
274 | 264 | </plugins> |
275 | 265 | </build> |
276 | 266 |
|
277 | | - <distributionManagement> |
278 | | - <repository> |
279 | | - <id>ossrh</id> |
280 | | - <url>${nexus.url}/service/local/staging/deploy/maven2/</url> |
281 | | - </repository> |
282 | | - <snapshotRepository> |
283 | | - <id>ossrh</id> |
284 | | - <url>${nexus.url}/content/repositories/snapshots</url> |
285 | | - </snapshotRepository> |
286 | | - <site> |
287 | | - <id>kordamp</id> |
288 | | - < url>scm:git:ssh:// [email protected]/ ${project.github.repository}.git</ url> |
289 | | - </site> |
290 | | - </distributionManagement> |
291 | | - |
292 | 267 | <profiles> |
293 | 268 | <profile> |
294 | 269 | <id>publication</id> |
|
297 | 272 | <name>release</name> |
298 | 273 | </property> |
299 | 274 | </activation> |
| 275 | + <properties> |
| 276 | + <altDeploymentRepository>local::file:./target/staging-deploy</altDeploymentRepository> |
| 277 | + </properties> |
300 | 278 | <build> |
| 279 | + <defaultGoal>deploy</defaultGoal> |
301 | 280 | <plugins> |
302 | 281 | <plugin> |
303 | 282 | <groupId>com.coderplus.maven.plugins</groupId> |
|
352 | 331 | </profile> |
353 | 332 |
|
354 | 333 | <profile> |
355 | | - <id>gpg</id> |
356 | | - <activation> |
357 | | - <property> |
358 | | - <name>release</name> |
359 | | - </property> |
360 | | - </activation> |
361 | | - <build> |
362 | | - <plugins> |
363 | | - <plugin> |
364 | | - <groupId>org.apache.maven.plugins</groupId> |
365 | | - <artifactId>maven-gpg-plugin</artifactId> |
366 | | - <executions> |
367 | | - <execution> |
368 | | - <goals> |
369 | | - <goal>sign</goal> |
370 | | - </goals> |
371 | | - <phase>verify</phase> |
372 | | - <configuration> |
373 | | - <gpgArguments> |
374 | | - <arg>--pinentry-mode</arg> |
375 | | - <arg>loopback</arg> |
376 | | - </gpgArguments> |
377 | | - </configuration> |
378 | | - </execution> |
379 | | - </executions> |
380 | | - </plugin> |
381 | | - </plugins> |
382 | | - </build> |
383 | | - </profile> |
384 | | - |
385 | | - <profile> |
386 | | - <id>remote-deploy</id> |
| 334 | + <id>release</id> |
387 | 335 | <activation> |
388 | 336 | <property> |
389 | 337 | <name>release</name> |
390 | 338 | </property> |
391 | 339 | </activation> |
392 | 340 | <build> |
393 | | - <defaultGoal>deploy</defaultGoal> |
| 341 | + <defaultGoal>jreleaser:full-release</defaultGoal> |
394 | 342 | <plugins> |
395 | 343 | <plugin> |
396 | | - <groupId>org.sonatype.plugins</groupId> |
397 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
398 | | - <extensions>true</extensions> |
| 344 | + <groupId>org.jreleaser</groupId> |
| 345 | + <artifactId>jreleaser-maven-plugin</artifactId> |
399 | 346 | <configuration> |
400 | | - <serverId>central</serverId> |
401 | | - <nexusUrl>${nexus.url}</nexusUrl> |
402 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 347 | + <jreleaser> |
| 348 | + <release> |
| 349 | + <github> |
| 350 | + <issues> |
| 351 | + <enabled>true</enabled> |
| 352 | + </issues> |
| 353 | + <changelog> |
| 354 | + <skipMergeCommits>true</skipMergeCommits> |
| 355 | + <formatted>ALWAYS</formatted> |
| 356 | + <format>- {{commitShortHash}} {{commitTitle}}</format> |
| 357 | + <contributors> |
| 358 | + <format>- {{contributorName}}{{#contributorUsernameAsLink}} ({{.}}){{/contributorUsernameAsLink}}</format> |
| 359 | + </contributors> |
| 360 | + <hide> |
| 361 | + <contributors> |
| 362 | + <contributor>bot</contributor> |
| 363 | + <contributor>Bot</contributor> |
| 364 | + <contributor>GitHub</contributor> |
| 365 | + </contributors> |
| 366 | + </hide> |
| 367 | + </changelog> |
| 368 | + </github> |
| 369 | + </release> |
| 370 | + <signing> |
| 371 | + <active>ALWAYS</active> |
| 372 | + <armored>true</armored> |
| 373 | + </signing> |
| 374 | + <deploy> |
| 375 | + <maven> |
| 376 | + <nexus2> |
| 377 | + <maven-central> |
| 378 | + <active>ALWAYS</active> |
| 379 | + <url>https://s01.oss.sonatype.org/service/local</url> |
| 380 | + <snapshotUrl>https://s01.oss.sonatype.org/content/repositories/snapshots/</snapshotUrl> |
| 381 | + <closeRepository>true</closeRepository> |
| 382 | + <releaseRepository>true</releaseRepository> |
| 383 | + <stagingRepositories>target/staging-deploy</stagingRepositories> |
| 384 | + </maven-central> |
| 385 | + </nexus2> |
| 386 | + </maven> |
| 387 | + </deploy> |
| 388 | + </jreleaser> |
403 | 389 | </configuration> |
404 | 390 | </plugin> |
405 | 391 | </plugins> |
|
0 commit comments