Search Gradle plugins

Using the plugins DSL:

plugins {
  id("io.smallrye.graphql") version "2.11.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.smallrye.graphql:smallrye-graphql-gradle-plugin:2.11.0")
  }
}

apply(plugin = "io.smallrye.graphql")

Using the plugins DSL:

plugins {
  id "io.smallrye.graphql" version "2.11.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.smallrye.graphql:smallrye-graphql-gradle-plugin:2.11.0"
  }
}

apply plugin: "io.smallrye.graphql"

Learn how to apply plugins to subprojects