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 Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(B build)
     
    default int
     
    static <B extends Build>
    BuildCustomizer<B>
    ordered(int order, Consumer<B> customizer)
    Create a BuildCustomizer that is ordered with the specified order value.
  • Method Details

    • customize

      void customize(B build)
    • getOrder

      default int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • ordered

      static <B extends Build> BuildCustomizer<B> ordered(int order, Consumer<B> customizer)
      Create a BuildCustomizer that is ordered with the specified order value.
      Type Parameters:
      B - the type of the build
      Parameters:
      order - the order of the customizer
      customizer - the customizer
      Returns:
      a BuildCustomizer with the specified order