Search Gradle plugins

Using the plugins DSL:

plugins {
  id("nebula.test-nothing-plugin") version "1.15.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("nebula.test.plugin:gradle-plugin-test:1.15.0")
  }
}

apply(plugin = "nebula.test-nothing-plugin")

Using the plugins DSL:

plugins {
  id "nebula.test-nothing-plugin" version "1.15.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "nebula.test.plugin:gradle-plugin-test:1.15.0"
  }
}

apply plugin: "nebula.test-nothing-plugin"

Learn how to apply plugins to subprojects