Class JsonSchemaRecordsExtension

java.lang.Object
io.micronaut.jsonschema.gradle.JsonSchemaRecordsExtension

public abstract class JsonSchemaRecordsExtension extends Object
Gradle extension backing jsonSchemaRecords discovery and record generation.
Since:
2.2.0
  • Constructor Details

    • JsonSchemaRecordsExtension

      @Inject public JsonSchemaRecordsExtension(org.gradle.api.model.ObjectFactory objects)
      Parameters:
      objects - Gradle object factory
  • Method Details

    • getJdbcUrl

      public abstract org.gradle.api.provider.Property<String> getJdbcUrl()
      Returns:
      The JDBC URL.
    • getUsername

      public abstract org.gradle.api.provider.Property<String> getUsername()
      Returns:
      The database username.
    • getPassword

      public abstract org.gradle.api.provider.Property<String> getPassword()
      Returns:
      The database password.
    • getProviders

      public JsonSchemaRecordsProviders getProviders()
      Returns:
      Provider-family configuration.
    • providers

      public void providers(org.gradle.api.Action<? super JsonSchemaRecordsProviders> action)
      Configure provider-family settings.
      Parameters:
      action - The configuration action
    • getTargetPackage

      public abstract org.gradle.api.provider.Property<String> getTargetPackage()
      Returns:
      The target package for generated sources.
    • getLanguage

      public abstract org.gradle.api.provider.Property<String> getLanguage()
      Returns:
      The generated source language.
    • getLanguageLevel

      public abstract org.gradle.api.provider.Property<Integer> getLanguageLevel()
      Returns:
      Java language level used for Java generation.
    • getSchemaCacheDir

      public abstract org.gradle.api.file.DirectoryProperty getSchemaCacheDir()
      Returns:
      The schema cache directory.
    • getOutputDir

      public abstract org.gradle.api.file.DirectoryProperty getOutputDir()
      Returns:
      The generated sources output directory.
    • getSources

      public abstract org.gradle.api.provider.ListProperty<Map<String,Object>> getSources()
      Returns:
      The configured discovery sources. Each map supports the keys name, provider, and options.
    • getJdbcClasspath

      public abstract org.gradle.api.file.ConfigurableFileCollection getJdbcClasspath()
      Returns:
      The optional JDBC driver classpath.
    • getProviderClasspath

      public abstract org.gradle.api.file.ConfigurableFileCollection getProviderClasspath()
      Returns:
      The optional discovery provider classpath.
    • getSkipOnError

      public abstract org.gradle.api.provider.Property<Boolean> getSkipOnError()
      Returns:
      Whether per-object failures should be skipped.
    • getFailOnMissingSource

      public abstract org.gradle.api.provider.Property<Boolean> getFailOnMissingSource()
      Returns:
      Whether unavailable configured sources should fail the build.