Overview

A plugin for publishing to Maven Central for the general use case of creating JARs and publishing them with minimum fuss.

The main features of this plugin are:

  • No classpath leakage — publication runs in a classpath-isolated worker.

  • Security tokens are held in encrypted character arrays and are only decrypted at the point of calling the Publisher API.

  • Tokens are configured in the DSL and can be used with whatever means the buildscript author prefers — no hardcode property names.

  • Distinguishes between single and multi-project layouts and adjust behaviours. For multi-projects, the root project defines which subprojects will contain artifacts.

  • Artifacts are passed via configurations achieving required for isolated projects.

  • Default mode is to wait for PUBLISHED status for a configurable amount of time. Manual publishing can be configured for those who wish that, but automated publishing is the default. If the state is PUBLISHING after the preset time, the build will stop with a warning, but will not fail.

Support this project

Patreon If you like this project, consider donating to our Patreon account.

Discord We are on Discord. Click to join and then go to #nempi-gradle-plugin-suite.

Mastodon Follow us @ysb33rOrg@fosstodon.org in the #Fediverse