Search Gradle plugins

com.graphql-java-generator.graphql-gradle-plugin

graphql-gradle-plugin is a Gradle Plugin for GraphQL, based on graphql-java. It accelerates the development for both the client and the server, by generating the Java code. It allows a quicker development when in contract-first approach, by avoiding to code the boilerplate code.

https://github.com/graphql-java-generator/graphql-gradle-plugin-project

Sources: https://github.com/graphql-java-generator/graphql-gradle-plugin-project.git

Version 2.8 (latest)

2.8

Created 28 August 2024.

graphql-gradle-plugin is a Gradle Plugin for GraphQL, based on graphql-java. It accelerates the development for both the client and the server, by generating the Java code. It allows a quicker development when in contract-first approach, by avoiding to code the boilerplate code. The graphql-gradle-plugin is compiled against SpringBoot2 and Spring Framework 5. If you're using SpringBoot3 and Spring Framework 6, please consider using graphql-gradle-plugin3 instead.

Using the plugins DSL:

plugins {
  id("com.graphql-java-generator.graphql-gradle-plugin") version "2.8"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.graphql-java-generator:graphql-gradle-plugin:2.8")
  }
}

apply(plugin = "com.graphql-java-generator.graphql-gradle-plugin")

Using the plugins DSL:

plugins {
  id "com.graphql-java-generator.graphql-gradle-plugin" version "2.8"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.graphql-java-generator:graphql-gradle-plugin:2.8"
  }
}

apply plugin: "com.graphql-java-generator.graphql-gradle-plugin"

Learn how to apply plugins to subprojects