Class JsonSchemaRecordsExtension
java.lang.Object
io.micronaut.jsonschema.gradle.JsonSchemaRecordsExtension
Gradle extension backing jsonSchemaRecords discovery and record generation.
- Since:
- 2.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<Boolean> abstract org.gradle.api.file.ConfigurableFileCollectionabstract org.gradle.api.provider.Property<String> abstract org.gradle.api.provider.Property<String> abstract org.gradle.api.provider.Property<Integer> abstract org.gradle.api.file.DirectoryPropertyabstract org.gradle.api.provider.Property<String> abstract org.gradle.api.file.ConfigurableFileCollectionabstract org.gradle.api.file.DirectoryPropertyabstract org.gradle.api.provider.Property<Boolean> abstract org.gradle.api.provider.Property<String> abstract org.gradle.api.provider.Property<String> voidproviders(org.gradle.api.Action<? super JsonSchemaRecordsProviders> action) Configure provider-family settings.
-
Constructor Details
-
JsonSchemaRecordsExtension
@Inject public JsonSchemaRecordsExtension(org.gradle.api.model.ObjectFactory objects) - Parameters:
objects- Gradle object factory
-
-
Method Details
-
getJdbcUrl
- Returns:
- The JDBC URL.
-
getUsername
- Returns:
- The database username.
-
getPassword
- Returns:
- The database password.
-
getProviders
- Returns:
- Provider-family configuration.
-
providers
Configure provider-family settings.- Parameters:
action- The configuration action
-
getTargetPackage
- Returns:
- The target package for generated sources.
-
getLanguage
- Returns:
- The generated source language.
-
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
-
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
- Returns:
- Whether per-object failures should be skipped.
-
getFailOnMissingSource
- Returns:
- Whether unavailable configured sources should fail the build.
-