Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.owasp.dependencycheck") version "3.0.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.owasp:dependency-check-gradle:3.0.2")
  }
}

apply(plugin = "org.owasp.dependencycheck")

Using the plugins DSL:

plugins {
  id "org.owasp.dependencycheck" version "3.0.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.owasp:dependency-check-gradle:3.0.2"
  }
}

apply plugin: "org.owasp.dependencycheck"

Learn how to apply plugins to subprojects