Class AutoConfigurationOptimizerExtension

java.lang.Object
com.patbaumgartner.optimizer.gradle.AutoConfigurationOptimizerExtension

public abstract class AutoConfigurationOptimizerExtension extends Object
Configuration extension for the Spring Boot Autoconfiguration Optimizer Gradle plugin.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new AutoConfigurationOptimizerExtension.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.gradle.api.provider.Property<Object>
    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>
    Whether to skip the training run.
    abstract org.gradle.api.file.DirectoryProperty
    The target directory where the generated properties file will be copied.
    abstract org.gradle.api.provider.Property<Integer>
    The training run timeout in seconds.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AutoConfigurationOptimizerExtension

      public AutoConfigurationOptimizerExtension()
      Creates a new AutoConfigurationOptimizerExtension.
  • Method Details

    • getMainClass

      public abstract org.gradle.api.provider.Property<String> 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

      public abstract org.gradle.api.provider.Property<Object> getJar()
      The location of the Spring Boot executable JAR. If set, the training run will use this JAR.
      Returns:
      the JAR property
    • getJvmArguments

      public abstract org.gradle.api.provider.ListProperty<String> getJvmArguments()
      Additional JVM arguments for the training run.
      Returns:
      the JVM arguments list property
    • getTimeout

      public abstract org.gradle.api.provider.Property<Integer> 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

      public abstract org.gradle.api.provider.Property<String> getOutputFile()
      The name of the generated properties file. Default: autoconfiguration-optimizer.properties.
      Returns:
      the output file name property
    • getSkip

      public abstract org.gradle.api.provider.Property<Boolean> getSkip()
      Whether to skip the training run. Default: false.
      Returns:
      the skip property