|
21 | 21 | plugins { |
22 | 22 | id 'com.github.johnrengelman.shadow' version '8.1.1' |
23 | 23 | id 'com.github.spotbugs' version '6.1.13' |
24 | | - id 'org.jreleaser' version '1.19.0' |
| 24 | + id 'org.jreleaser' version '1.20.0' |
25 | 25 | id 'com.diffplug.spotless' version '6.13.0' |
26 | 26 | } |
27 | 27 |
|
@@ -437,63 +437,71 @@ jreleaser { |
437 | 437 | } |
438 | 438 |
|
439 | 439 | deploy { |
440 | | - maven { |
441 | | - nexus2 { |
442 | | - 'maven-central' { |
443 | | - stagingProfileId = '9b746c9f8abc1' |
444 | | - active = 'ALWAYS' |
445 | | - url = 'https://oss.sonatype.org/service/local' |
446 | | - snapshotUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' |
447 | | - closeRepository = true |
448 | | - releaseRepository = true |
449 | | - stagingRepository('api/build/pre-deploy') |
450 | | - } |
451 | | - } |
452 | | - } |
453 | | - maven { |
454 | | - nexus2 { |
455 | | - 'maven-central' { |
456 | | - stagingProfileId = '9b746c9f8abc1' |
457 | | - active = 'ALWAYS' |
458 | | - url = 'https://oss.sonatype.org/service/local' |
459 | | - snapshotUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' |
460 | | - closeRepository = true |
461 | | - releaseRepository = true |
462 | | - stagingRepository('adminapi/build/pre-deploy') |
463 | | - } |
464 | | - } |
465 | | - } |
466 | | - // For newly created repositories |
467 | | - // maven { |
468 | | - // mavenCentral { |
469 | | - // sonatype { |
470 | | - // applyMavenCentralRules = true |
471 | | - // active = 'ALWAYS' |
472 | | - // url = 'https://central.sonatype.com/api/v1/publisher' |
473 | | - // username = findProperty('nexusUsername') ?: System.getenv('NEXUS_USERNAME') |
474 | | - // password = findProperty('nexusPassword') ?: System.getenv('NEXUS_PASSWORD') |
475 | | - // stagingRepository('api/build/pre-deploy') |
476 | | - // } |
477 | | - // } |
478 | | - // } |
479 | | - // |
480 | | - // maven { |
481 | | - // mavenCentral { |
482 | | - // sonatype { |
483 | | - // applyMavenCentralRules = true |
484 | | - // active = 'ALWAYS' |
485 | | - // url = 'https://central.sonatype.com/api/v1/publisher' |
486 | | - // username = findProperty('nexusUsername') ?: System.getenv('NEXUS_USERNAME') |
487 | | - // password = findProperty('nexusPassword') ?: System.getenv('NEXUS_PASSWORD') |
488 | | - // stagingRepository('adminapi/build/pre-deploy') |
489 | | - // } |
490 | | - // } |
491 | | - // } |
| 440 | + maven { |
| 441 | + mavenCentral { |
| 442 | + sonatype { |
| 443 | + applyMavenCentralRules = true |
| 444 | + active = 'ALWAYS' |
| 445 | + url = 'https://central.sonatype.com/api/v1/publisher' |
| 446 | + username = findProperty('nexusUsername') ?: System.getenv('NEXUS_USERNAME') |
| 447 | + password = findProperty('nexusPassword') ?: System.getenv('NEXUS_PASSWORD') |
| 448 | + stagingRepository('api/build/pre-deploy') |
| 449 | + } |
| 450 | + } |
| 451 | + /* Legacy OSSRH |
| 452 | + nexus2 { |
| 453 | + 'maven-central' { |
| 454 | + stagingProfileId = '9b746c9f8abc1' |
| 455 | + active = 'ALWAYS' |
| 456 | + // Use url |
| 457 | + // 'https://s01.oss.sonatype.org/service/local' |
| 458 | + // for error 'Could not find a staging profile matching …'. |
| 459 | + // Refer https://jreleaser.org/guide/latest/examples/maven/maven-central.html#_ossrh |
| 460 | + url = project.findProperty("sonatypeUrl") ?: 'https://oss.sonatype.org/service/local' |
| 461 | + snapshotUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' |
| 462 | + closeRepository = true |
| 463 | + releaseRepository = project.findProperty("releaseRepository")?.toBoolean() ?: false |
| 464 | + stagingRepository('api/build/pre-deploy') |
| 465 | + } |
| 466 | + } |
| 467 | + */ |
| 468 | + } |
| 469 | + maven { |
| 470 | + mavenCentral { |
| 471 | + sonatype { |
| 472 | + applyMavenCentralRules = true |
| 473 | + active = 'ALWAYS' |
| 474 | + url = 'https://central.sonatype.com/api/v1/publisher' |
| 475 | + username = findProperty('nexusUsername') ?: System.getenv('NEXUS_USERNAME') |
| 476 | + password = findProperty('nexusPassword') ?: System.getenv('NEXUS_PASSWORD') |
| 477 | + stagingRepository('adminapi/build/pre-deploy') |
| 478 | + } |
| 479 | + } |
| 480 | + /* Legacy OSSRH |
| 481 | + nexus2 { |
| 482 | + 'maven-central' { |
| 483 | + stagingProfileId = '9b746c9f8abc1' |
| 484 | + active = 'ALWAYS' |
| 485 | + // Use url |
| 486 | + // 'https://s01.oss.sonatype.org/service/local' |
| 487 | + // for error 'Could not find a staging profile matching …'. |
| 488 | + // Refer https://jreleaser.org/guide/latest/examples/maven/maven-central.html#_ossrh |
| 489 | + url = project.findProperty("sonatypeUrl") ?: 'https://oss.sonatype.org/service/local' |
| 490 | + snapshotUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' |
| 491 | + closeRepository = true |
| 492 | + releaseRepository = project.findProperty("releaseRepository")?.toBoolean() ?: false |
| 493 | + stagingRepository('adminapi/build/pre-deploy') |
| 494 | + } |
| 495 | + } |
| 496 | + */ |
| 497 | + } |
492 | 498 | } |
493 | 499 |
|
494 | 500 | release { |
495 | 501 | github { |
496 | | - enabled = false |
| 502 | + skipRelease = true |
| 503 | + skipTag = true |
| 504 | + token = 'placeholder-token' |
497 | 505 | } |
498 | 506 | } |
499 | 507 | } |
0 commit comments