Search Gradle plugins

com.graphql-java-generator.graphql-gradle-plugin3

graphql-gradle-plugin3 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-plugin3 is compiled against SpringBoot3 and Spring Framework 6.

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)

Created 28 August 2024.

graphql-gradle-plugin3 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-plugin3 is compiled against SpringBoot3 and Spring Framework 6.

Add this plugin to your build using the plugins DSL:

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

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("com.graphql-java-generator.graphql-gradle-plugin3:com.graphql-java-generator.graphql-gradle-plugin3.gradle.plugin:2.8")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("com.graphql-java-generator.graphql-gradle-plugin3")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.graphql-java-generator.graphql-gradle-plugin3:com.graphql-java-generator.graphql-gradle-plugin3.gradle.plugin:2.8")
      }
    }
    
    apply(plugin = "com.graphql-java-generator.graphql-gradle-plugin3")
  • Applying plugins to all subprojects .