Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 1019 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 1019 Bytes

Migrate Artifacts to Maven Central

Script to migrate existing artifacts from JCenter to Maven Central, after the jcenter/bintray shutdown announcement.

This repository contains a script to help migrate an existing project to Maven Central:

  • Update (Gradle) scripts to publish to Maven Central
  • Migrate all existing artifacts from JCenter to Maven Central

Because all secrets are injected into the script, this is ideal to run on a CI environment.

To use, make sure mvn and gpg are installed, fill in the TODO's and run:

$ ./migrate_to_mavencentral.sh $BASE64_SIGNING_KEY $SONATYPE_USERNAME $SONATYPE_PASSWORD

For a more detailed explanation, read my accompanying blog post: Migrate existing artifacts from JCenter to Maven Central.