Interface BuildCustomizer<B extends Build>
- Type Parameters:
B
-Build
type 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 class
BuildCustomizer.OrderedBuildCustomizer<B extends Build>
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
default int
getOrder()
static <B extends Build>
BuildCustomizer<B>Create aBuildCustomizer
that is ordered with the specifiedorder
value.
-
Method Details
-
customize
-
getOrder
default int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
ordered
Create aBuildCustomizer
that is ordered with the specifiedorder
value.- Type Parameters:
B
- the type of the build- Parameters:
order
- the order of the customizercustomizer
- the customizer- Returns:
- a
BuildCustomizer
with the specified order
-