-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[build] automate the new java release publish #16509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
User description
I couldn't actually get what Diego put in the wiki to work. This rake command works.
PR Type
Enhancement
Description
Add automated Java release publishing to Sonatype Maven repository
Implement HTTP-based validation POST to Central Portal
Integrate Base64 encoding for authentication credentials
Conditionally invoke publish task during release workflow
Diagram Walkthrough
flowchart LR A["Java Release Task"] --> B["Package & Build Artifacts"] B --> C["Release to Maven Repo"] C --> D{Is Nightly?} D -->|No| E["Invoke Publish Task"] E --> F["Authenticate with Credentials"] F --> G["POST to Central Portal"] G --> H{Success?} H -->|Yes| I["Log Success"] H -->|No| J["Log Error & Exit"]File Walkthrough
Rakefile
Add automated Sonatype Maven repository publishingRakefile
require 'base64'andrequire 'net/http'for HTTP authenticationand requests
java:publishtask in the releaseworkflow
publishtask that authenticates with Sonatypecredentials and sends HTTP POST request to Central Portal