Skip to content

Comments

Add nmcp plugins and refactor Maven release/snapshot config#995

Merged
mattbsox merged 2 commits intoOpenLiberty:mainfrom
mattbsox:maven-central-publishing-update
Aug 27, 2025
Merged

Add nmcp plugins and refactor Maven release/snapshot config#995
mattbsox merged 2 commits intoOpenLiberty:mainfrom
mattbsox:maven-central-publishing-update

Conversation

@mattbsox
Copy link
Member

Changes to allow publishing to Maven Central:

  • Added nmcp and nmcp.aggregation plugins
  • Refactored release/snapshot config in build.gradle
  • Moved Gradle publish-plugin to plugins block
  • New publishing task: publishAggregationToCentralPortal

@mattbsox mattbsox requested a review from cherylking August 27, 2025 00:27
@mattbsox
Copy link
Member Author

The nmcp plugin has a Java 17 requirement. I'll see if I can find a workaround or different plugin.

Copy link
Member

@cherylking cherylking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed in slack, I'd prefer a solution that does not break the Java 8 and 11 builds. If we can have a release_build.gradle just for publishing releases so that the main build.gradle still works for our daily builds and snapshots across all Java levels, that would be ideal.

@mattbsox
Copy link
Member Author

Moved the nmcp plugin config over to release.gradle. We'll pull in the main build.gradle and apply the nmcp plugin in the new file. To run with the release.gradle file add -b release.gradle to your Gradle command.

@mattbsox mattbsox merged commit 1356616 into OpenLiberty:main Aug 27, 2025
12 checks passed
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