Setting up GitLab CI for uploading a Java project to Maven Central
This article is aimed at Java developers who need to quickly publish their products in Sonatype and/or Maven Central repositories using GitLab. In this article, I will discuss the setup of gitlab-runner, gitlab-ci, and the maven-plugin to achieve this task. Prerequisites: Secure storage of mvn and GPG keys. Secure execution of public CI tasks. Uploading artifacts (release/snapshot) to public […]
