Class GradleBuild
java.lang.Object
io.spring.initializr.generator.buildsystem.Build
io.spring.initializr.generator.buildsystem.gradle.GradleBuild
Gradle-specific build configuration.
- Author:
- Andy Wilkinson, Jean-Baptiste Nizet, Moritz Halbritter
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new Gradle build without a build item resolver.GradleBuild
(BuildItemResolver buildItemResolver) Create a new Gradle build using the specifiedBuildItemResolver
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildscript
(Consumer<GradleBuildscript.Builder> buildscript) Customize thebuildscript
of the build using the specified consumer.Return the configuration container to use for configuration customizations.Return the extension container to use to configure extensions.Return thebuildscript
of this build.Return the settings of this build.plugins()
Return the plugin container to use to configure plugins.settings()
Return a builder to configure the general settings of this build.snippets()
Return the snippet container to use to apply snippets.tasks()
Return the task container to use to configure tasks.Methods inherited from class io.spring.initializr.generator.buildsystem.Build
boms, dependencies, determineBuildItemResolver, pluginRepositories, properties, repositories
-
Constructor Details
-
GradleBuild
Create a new Gradle build using the specifiedBuildItemResolver
.- Parameters:
buildItemResolver
- the build item resolved to use
-
GradleBuild
public GradleBuild()Create a new Gradle build without a build item resolver.
-
-
Method Details
-
settings
Description copied from class:Build
Return a builder to configure the general settings of this build.- Specified by:
settings
in classBuild
- Returns:
- a builder for
BuildSettings
.
-
getSettings
Description copied from class:Build
Return the settings of this build.- Specified by:
getSettings
in classBuild
- Returns:
- a
BuildSettings
-
plugins
Return the plugin container to use to configure plugins.- Returns:
- the
GradlePluginContainer
-
configurations
Return the configuration container to use for configuration customizations.- Returns:
- the
GradleConfigurationContainer
-
tasks
Return the task container to use to configure tasks.- Returns:
- the
GradleTaskContainer
-
extensions
Return the extension container to use to configure extensions.- Returns:
- the
GradleExtensionContainer
-
snippets
Return the snippet container to use to apply snippets.- Returns:
- the
GradleSnippetContainer
-
buildscript
Customize thebuildscript
of the build using the specified consumer.- Parameters:
buildscript
- a consumer of the current buildscript
-
getBuildscript
Return thebuildscript
of this build.- Returns:
- the buildscript to use
-