Class GradleTask
java.lang.Object
io.spring.initializr.generator.buildsystem.gradle.GradleTask
A customization for a Gradle task.
- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
An attribute of a task.static class
A builder forGradleTask
.static class
An invocation of a method that customizes a task. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the attributes that should be configured for this task.Return theinvocations
of this task.getName()
Return the name of the task.Return nestedtasks
.getType()
Return the type that this task is associated with ornull
if this task has no type.
-
Constructor Details
-
GradleTask
-
-
Method Details
-
getName
Return the name of the task.- Returns:
- the task name
-
getType
Return the type that this task is associated with ornull
if this task has no type.- Returns:
- the associated task type or
null
-
getAttributes
Return the attributes that should be configured for this task.- Returns:
- task attributes
-
getInvocations
Return theinvocations
of this task.- Returns:
- task invocations
-
getNested
Return nestedtasks
.- Returns:
- nested tasks
-