Search Gradle plugins

Version 4.0.1 (latest)

4.0.1

Created 01 October 2024.

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

apply plugin: "com.apollographql.apollo"

Learn how to apply plugins to subprojects