Class GenerateSimpleResourceTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
io.micronaut.sourcegen.example.plugin.gradle.GenerateSimpleResourceTask
- All Implemented Interfaces:
Comparable<org.gradle.api.Task>
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.TaskInternal
,org.gradle.api.Named
,org.gradle.api.plugins.ExtensionAware
,org.gradle.api.Task
,org.gradle.util.Configurable<org.gradle.api.Task>
@CacheableTask
public abstract class GenerateSimpleResourceTask
extends org.gradle.api.DefaultTask
This is a configuration for another plugin task run.
In this case it is a class instead of a record.
The properties are parameters and the single method defines the task execution.
The plugin generates a simple record.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Classpath configurator for creating isolated classpath for the work action.static class
The work action that actually runs the task logic.static class
Configurator forGenerateSimpleResourceTask.GenerateSimpleResourceWorkActionParameters
.static interface
Parameters for the work action.Nested classes/interfaces inherited from interface org.gradle.api.Task
org.gradle.api.Task.Namer
-
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Generate a simple record in the supplied package and with the specified version.abstract org.gradle.api.file.ConfigurableFileCollection
Classpath for running the task logic.abstract org.gradle.api.provider.Property<String>
The content of the file.abstract org.gradle.api.provider.Property<Ending>
How the file ends.abstract org.gradle.api.provider.Property<String>
The generated file name.abstract org.gradle.api.file.DirectoryProperty
The output folder.abstract org.gradle.api.provider.Property<Repeat>
Configure generating repeated file.abstract org.gradle.workers.WorkerExecutor
Worker executor.Methods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
Methods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Constructor Details
-
GenerateSimpleResourceTask
public GenerateSimpleResourceTask()
-
-
Method Details
-
getFileName
The generated file name. -
getContent
The content of the file. -
getOutputFolder
@OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getOutputFolder()The output folder. -
getEnding
How the file ends. -
getRepeat
Configure generating repeated file. -
getClasspath
@Classpath public abstract org.gradle.api.file.ConfigurableFileCollection getClasspath()Classpath for running the task logic. -
getWorkerExecutor
@Inject public abstract org.gradle.workers.WorkerExecutor getWorkerExecutor()Worker executor. -
execute
public void execute()Generate a simple record in the supplied package and with the specified version. This javadoc will be copied to the respected plugin implementations.
-