Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.jetbrains.dokka") version "1.9.20"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.9.20")
  }
}

apply(plugin = "org.jetbrains.dokka")

Using the plugins DSL:

plugins {
  id "org.jetbrains.dokka" version "1.9.20"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.9.20"
  }
}

apply plugin: "org.jetbrains.dokka"

Learn how to apply plugins to subprojects