Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.apollographql.apollo3") version "3.0.0-alpha01"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.apollographql.apollo3:apollo-gradle-plugin:3.0.0-alpha01")
  }
}

apply(plugin = "com.apollographql.apollo3")

Using the plugins DSL:

plugins {
  id "com.apollographql.apollo3" version "3.0.0-alpha01"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.apollographql.apollo3:apollo-gradle-plugin:3.0.0-alpha01"
  }
}

apply plugin: "com.apollographql.apollo3"

Learn how to apply plugins to subprojects