Owner:
Marc Philipp
Gradle Plugin for publishing to Nexus repositories
https://github.com/marcphilipp/nexus-publish-plugin
Sources: https://github.com/marcphilipp/nexus-publish-plugin
Version 0.2.0
Created 02 February 2019.
- Fix: The publishToNexus task now only depends on publish for the nexus repository instead of on all publish tasks
- New feature: if the io.codearte.nexus-staging plugin is applied on the root project, the stagingRepositoryId on its extension is set to the id of the newly created staging repository. This way it does not depend on exactly one open staging repository being available.
Add this plugin to your build using the plugins DSL:
plugins {
id("de.marcphilipp.nexus-publish") version "0.2.0"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts):dependencies { implementation("de.marcphilipp.nexus-publish:de.marcphilipp.nexus-publish.gradle.plugin:0.2.0") }It can then be applied in the precompiled script plugin:plugins { id("de.marcphilipp.nexus-publish") } -
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("de.marcphilipp.nexus-publish:de.marcphilipp.nexus-publish.gradle.plugin:0.2.0") } } apply(plugin = "de.marcphilipp.nexus-publish") - Applying plugins to all subprojects .