Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects