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.0RC1b

Created 22 April 2023.

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.

Add this plugin to your build using the plugins DSL:

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

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