vlc-android/buildsystem/maven
2021-05-03 09:32:48 +02:00
..
images Create a script to deploy the artifacts to Maven Central 2021-04-13 06:49:51 +00:00
deploy-to-mavencentral.sh Add the file path to the publish to maven script 2021-05-03 09:32:48 +02:00
README.md Add the file path to the publish to maven script 2021-05-03 09:32:48 +02:00

Deploy artifacts

Prerequisites

Signing

Use this guide to setup a yubikey with the VideoLAN maven signing key. The key id is e8f8f982a0cd726f020ced90f4b3cd9a1faeefe8

Utilities

Apache Maven is needed.

sudo apt install maven

Sonatype

You have to get Sonatype credentials. To ask for it, you will have to create a JIRA account and ask to be added here

Generate the artifacts

Create a git tag named libvlc-[libvlc-version]. The CI will generate the libvlc and medialibrary artifacts and the debug symbols. All of these files will be available to download in a zip file named dbg.zip attached to the pipeline.

Copy the file to this directory (buildsystem/maven)

Usage

You just have to plug your yubikey and run the script

./deploy-to-mavencentral.sh [FILE_PATH]

The script will do the following actions:

  • check if the zip exists
  • unzip it
  • look for the artifact versions
  • let you confirm if it's all good
  • let you enter your Sonatype credentials
  • create a new settings.xml file in the current directory. /!\ If the script fails after this point, make sure you delete this file to avoid having your credentials exposed /!\
  • sign and deploy the artifacts with Apache Maven
  • delete the settings.xml file

Release artifacts

Once the artifacts have been deployed, you still need to release the repository.

  • Go to the Nexus Repository Manager
  • Login with your credentials
  • Navigate to Build Promotion / Staging Repositories
  • Select the org.videolan repository

Nexus Repository Manager interface

  • Close it
  • Wait for it to be closed
  • Release it

When it's done, the artifacts should be available in Maven Central within a few minutes. To verify, you can navigate to:

After a few hours, they should also be available in the Maven Search Engine