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 classAn attribute of a task.static classA builder forGradleTask.static classAn 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 theinvocationsof this task.getName()Return the name of the task.Return nestedtasks.getType()Return the type that this task is associated with ornullif 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 ornullif 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 theinvocationsof this task.- Returns:
- task invocations
-
getNested
Return nestedtasks.- Returns:
- nested tasks
-