migrate to central portal and add github workflows#45
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR migrates the Mixpanel Java SDK from the legacy OSSRH deployment system to the new Maven Central Portal, while adding comprehensive CI/CD automation through GitHub Actions workflows.
- Replaces nexus-staging-maven-plugin with central-publishing-maven-plugin for Maven Central Portal compatibility
- Adds automated CI testing across multiple Java versions and release workflow with GPG signing
- Updates project version to 1.5.4-SNAPSHOT and modernizes Maven plugin versions
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| pom.xml | Migrates to Maven Central Portal, updates plugins, and prepares next version |
| README.md | Updates Maven Central download link to new portal |
| CLAUDE.md | Adds comprehensive developer and AI assistant documentation |
| .github/workflows/release.yml | Implements automated release workflow with Maven Central deployment |
| .github/workflows/ci.yml | Adds CI pipeline for testing across Java versions |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
|
||
| - name: Verify artifact on Maven Central | ||
| run: | | ||
| VERSION=${{ needs.release.outputs.version }} |
There was a problem hiding this comment.
The release job doesn't define any outputs, so needs.release.outputs.version will be undefined. The VERSION should be retrieved from the environment variable set in the release job or passed as a job output.
- Update actions/cache from v3 to v4 in all workflows - Update actions/upload-artifact from v3 to v4 - Replace deprecated actions/create-release with actions/github-script@v7 - Add proper job outputs for version passing between jobs - Fix undefined version reference in verify job
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This pull request introduces significant improvements to the build, release, and CI/CD processes for the Mixpanel Java SDK, modernizing deployment to Maven Central and automating key workflows. The changes include switching to the new Maven Central Portal, updating plugin configurations, and adding comprehensive GitHub Actions workflows for CI and releases. Additionally, developer documentation and project metadata have been updated for clarity and accuracy.
Build and Release Process Modernization
pom.xmlto use the new Maven Central Portal for both snapshot and release deployments, replacing legacy OSSRH endpoints and plugins. Thecentral-publishing-maven-pluginis now used for publishing, and plugin versions and configurations were revised for compatibility and security. [1] [2]1.5.4-SNAPSHOTinpom.xmlto prepare for the next release cycle.Continuous Integration and Release Automation
.github/workflows/ci.ymlfor automated testing, build, JavaDoc generation, and dependency update checks across multiple Java versions on every push and pull request..github/workflows/release.ymlto automate the release process to Maven Central, including GPG signing, version setting, artifact deployment, GitHub Release creation, and post-release verification.Documentation and Metadata Updates
CLAUDE.mdwith detailed guidance for contributors and AI assistants, including project architecture, release steps, and development patterns.README.mdto point to the new Maven Central Portal for improved accuracy.