搜索Gradle插件

使用plugins DSL

plugins {
  id("io.freefair.javadoc-utf-8") version "8.7.1"
}

使用旧插件应用程序

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

apply(plugin = "io.freefair.javadoc-utf-8")

使用plugins DSL

plugins {
  id "io.freefair.javadoc-utf-8" version "8.7.1"
}

使用旧插件应用程序

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

apply plugin: "io.freefair.javadoc-utf-8"

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