Class MicronautBuildExtension

java.lang.Object
io.micronaut.build.MicronautBuildExtension

public abstract class MicronautBuildExtension extends Object
  • Field Details

  • Constructor Details

    • MicronautBuildExtension

      @Inject public MicronautBuildExtension(BuildEnvironment buildEnvironment)
  • Method Details

    • getObjects

      @Inject public abstract org.gradle.api.model.ObjectFactory getObjects()
    • getEnvironment

      public BuildEnvironment getEnvironment()
    • getCompileOptions

      public MicronautCompileOptions getCompileOptions()
    • getResolutionStrategy

      public groovy.lang.Closure<?> getResolutionStrategy()
    • getJavaVersion

      public abstract org.gradle.api.provider.Property<Integer> getJavaVersion()
      The version of Java this project is supporting. This is equivalent to setting the Java language version on the Java extension.
      Returns:
      the java version for this project
    • getTestJavaVersion

      public abstract org.gradle.api.provider.Property<Integer> getTestJavaVersion()
      The version of Java for running the tests. Defaults to JavaVersion.current().
      Returns:
      the java version for this project
    • getSourceCompatibility

      @Deprecated public abstract org.gradle.api.provider.Property<String> getSourceCompatibility()
      Deprecated.
      prefer using getJavaVersion() instead
      The default source compatibility
    • getTargetCompatibility

      @Deprecated public abstract org.gradle.api.provider.Property<String> getTargetCompatibility()
      Deprecated.
      prefer using getJavaVersion() instead
      The default target compatibility
    • getCheckstyleVersion

      public abstract org.gradle.api.provider.Property<String> getCheckstyleVersion()
      The checkstyle version
    • getDependencyUpdatesPattern

      public abstract org.gradle.api.provider.Property<String> getDependencyUpdatesPattern()
      The default dependency update pattern
    • getEnforcedPlatform

      public abstract org.gradle.api.provider.Property<Boolean> getEnforcedPlatform()
      Whether to use enforced platform when applying BOM
    • getEnableProcessing

      public abstract org.gradle.api.provider.Property<Boolean> getEnableProcessing()
      Whether to enable Micronaut annotation processing
    • getEnableBom

      public abstract org.gradle.api.provider.Property<Boolean> getEnableBom()
      Whether to enable the Micronaut BOM for dependency management
    • getBomSuppressions

      public abstract BomSuppressions getBomSuppressions()
      Errors which should be suppressed when validating POMs.
    • resolutionStrategy

      public void resolutionStrategy(@DelegatesTo(org.gradle.api.artifacts.ResolutionStrategy.class) groovy.lang.Closure<?> closure)