Class GradleExtensionContainer
java.lang.Object
io.spring.initializr.generator.buildsystem.gradle.GradleExtensionContainer
A container for Gradle extensions.
- Author:
- Moritz Halbritter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(String name, Consumer<GradleExtension.Builder> extension) Customize an extension with the specified name.Return the fully qualified name of types to import.values()
Return theGradle extensions
to customize.
-
Constructor Details
-
GradleExtensionContainer
public GradleExtensionContainer()
-
-
Method Details
-
values
Return theGradle extensions
to customize.- Returns:
- the gradle extensions
-
customize
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 extensionextension
- a callback to customize the extension
-
importedTypes
Return the fully qualified name of types to import.- Returns:
- the imported types
-