Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.toasttab.protokt") version "1.0.0-beta.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.toasttab.protokt:protokt-gradle-plugin:1.0.0-beta.2")
  }
}

apply(plugin = "com.toasttab.protokt")

Using the plugins DSL:

plugins {
  id "com.toasttab.protokt" version "1.0.0-beta.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.toasttab.protokt:protokt-gradle-plugin:1.0.0-beta.2"
  }
}

apply plugin: "com.toasttab.protokt"

Learn how to apply plugins to subprojects