Skip to content

Comments

Migrate publishing from legacy OSSRH to Maven Central Portal#1747

Merged
joelittlejohn merged 1 commit intomasterfrom
maven-central-portal
Jan 31, 2026
Merged

Migrate publishing from legacy OSSRH to Maven Central Portal#1747
joelittlejohn merged 1 commit intomasterfrom
maven-central-portal

Conversation

@joelittlejohn
Copy link
Owner

A few steps involved here, which are hard to verify until we need to do a full release:

  • Remove oss-parent:9 inheritance
  • Add central-publishing-maven-plugin for direct Central Portal publishing
  • Add distributionManagement for snapshot repository
  • Consolidate release profiles (merge release-sign-artifacts into release)
  • Update release script to remove manual OSSRH steps
  • Fix dependency version conflicts:
    • JUnit BOM: 5.13.2 → 5.13.4 (match mockito requirement)
    • maven-shared-utils: 3.3.4 → 3.4.2 (match maven-core)
    • maven-plugin-api: 2.2.1 → 3.9.11 (match maven-core)

@joelittlejohn joelittlejohn force-pushed the maven-central-portal branch 2 times, most recently from b7b52f7 to 2d8821f Compare January 25, 2026 22:56
@unkish
Copy link
Collaborator

unkish commented Jan 26, 2026

Question: as it's rather hard to verify - would it make sense to try out with a "release candidate" version ?
Similar to jackson-core - https://mvnrepository.com/artifact/tools.jackson.core/jackson-core/3.0.0-rc1

P.S. wondering also whether jsonschema2pojo-gradle-plugin would need any changes ?

@joelittlejohn
Copy link
Owner Author

Yes definitely agree. I've successfully pushed a snapshot to Central and this worked well. When we come to release we'll see if there's any tweaks to make on the Gradle build & publish.

@joelittlejohn
Copy link
Owner Author

At some point soon I want to move the release script to GitHub actions and add relevant secrets to GitHub.

@unkish
Copy link
Collaborator

unkish commented Jan 26, 2026

At some point soon I want to move the release script to GitHub actions and add relevant secrets to GitHub.

Sounds really nice !

@joelittlejohn joelittlejohn force-pushed the maven-central-portal branch 2 times, most recently from 014f8fb to e3d7967 Compare January 31, 2026 10:19
- Remove oss-parent:9 inheritance
- Add central-publishing-maven-plugin for direct Central Portal publishing
- Add distributionManagement for snapshot repository
- Consolidate release profiles (merge release-sign-artifacts into release)
- Update release script to remove manual OSSRH steps
- Fix dependency version conflicts:
  - JUnit BOM: 5.13.2 → 5.13.4 (match mockito requirement)
  - maven-shared-utils: 3.3.4 → 3.4.2 (match maven-core)
  - maven-plugin-api: 2.2.1 → 3.9.11 (match maven-core)
- Exclude kotlin dependencies from Moshi
@joelittlejohn joelittlejohn merged commit 63b0967 into master Jan 31, 2026
3 checks passed
@joelittlejohn joelittlejohn deleted the maven-central-portal branch January 31, 2026 10:38
@joelittlejohn joelittlejohn added this to the 1.3.0 milestone Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants