Class GradleExtensionContainer

java.lang.Object
io.spring.initializr.generator.buildsystem.gradle.GradleExtensionContainer

public class GradleExtensionContainer extends Object
A container for Gradle extensions.
Author:
Moritz Halbritter
  • Constructor Details

    • GradleExtensionContainer

      public GradleExtensionContainer()
  • Method Details

    • values

      public Stream<GradleExtension> values()
      Return the Gradle extensions to customize.
      Returns:
      the gradle extensions
    • customize

      public void customize(String name, Consumer<GradleExtension.Builder> extension)
      Customize an extension with the specified name. If the extension has already been customized, the consumer can be used to further tune the existing extension.
      Parameters:
      name - the name of the extension
      extension - a callback to customize the extension
    • importedTypes

      public Stream<String> importedTypes()
      Return the fully qualified name of types to import.
      Returns:
      the imported types