Class GenerateSimpleRecordTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
io.micronaut.sourcegen.example.plugin.gradle.GenerateSimpleRecordTask
- 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 GenerateSimpleRecordTask
extends org.gradle.api.DefaultTask
This is a configuration for a plugin task run.
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 classClasspath configurator for creating isolated classpath for the work action.static classThe work action that actually runs the task logic.static classConfigurator forGenerateSimpleRecordTask.GenerateSimpleRecordWorkActionParameters.static interfaceParameters 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 TypeMethodDescriptionvoidexecute()Generate a simple record in the supplied package and with the specified version.abstract org.gradle.api.file.ConfigurableFileCollectionClasspath for running the task logic.abstract org.gradle.api.provider.ListProperty<String>The javadoc.abstract org.gradle.api.file.DirectoryPropertyThe output folder.abstract org.gradle.api.provider.Property<String>The package name.The properties.abstract org.gradle.api.provider.Property<String>The generated class name.abstract org.gradle.api.provider.Property<Integer>The version.abstract org.gradle.workers.WorkerExecutorWorker 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, usesServiceMethods 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, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Constructor Details
-
GenerateSimpleRecordTask
public GenerateSimpleRecordTask()
-
-
Method Details
-
getTypeName
The generated class name. -
getVersion
The version. -
getPackageName
The package name. -
getProperties
The properties. -
getJavadoc
The javadoc. -
getOutputFolder
@OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getOutputFolder()The output folder. -
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.
-