搜索Gradle插件

使用plugins DSL

plugins {
  id("com.github.shalousun.smart-doc") version "2.7.7"
}

使用旧的插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("com.github.shalousun:smart-doc-gradle-plugin:2.7.7")
  }
}

apply(plugin = "com.github.shalousun.smart-doc")

使用plugins DSL

plugins {
  id "com.github.shalousun.smart-doc" version "2.7.7"
}

使用旧的插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "com.github.shalousun:smart-doc-gradle-plugin:2.7.7"
  }
}

apply plugin: "com.github.shalousun.smart-doc"

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