Conversation
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.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
net.thebugmc.gradle.sonatype-central-portal-publisherplugin (version 1.2.4) to all modulebuild.gradlefiles (moss,moss-paper,moss-velocity,moss-bungeecord) to enable automated publishing to Maven Central. [1] [2] [3] [4]centralPortalconfiguration block in each module to use credentials from project properties and set publishing type toAUTOMATIC. [1] [2] [3] [4]Artifact Publishing Simplification:
sourcesJarandjavadocJartask registration with references tosourcesJarandjavadocJarartifacts directly in thepublishingblock, simplifying the build scripts. [1] [2] [3] [4]Project Metadata Updates:
descriptionfields in thepomconfiguration for each module to accurately reflect their purpose (e.g., "Moss Core module", "Moss Paper module", etc.). [1] [2] [3]CI/CD Workflow Improvements:
:moss,:moss-paper,:moss-velocity,:moss-bungeecord) for both release and snapshot branches, instead of using the genericpublishtask.