搜索Gradle插件

使用插件DSL

plugins {
  id("org.danilopianini.javadoc.io-linker") version "0.1.4-700fdb6"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.org.danilopianini:javadoc.io-linker:0.1.4-700fdb6")
  }
}

apply(plugin = "org.danilopianini.javadoc.io-linker")

使用插件DSL

plugins {
  id "org.danilopianini.javadoc.io-linker" version "0.1.4-700fdb6"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.org.danilopianini:javadoc.io-linker:0.1.4-700fdb6"
  }
}

apply plugin: "org.danilopianini.javadoc.io-linker"

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