Annotation Interface ConditionalOnRequestedDependency


@Retention(RUNTIME) @Target({TYPE,METHOD}) @Documented @Conditional(io.spring.initializr.generator.condition.OnRequestedDependencyCondition.class) public @interface ConditionalOnRequestedDependency
Condition that matches when a ProjectDescription defines a particular dependency. A generated project may ultimately define a different set of dependencies according to the contributors that have been executed. To contribute to the project according to the real set, prefer querying the model itself rather than using this condition.
Author:
Andy Wilkinson, Stephane Nicoll
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The identifier of the dependency.
  • Element Details

    • value

      String value
      The identifier of the dependency.
      Returns:
      the dependency ID