Class GenerateClientCodeTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
com.graphql_java_generator.gradleplugin.GenerateClientCodeTask
- All Implemented Interfaces:
com.graphql_java_generator.plugin.conf.CommonConfiguration,com.graphql_java_generator.plugin.conf.GenerateClientCodeConfiguration,com.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration,java.lang.Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
public class GenerateClientCodeTask
extends org.gradle.api.DefaultTask
implements com.graphql_java_generator.plugin.conf.GenerateClientCodeConfiguration
-
Nested Class Summary
-
Field Summary
Fields inherited from interface com.graphql_java_generator.plugin.conf.CommonConfiguration
DEFAULT_ADD_RELAY_CONNECTIONS, DEFAULT_PACKAGE_NAME, DEFAULT_SCHEMA_FILE_FOLDER, DEFAULT_SCHEMA_FILE_PATTERN, DEFAULT_SKIP_GENERATION_IF_SCHEMA_HAS_NOT_CHANGEDFields inherited from interface com.graphql_java_generator.plugin.conf.GenerateClientCodeConfiguration
DEFAULT_GENERATE_DEPRECATED_REQUEST_RESPONSE -
Constructor Summary
Constructors Constructor Description GenerateClientCodeTask(org.gradle.api.Project project, GenerateClientCodeExtension generateClientCodeExtension) -
Method Summary
Modifier and Type Method Description voidexecute()java.util.List<com.graphql_java_generator.plugin.conf.CustomScalarDefinition>getCustomScalars()java.lang.StringgetDefaultTargetSchemaFileName()com.graphql_java_generator.plugin.conf.PluginModegetMode()java.lang.StringgetPackageName()com.graphql_java_generator.plugin.conf.LoggergetPluginLogger()java.io.FilegetProjectDir()java.io.FilegetSchemaFileFolder()java.lang.StringgetSchemaFilePattern()java.lang.StringgetSourceEncoding()java.io.FilegetTargetClassFolder()java.io.FilegetTargetResourceFolder()java.io.FilegetTargetSourceFolder()java.util.Map<java.lang.String,java.lang.String>getTemplates()booleanisAddRelayConnections()booleanisCopyRuntimeSources()booleanisGenerateDeprecatedRequestResponse()booleanisSeparateUtilityClasses()booleanisSkipGenerationIfSchemaHasNotChanged()Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString, usesServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.graphql_java_generator.plugin.conf.CommonConfiguration
logCommonConfiguration
-
Constructor Details
-
GenerateClientCodeTask
@Inject public GenerateClientCodeTask(org.gradle.api.Project project, GenerateClientCodeExtension generateClientCodeExtension)- Parameters:
project- The current Gradle projectgenerateClientCodeExtension- The Gradle extension, which contains all parameters found in the build script
-
-
Method Details
-
execute
public void execute() throws java.io.IOException- Throws:
java.io.IOException
-
getCustomScalars
@Input public java.util.List<com.graphql_java_generator.plugin.conf.CustomScalarDefinition> getCustomScalars()- Specified by:
getCustomScalarsin interfacecom.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration
-
getDefaultTargetSchemaFileName
@Internal public java.lang.String getDefaultTargetSchemaFileName()- Specified by:
getDefaultTargetSchemaFileNamein interfacecom.graphql_java_generator.plugin.conf.CommonConfiguration
-
getPluginLogger
@Internal public com.graphql_java_generator.plugin.conf.Logger getPluginLogger()- Specified by:
getPluginLoggerin interfacecom.graphql_java_generator.plugin.conf.CommonConfiguration
-
getProjectDir
@Internal public java.io.File getProjectDir()- Specified by:
getProjectDirin interfacecom.graphql_java_generator.plugin.conf.CommonConfiguration
-
getMode
@Input public com.graphql_java_generator.plugin.conf.PluginMode getMode()- Specified by:
getModein interfacecom.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration
-
getPackageName
@Input public java.lang.String getPackageName()- Specified by:
getPackageNamein interfacecom.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration
-
getSchemaFileFolder
@InputDirectory @Optional public java.io.File getSchemaFileFolder()- Specified by:
getSchemaFileFolderin interfacecom.graphql_java_generator.plugin.conf.CommonConfiguration
-
getSchemaFilePattern
@Input public java.lang.String getSchemaFilePattern()- Specified by:
getSchemaFilePatternin interfacecom.graphql_java_generator.plugin.conf.CommonConfiguration
-
getSourceEncoding
@Input public java.lang.String getSourceEncoding()- Specified by:
getSourceEncodingin interfacecom.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration
-
getTargetClassFolder
@OutputDirectory public java.io.File getTargetClassFolder()- Specified by:
getTargetClassFolderin interfacecom.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration
-
getTargetSourceFolder
@OutputDirectory public java.io.File getTargetSourceFolder()- Specified by:
getTargetSourceFolderin interfacecom.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration
-
getTargetResourceFolder
@OutputDirectory public java.io.File getTargetResourceFolder()- Specified by:
getTargetResourceFolderin interfacecom.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration
-
getTemplates
@Input public java.util.Map<java.lang.String,java.lang.String> getTemplates()- Specified by:
getTemplatesin interfacecom.graphql_java_generator.plugin.conf.CommonConfiguration
-
isAddRelayConnections
@Input public boolean isAddRelayConnections()- Specified by:
isAddRelayConnectionsin interfacecom.graphql_java_generator.plugin.conf.CommonConfiguration
-
isCopyRuntimeSources
@Input public boolean isCopyRuntimeSources()- Specified by:
isCopyRuntimeSourcesin interfacecom.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration
-
isGenerateDeprecatedRequestResponse
@Input public boolean isGenerateDeprecatedRequestResponse()- Specified by:
isGenerateDeprecatedRequestResponsein interfacecom.graphql_java_generator.plugin.conf.GenerateClientCodeConfiguration
-
isSeparateUtilityClasses
@Input public boolean isSeparateUtilityClasses()- Specified by:
isSeparateUtilityClassesin interfacecom.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration
-
isSkipGenerationIfSchemaHasNotChanged
@Input public boolean isSkipGenerationIfSchemaHasNotChanged()- Specified by:
isSkipGenerationIfSchemaHasNotChangedin interfacecom.graphql_java_generator.plugin.conf.CommonConfiguration
-