Skip to content

Switch to Sonatype central plugin and disable publishing for examples#15

Merged
mercyblitz merged 2 commits intoreleasefrom
dev
Mar 17, 2026
Merged

Switch to Sonatype central plugin and disable publishing for examples#15
mercyblitz merged 2 commits intoreleasefrom
dev

Conversation

@mercyblitz
Copy link
Copy Markdown
Contributor

No description provided.

Replace the old maven-deploy-plugin entry with org.sonatype.central:central-publishing-maven-plugin and update its config from <skip>true</skip> to <skipPublishing>false</skipPublishing>. This switches the build to use Sonatype's central publishing plugin and enables publishing to Maven Central instead of skipping deployment.
Set <skipPublishing>true</skipPublishing> in microsphere-logging-examples/pom.xml for the central-publishing-maven-plugin to prevent the examples module from being published and avoid accidental release of example artifacts.
@mercyblitz mercyblitz merged commit 31f1ffc into release Mar 17, 2026
10 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@augmentcode
Copy link
Copy Markdown

augmentcode Bot commented Mar 17, 2026

🤖 Augment PR Summary

Summary: Updates the examples module’s build publishing configuration to align with Sonatype Central.

Changes:

  • Replaces the previous `maven-deploy-plugin` skip with `org.sonatype.central:central-publishing-maven-plugin`
  • Sets `true` to disable publishing for the examples artifact

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode Bot left a comment

Choose a reason for hiding this comment

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

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This plugin entry doesn’t specify a <version>/<extensions>true</extensions> here; if those aren’t inherited via pluginManagement, Maven can resolve an unintended plugin version (or not inject the extension), so skipPublishing may not be applied as expected.

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

<artifactId>central-publishing-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
<skipPublishing>true</skipPublishing>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Since this replaces the old maven-deploy-plugin <skip>true</skip>, please double-check that mvn deploy won’t still attempt to deploy the examples module via the default deploy mechanism (i.e., that this actually prevents publishing in the release workflow).

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

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.

1 participant