搜索Gradle插件

使用 plugins DSL

plugins {
  id("com.anaplan.engineering.vdm-stub-generator") version "0.4.0-alpha.15"
}

使用 旧式插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("com.anaplan.engineering:vdm-stub-generator:0.4.0-alpha.15")
  }
}

apply(plugin = "com.anaplan.engineering.vdm-stub-generator")

使用 plugins DSL

plugins {
  id "com.anaplan.engineering.vdm-stub-generator" version "0.4.0-alpha.15"
}

使用 旧式插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "com.anaplan.engineering:vdm-stub-generator:0.4.0-alpha.15"
  }
}

apply plugin: "com.anaplan.engineering.vdm-stub-generator"

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