Search Gradle plugins

io.github.gradle-nexus.publish-plugin

Gradle Plugin for publishing to Nexus that automates creating, closing, and releasing staging repositories

https://github.com/gradle-nexus/publish-plugin

Version 1.0.0 (latest)

Created 13 February 2021.

Gradle Plugin for publishing to Nexus that automates creating, closing, and releasing staging repositories

Using the plugins DSL:

plugins {
  id "io.github.gradle-nexus.publish-plugin" version "1.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.github.gradle-nexus:publish-plugin:1.0.0"
  }
}

apply plugin: "io.github.gradle-nexus.publish-plugin"

Using the plugins DSL:

plugins {
  id("io.github.gradle-nexus.publish-plugin") version "1.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.github.gradle-nexus:publish-plugin:1.0.0")
  }
}

apply(plugin = "io.github.gradle-nexus.publish-plugin")

Learn how to apply plugins to subprojects