Class GraphQLPlugin

java.lang.Object
com.graphql_java_generator.gradleplugin.GraphQLPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class GraphQLPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
  • Field Details

    • GENERATE_CLIENT_CODE_EXTENSION

      public static final String GENERATE_CLIENT_CODE_EXTENSION
      The extension name to configure the GraphQL plugin, for the client code generation task
      See Also:
    • GENERATE_CLIENT_CODE_TASK_NAME

      public static final String GENERATE_CLIENT_CODE_TASK_NAME
      The name of the task that generates the client code from the given GraphQL schemas
      See Also:
    • GENERATE_POJO_EXTENSION

      public static final String GENERATE_POJO_EXTENSION
      The extension name to configure the GraphQL plugin, for the generatePojo task
      See Also:
    • GENERATE_POJO_TASK_NAME

      public static final String GENERATE_POJO_TASK_NAME
      The name of the task that generates the POJOs from the given GraphQL schemas
      See Also:
    • GENERATE_SERVER_CODE_EXTENSION

      public static final String GENERATE_SERVER_CODE_EXTENSION
      The extension name to configure the GraphQL plugin, for the server code generation task
      See Also:
    • GENERATE_SERVER_CODE_TASK_NAME

      public static final String GENERATE_SERVER_CODE_TASK_NAME
      The name of the task that generates the server code from the given GraphQL schemas
      See Also:
    • GRAPHQL_EXTENSION

      public static final String GRAPHQL_EXTENSION
      The extension name to configure the GraphQL plugin, for the code generation task
      See Also:
    • GRAPHQL_GENERATE_CODE_TASK_NAME

      public static final String GRAPHQL_GENERATE_CODE_TASK_NAME
      The name of the task that generates the code from the given GraphQL schemas
      See Also:
    • MERGE_EXTENSION

      public static final String MERGE_EXTENSION
      The extension name to configure the GraphQL merge task
      See Also:
    • MERGE_TASK_NAME

      public static final String MERGE_TASK_NAME
      The name of the task that generates a GraphqL that merges several GraphQL schemas
      See Also:
  • Constructor Details

    • GraphQLPlugin

      public GraphQLPlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>
    • getVersion

      public String getVersion()
      Retrieve the gradle project.version, that has been copied into the 'plugin.version' property of the 'application.properties' file
    • getDependenciesVersion

      public String getDependenciesVersion()
      Retrieve the version of the graphql-maven-plugin-logic library, that contains all the plugin logic. This version has been copied into the 'plugin.version' property of the 'application.properties' file