Search Gradle plugins

Version 2.2.1

Created 22 June 2020.

Automatically generates typesafe java and kotlin models from your GraphQL files.

Using the plugins DSL:

plugins {
  id "com.apollographql.apollo" version "2.2.1"
}

Using legacy plugin application:

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

apply plugin: "com.apollographql.apollo"

Using the plugins DSL:

plugins {
  id("com.apollographql.apollo") version "2.2.1"
}

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects