Annotation Interface ConditionalOnBuildSystem
@Retention(RUNTIME)
@Target({TYPE,METHOD})
@Documented
@Conditional(io.spring.initializr.generator.condition.OnBuildSystemCondition.class)
public @interface ConditionalOnBuildSystem
Condition that matches when a generated project will use a particular
BuildSystem
.- Author:
- Andy Wilkinson
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe dialect of theBuildSystem
that should be checked.The ID of theBuildSystem
that should be checked.The ID of theBuildSystem
that should be checked.
-
Element Details
-
value
The ID of theBuildSystem
that should be checked.- Returns:
- the build system to check. An alias for
id()
.
- Default:
- ""
-
id
The ID of theBuildSystem
that should be checked.- Returns:
- the build system to check
- Default:
- ""
-
dialect
String dialectThe dialect of theBuildSystem
that should be checked. When not specified, any dialect will be matched.- Returns:
- the dialect to check, if any
- Default:
- ""
-