Class JetOpenApiAnnotationsExtension
java.lang.Object
net.jacobpeterson.jet.openapiannotationsplugin.JetOpenApiAnnotationsExtension
JetOpenApiAnnotationsExtension is a Gradle extension for JetOpenApiAnnotationsPlugin.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<JetOpenApiAnnotationsExtension.GenerateOperationId> For theJetOpenApiAnnotationsTask, set theJetOpenApiAnnotationsExtension.GenerateOperationIdconfiguration.abstract org.gradle.api.provider.SetProperty<org.gradle.api.tasks.compile.JavaCompile> TheJavaCompiletasks that are used to read compiled class files and classpaths from inJetOpenApiAnnotationsTask.abstract org.gradle.api.provider.Property<Boolean> For theJetOpenApiAnnotationsTask, set totrueto move the JSON schema generated fromOpenApiSchema.fromClass()toOpenApiComponents.schemas(), set tofalseotherwise.abstract org.gradle.api.file.DirectoryPropertyTheJetOpenApiAnnotationsTaskoutput directory.abstract org.gradle.api.provider.Property<Boolean> abstract org.gradle.api.provider.Property<SchemaGeneratorConfigBuilderProvider> For theJetOpenApiAnnotationsTask, aMapcontaining simple type mappings with the fully qualified class name as the key and the raw JSON schema as the value.abstract org.gradle.api.provider.Property<Boolean> abstract org.gradle.api.provider.Property<Boolean> For theJetOpenApiAnnotationsTask, set totrueto use theJacksonSchemaModule, set tofalseotherwise.abstract org.gradle.api.provider.Property<Boolean> For theJetOpenApiAnnotationsTask, set totrueto use theNullableSchemaModule, set tofalseotherwise.abstract org.gradle.api.provider.Property<Boolean> For theJetOpenApiAnnotationsTask, set totrueto use theSchemaNameSchemaModule, set tofalseotherwise.abstract org.gradle.api.provider.Property<Boolean> For theJetOpenApiAnnotationsTask, set totrueto validate the OpenAPI specification JSON output generated fromOpenApiannotations using theOpenApi.DEFAULT_$SCHEMA, set tofalseotherwise.
-
Constructor Details
-
JetOpenApiAnnotationsExtension
public JetOpenApiAnnotationsExtension()
-
-
Method Details
-
getJavaCompileTasks
public abstract org.gradle.api.provider.SetProperty<org.gradle.api.tasks.compile.JavaCompile> getJavaCompileTasks()TheJavaCompiletasks that are used to read compiled class files and classpaths from inJetOpenApiAnnotationsTask. -
getSchemaGeneratorConfigBuilderProvider
public abstract org.gradle.api.provider.Property<SchemaGeneratorConfigBuilderProvider> getSchemaGeneratorConfigBuilderProvider() -
getSchemaGeneratorUseNullableModule
For theJetOpenApiAnnotationsTask, set totrueto use theNullableSchemaModule, set tofalseotherwise.Defaults to
true. -
getSchemaGeneratorUseSchemaNameModule
For theJetOpenApiAnnotationsTask, set totrueto use theSchemaNameSchemaModule, set tofalseotherwise.Defaults to
true. -
getSchemaGeneratorUseGsonModule
For theJetOpenApiAnnotationsTask, set totrueto useGsonSchemaModulethe, set tofalseotherwise.Defaults to
false. -
getSchemaGeneratorUseJacksonModule
For theJetOpenApiAnnotationsTask, set totrueto use theJacksonSchemaModule, set tofalseotherwise.Defaults to
false. -
getSchemaGeneratorSimpleTypeMappings
public abstract org.gradle.api.provider.MapProperty<String,String> getSchemaGeneratorSimpleTypeMappings()For theJetOpenApiAnnotationsTask, aMapcontaining simple type mappings with the fully qualified class name as the key and the raw JSON schema as the value. -
getGenerateOperationId
public abstract org.gradle.api.provider.Property<JetOpenApiAnnotationsExtension.GenerateOperationId> getGenerateOperationId()For theJetOpenApiAnnotationsTask, set theJetOpenApiAnnotationsExtension.GenerateOperationIdconfiguration.Defaults to
JetOpenApiAnnotationsExtension.GenerateOperationId.BOTH. -
getMoveClassSchemasToComponents
For theJetOpenApiAnnotationsTask, set totrueto move the JSON schema generated fromOpenApiSchema.fromClass()toOpenApiComponents.schemas(), set tofalseotherwise.Defaults to
true. -
getSchemaValidation
For theJetOpenApiAnnotationsTask, set totrueto validate the OpenAPI specification JSON output generated fromOpenApiannotations using theOpenApi.DEFAULT_$SCHEMA, set tofalseotherwise.Defaults to
true. -
getOutputDirectory
public abstract org.gradle.api.file.DirectoryProperty getOutputDirectory()TheJetOpenApiAnnotationsTaskoutput directory. -
getOutputDirectoryIncludeInJar
Set totrueto include thegetOutputDirectory()in eachJarTask, set tofalseotherwise.Defaults to
true.
-