Class MicronautApplicationGradlePlugin.Builder
java.lang.Object
io.micronaut.starter.feature.buildtools.gradle.MicronautApplicationGradlePlugin.Builder
- Enclosing class:
- MicronautApplicationGradlePlugin
Builder class for configuring Micronaut Gradle plugin settings.
Provides methods to set various configuration options like Java version, runtime,
Docker settings, and build tool preferences.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalTestResourceModules
(String... modules) Adds additional test resource modules.Sets the AOT (Ahead of Time) compilation version.Sets an AOT key and its value.builder()
Builds the Gradle plugin configuration.Sets the build tool for the project.docker
(Dockerfile dockerfile) Sets the Dockerfile for general compilation.dockerBuildImage
(String image) Adds a Docker build image.dockerBuildNativeImage
(String image) Adds a Docker build native image.dockerNative
(Dockerfile dockerfileNative) Sets the Dockerfile for native compilation.Sets the DSL (Domain Specific Language) for the Gradle configuration.Sets the plugin ID.ignoredAutomaticDependencies
(Set<String> ignoredAutomaticDependencies) Sets the automatic dependencies to ignore.incremental
(boolean incremental) Sets whether incremental compilation should be enabled.javaVersion
(String javaVersion) Sets the Java version for the project.lambdaRuntimeMainClass
(String lambdaRuntimeMainClass) Sets the main class for the Lambda runtime.packageName
(String packageName) Sets the package name for the project.Sets the runtime for the project.testRuntime
(String testRuntime) Sets the test runtime for the project.Enables shared test resources.
-
Field Details
-
LIBRARY
- See Also:
-
APPLICATION
- See Also:
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
buildTool
Sets the build tool for the project.- Parameters:
buildTool
- the build tool to use- Returns:
- this builder instance
-
javaVersion
Sets the Java version for the project.- Parameters:
javaVersion
- the Java version to use- Returns:
- this builder instance
-
ignoredAutomaticDependencies
public MicronautApplicationGradlePlugin.Builder ignoredAutomaticDependencies(Set<String> ignoredAutomaticDependencies) Sets the automatic dependencies to ignore.- Parameters:
ignoredAutomaticDependencies
- set of dependency names to ignore- Returns:
- this builder instance
-
incremental
Sets whether incremental compilation should be enabled.- Parameters:
incremental
- true to enable incremental compilation- Returns:
- this builder instance
-
packageName
Sets the package name for the project.- Parameters:
packageName
- the package name- Returns:
- this builder instance
-
id
Sets the plugin ID.- Parameters:
id
- the plugin ID- Returns:
- this builder instance
-
runtime
Sets the runtime for the project.- Parameters:
runtime
- the runtime to use- Returns:
- this builder instance
-
testRuntime
Sets the test runtime for the project.- Parameters:
testRuntime
- the test runtime to use- Returns:
- this builder instance
-
aot
Sets the AOT (Ahead of Time) compilation version.- Parameters:
aotVersion
- the AOT version- Returns:
- this builder instance
-
dockerNative
Sets the Dockerfile for native compilation.- Parameters:
dockerfileNative
- the Dockerfile for native compilation- Returns:
- this builder instance
-
docker
Sets the Dockerfile for general compilation.- Parameters:
dockerfile
- the Dockerfile for general compilation- Returns:
- this builder instance
-
dockerBuildImage
Adds a Docker build image.- Parameters:
image
- the Docker image to add- Returns:
- this builder instance
-
dockerBuildNativeImage
Adds a Docker build native image.- Parameters:
image
- the Docker image to add- Returns:
- this builder instance
-
addAdditionalTestResourceModules
Adds additional test resource modules.- Parameters:
modules
- the test resource modules to add- Returns:
- this builder instance
-
lambdaRuntimeMainClass
public MicronautApplicationGradlePlugin.Builder lambdaRuntimeMainClass(String lambdaRuntimeMainClass) Sets the main class for the Lambda runtime.- Parameters:
lambdaRuntimeMainClass
- the main class for the Lambda runtime- Returns:
- this builder instance
-
aotKey
Sets an AOT key and its value.- Parameters:
aotKey
- the AOT keyvalue
- the value for the AOT key- Returns:
- this builder instance
-
builder
Builds the Gradle plugin configuration.- Returns:
- a GradlePlugin.Builder instance
-
dsl
Sets the DSL (Domain Specific Language) for the Gradle configuration.- Parameters:
gradleDsl
- the DSL to use- Returns:
- this builder instance
-