Class AutoConfigurationOptimizerExtension
java.lang.Object
com.patbaumgartner.optimizer.gradle.AutoConfigurationOptimizerExtension
Configuration extension for the Spring Boot Autoconfiguration Optimizer
Gradle plugin.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newAutoConfigurationOptimizerExtension. -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<Object> getJar()The location of the Spring Boot executable JAR.abstract org.gradle.api.provider.ListProperty<String> Additional JVM arguments for the training run.abstract org.gradle.api.provider.Property<String> The main class of the Spring Boot application.abstract org.gradle.api.provider.Property<String> The name of the generated properties file.abstract org.gradle.api.provider.Property<Boolean> getSkip()Whether to skip the training run.abstract org.gradle.api.file.DirectoryPropertyThe target directory where the generated properties file will be copied.abstract org.gradle.api.provider.Property<Integer> The training run timeout in seconds.
-
Constructor Details
-
AutoConfigurationOptimizerExtension
public AutoConfigurationOptimizerExtension()Creates a newAutoConfigurationOptimizerExtension.
-
-
Method Details
-
getMainClass
The main class of the Spring Boot application. Required if the application is not run via a bootJar.- Returns:
- the main class property
-
getJar
The location of the Spring Boot executable JAR. If set, the training run will use this JAR.- Returns:
- the JAR property
-
getJvmArguments
Additional JVM arguments for the training run.- Returns:
- the JVM arguments list property
-
getTimeout
The training run timeout in seconds. Default: 120 seconds.- Returns:
- the timeout property
-
getTargetDirectory
public abstract org.gradle.api.file.DirectoryProperty getTargetDirectory()The target directory where the generated properties file will be copied. Default:build/classes/java/main/META-INF/.- Returns:
- the target directory property
-
getOutputFile
The name of the generated properties file. Default:autoconfiguration-optimizer.properties.- Returns:
- the output file name property
-
getSkip
Whether to skip the training run. Default:false.- Returns:
- the skip property
-