Search Gradle plugins

Using the plugins DSL:

plugins {
  id("net.ossindex.audit") version "0.3.0-beta"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.net.ossindex:ossindex-gradle-plugin:0.3.0-beta")
  }
}

apply(plugin = "net.ossindex.audit")

Using the plugins DSL:

plugins {
  id "net.ossindex.audit" version "0.3.0-beta"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.net.ossindex:ossindex-gradle-plugin:0.3.0-beta"
  }
}

apply plugin: "net.ossindex.audit"

Learn how to apply plugins to subprojects