Search Gradle plugins

Using the plugins DSL:

plugins {
  id "org.ajoberstar.github-pages" version "1.7.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.ajoberstar:gradle-git:1.7.2"
  }
}

apply plugin: "org.ajoberstar.github-pages"

Using the plugins DSL:

plugins {
  id("org.ajoberstar.github-pages") version "1.7.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.ajoberstar:gradle-git:1.7.2")
  }
}

apply(plugin = "org.ajoberstar.github-pages")

Learn how to apply plugins to subprojects