Skip to content

migrate to central portal and add github workflows#45

Merged
jaredmixpanel merged 2 commits intomasterfrom
jared-central-portal-migration
Oct 15, 2025
Merged

migrate to central portal and add github workflows#45
jaredmixpanel merged 2 commits intomasterfrom
jared-central-portal-migration

Conversation

@jaredmixpanel
Copy link
Copy Markdown
Contributor

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

  • Updated pom.xml to use the new Maven Central Portal for both snapshot and release deployments, replacing legacy OSSRH endpoints and plugins. The central-publishing-maven-plugin is now used for publishing, and plugin versions and configurations were revised for compatibility and security. [1] [2]
  • Bumped project version to 1.5.4-SNAPSHOT in pom.xml to prepare for the next release cycle.

Continuous Integration and Release Automation

  • Added .github/workflows/ci.yml for automated testing, build, JavaDoc generation, and dependency update checks across multiple Java versions on every push and pull request.
  • Added .github/workflows/release.yml to 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

  • Added CLAUDE.md with detailed guidance for contributors and AI assistants, including project architecture, release steps, and development patterns.
  • Updated the Maven Central download link in README.md to point to the new Maven Central Portal for improved accuracy.

@jaredmixpanel jaredmixpanel requested a review from Copilot October 15, 2025 19:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 }}
Copy link

Copilot AI Oct 15, 2025

Choose a reason for hiding this comment

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

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.

Copilot uses AI. Check for mistakes.
- 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
@jaredmixpanel jaredmixpanel requested a review from Copilot October 15, 2025 19:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

@jaredmixpanel jaredmixpanel merged commit 1b42336 into master Oct 15, 2025
7 checks passed
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.

2 participants