Skip to content

Update Deploy Action#24

Merged
ericlmao merged 3 commits intoreleasefrom
snapshot
Feb 12, 2026
Merged

Update Deploy Action#24
ericlmao merged 3 commits intoreleasefrom
snapshot

Conversation

@ericlmao
Copy link
Member

This pull request updates the build and publishing configuration for all Moss modules to streamline and automate publishing to Maven Central. The key changes include adding the Sonatype Central Portal Publisher plugin, simplifying the artifact publishing process, and updating project descriptions. Additionally, the GitHub Actions workflow for deployment is updated to explicitly publish all modules.

Build and Publishing Automation:

  • Added the net.thebugmc.gradle.sonatype-central-portal-publisher plugin (version 1.2.4) to all module build.gradle files (moss, moss-paper, moss-velocity, moss-bungeecord) to enable automated publishing to Maven Central. [1] [2] [3] [4]
  • Introduced a centralPortal configuration block in each module to use credentials from project properties and set publishing type to AUTOMATIC. [1] [2] [3] [4]

Artifact Publishing Simplification:

  • Replaced manual sourcesJar and javadocJar task registration with references to sourcesJar and javadocJar artifacts directly in the publishing block, simplifying the build scripts. [1] [2] [3] [4]

Project Metadata Updates:

  • Updated the description fields in the pom configuration for each module to accurately reflect their purpose (e.g., "Moss Core module", "Moss Paper module", etc.). [1] [2] [3]

CI/CD Workflow Improvements:

  • Modified the GitHub Actions deployment workflow to explicitly publish all modules (:moss, :moss-paper, :moss-velocity, :moss-bungeecord) for both release and snapshot branches, instead of using the generic publish task.

Switch CI and Gradle config to use the Sonatype Central Portal publisher. Workflow now runs publishToSonatypeCentralPortal for release and snapshot branches. Per-module build scripts (moss, moss-paper, moss-velocity, moss-bungeecord) add the net.thebugmc.gradle.sonatype-central-portal-publisher plugin, configure centralPortal credentials/publishingType, and keep signing; module POM descriptions were corrected and shadow/plugin usage adjusted. The root build.gradle's global maven-publish/signing/subprojects publishing block was removed in favor of per-module configuration, and sources/javadoc artifact references were standardized in modules.
Update the CI deploy workflow to call the centralPortalUpload Gradle task instead of publishToSonatypeCentralPortal for both release and snapshot branches. Also add a "List publishing tasks" debug step (./gradlew tasks --group=publishing) to help surface available publishing tasks during runs. The isRelease flag and branch conditions remain unchanged.
Replace the centralPortalUpload invocation with explicit Gradle publish tasks for each subproject (:moss, :moss-paper, :moss-velocity, :moss-bungeecord) for both release and snapshot branches. Remove the debug "List publishing tasks" step; the gradlew executable permission step is unchanged.
@ericlmao ericlmao merged commit b7c30f2 into release Feb 12, 2026
1 check passed
@coderabbitai
Copy link

coderabbitai bot commented Feb 12, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch snapshot

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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