Search Gradle plugins

Using the plugins DSL:

plugins {
  id("io.github.kobylynskyi.graphql.codegen") version "5.10.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.github.kobylynskyi:graphql-java-codegen-gradle-plugin:5.10.0")
  }
}

apply(plugin = "io.github.kobylynskyi.graphql.codegen")

Using the plugins DSL:

plugins {
  id "io.github.kobylynskyi.graphql.codegen" version "5.10.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.github.kobylynskyi:graphql-java-codegen-gradle-plugin:5.10.0"
  }
}

apply plugin: "io.github.kobylynskyi.graphql.codegen"

Learn how to apply plugins to subprojects