Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.squareup.wire") version "5.0.0-alpha01"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.squareup.wire:wire-gradle-plugin:5.0.0-alpha01")
  }
}

apply(plugin = "com.squareup.wire")

Using the plugins DSL:

plugins {
  id "com.squareup.wire" version "5.0.0-alpha01"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.squareup.wire:wire-gradle-plugin:5.0.0-alpha01"
  }
}

apply plugin: "com.squareup.wire"

Learn how to apply plugins to subprojects