Interface BuildCustomizer<B extends Build>
- Type Parameters:
B-Buildtype handled by this customizer
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
BuildCustomizer.OrderedBuildCustomizer,DefaultMavenBuildCustomizer,DependencyManagementBuildCustomizer,DevelopmentOnlyDependencyGradleBuildCustomizer,GradleAnnotationProcessorScopeBuildCustomizer,GradleConfigurationBuildCustomizer,KotlinJacksonBuildCustomizer,KotlinJpaGradleBuildCustomizer,KotlinJpaMavenBuildCustomizer,OptionalDependencyMavenBuildCustomizer,SimpleBuildCustomizer,SpringBootPluginBuildCustomizer,WarPackagingWebStarterBuildCustomizer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface BuildCustomizer<B extends Build>
extends org.springframework.core.Ordered
Callback for customizing a project's
Build. Invoked with an order of 0 by default, considering overriding getOrder() to customize
this behaviour.- Author:
- Andy Wilkinson
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuildCustomizer.OrderedBuildCustomizer<B extends Build> -
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionvoiddefault intgetOrder()static <B extends Build>
BuildCustomizer<B>Create aBuildCustomizerthat is ordered with the specifiedordervalue.
-
Method Details
-
customize
-
getOrder
default int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
ordered
Create aBuildCustomizerthat is ordered with the specifiedordervalue.- Type Parameters:
B- the type of the build- Parameters:
order- the order of the customizercustomizer- the customizer- Returns:
- a
BuildCustomizerwith the specified order
-