Groovy Documentation

org.gradle.api.tasks
[Java] Annotation Type Optional

java.lang.Object
  org.gradle.api.tasks.Optional

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER})
public @interface Optional

Marks a task property as optional. This means that a value does not have to be specified for the property, but any value specified must meet the validation constraints for the property.

This annotation can be used with any of the following property annotations:


Method Summary
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Gradle API 1.12