Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.spongepowered.gradle.sponge.dev") version "2.0.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.spongepowered:spongegradle-convention:2.0.2")
  }
}

apply(plugin = "org.spongepowered.gradle.sponge.dev")

Using the plugins DSL:

plugins {
  id "org.spongepowered.gradle.sponge.dev" version "2.0.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.spongepowered:spongegradle-convention:2.0.2"
  }
}

apply plugin: "org.spongepowered.gradle.sponge.dev"

Learn how to apply plugins to subprojects