搜索Gradle插件

使用插件DSL

plugins {
  id("io.beekeeper.gradle.plugins.security.dependencyCheck") version "0.15.6"
}

使用遗留插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("io.beekeeper.gradle:beekeeper-security-plugin:0.15.6")
  }
}

apply(plugin = "io.beekeeper.gradle.plugins.security.dependencyCheck")

使用插件DSL

plugins {
  id "io.beekeeper.gradle.plugins.security.dependencyCheck" version "0.15.6"
}

使用遗留插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "io.beekeeper.gradle:beekeeper-security-plugin:0.15.6"
  }
}

apply plugin: "io.beekeeper.gradle.plugins.security.dependencyCheck"

了解如何将插件应用到子项目中