Search Gradle plugins

Version 2.0.5 (latest)

Created 28 May 2021.

Reasonable sonatype publishing configuration

Using the plugins DSL:

plugins {
  id "net.kyori.indra.publishing.sonatype" version "2.0.5"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "net.kyori:indra-publishing-sonatype:2.0.5"
  }
}

apply plugin: "net.kyori.indra.publishing.sonatype"

Using the plugins DSL:

plugins {
  id("net.kyori.indra.publishing.sonatype") version "2.0.5"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("net.kyori:indra-publishing-sonatype:2.0.5")
  }
}

apply(plugin = "net.kyori.indra.publishing.sonatype")

Learn how to apply plugins to subprojects