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.5 (latest)

2.5

Created 24 March 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.5"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects