Package io.smallrye.openapi.gradleplugin
Class SmallryeOpenApiExtension
- java.lang.Object
-
- io.smallrye.openapi.gradleplugin.SmallryeOpenApiExtension
-
- All Implemented Interfaces:
SmallryeOpenApiProperties
public class SmallryeOpenApiExtension extends java.lang.ObjectGradle extension objects, which allows Gradle project wide defaults, or just easier configuration in Gradle build scripts.See
SmallryeOpenApiPropertiesfor information about the individual options.
-
-
Constructor Summary
Constructors Constructor Description SmallryeOpenApiExtension(org.gradle.api.model.ObjectFactory objects)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.gradle.api.provider.Property<java.lang.Boolean>getApplicationPathDisable()Disable scanning of the javax.ws.rs.Path (and jakarta.ws.rs.Path) for the application path.org.gradle.api.file.RegularFilePropertygetConfigProperties()Load any properties from a file.org.gradle.api.provider.Property<java.lang.String>getCustomSchemaRegistryClass()Fully qualified name of a CustomSchemaRegistry, which can be used to specify a custom schema for a type.org.gradle.api.provider.Property<io.smallrye.openapi.api.OpenApiConfig.DuplicateOperationIdBehavior>getDuplicateOperationIdBehavior()Configuration property to specify what should happen if duplicate operationIds occur.org.gradle.api.provider.Property<java.lang.String>getEncoding()Output encoding for openapi document.org.gradle.api.provider.Property<java.lang.String>getFilter()Configuration property to specify the fully qualified name of the OASFilter implementation.org.gradle.api.provider.Property<java.lang.String>getInfoContactEmail()org.gradle.api.provider.Property<java.lang.String>getInfoContactName()org.gradle.api.provider.Property<java.lang.String>getInfoContactUrl()org.gradle.api.provider.Property<java.lang.String>getInfoDescription()org.gradle.api.provider.Property<java.lang.String>getInfoLicenseName()org.gradle.api.provider.Property<java.lang.String>getInfoLicenseUrl()org.gradle.api.provider.Property<java.lang.String>getInfoTermsOfService()org.gradle.api.provider.Property<java.lang.String>getInfoTitle()org.gradle.api.provider.Property<java.lang.String>getInfoVersion()org.gradle.api.provider.Property<java.lang.String>getModelReader()Configuration property to specify the fully qualified name of the OASModelReader implementation.org.gradle.api.provider.Property<java.lang.String>getOpenApiVersion()To specify a custom OpenAPI version.org.gradle.api.provider.Property<io.smallrye.openapi.api.OpenApiConfig.OperationIdStrategy>getOperationIdStrategy()Configuration property to specify how the operationid is generated.org.gradle.api.provider.MapProperty<java.lang.String,java.lang.String>getOperationServers()Prefix of the configuration property to specify an alternative list of servers to service an operation.org.gradle.api.provider.MapProperty<java.lang.String,java.lang.String>getPathServers()Prefix of the configuration property to specify an alternative list of servers to service all operations in a pathorg.gradle.api.provider.ListProperty<java.lang.String>getScanClasses()Configuration property to specify the list of classes to scan.org.gradle.api.provider.Property<java.lang.Boolean>getScanDependenciesDisable()Disable scanning the project's dependencies for OpenAPI model classes tooorg.gradle.api.provider.Property<java.lang.Boolean>getScanDisabled()Configuration property to disable annotation scanning.org.gradle.api.provider.ListProperty<java.lang.String>getScanExcludeClasses()Configuration property to specify the list of classes to exclude from scans.org.gradle.api.provider.ListProperty<java.lang.String>getScanExcludePackages()Configuration property to specify the list of packages to exclude from scans.org.gradle.api.provider.ListProperty<java.lang.String>getScanExcludeProfiles()Profiles which explicitly exclude operations.org.gradle.api.provider.ListProperty<java.lang.String>getScanPackages()Configuration property to specify the list of packages to scan.org.gradle.api.provider.ListProperty<java.lang.String>getScanProfiles()Profiles which explicitly include operations.org.gradle.api.provider.MapProperty<java.lang.String,java.lang.String>getScanResourceClasses()org.gradle.api.provider.Property<java.lang.String>getSchemaFilename()Filename of the schema Defaults to openapi.org.gradle.api.provider.ListProperty<java.lang.String>getServers()Configuration property to specify the list of global servers that provide connectivity information.
-
-
-
Method Detail
-
getConfigProperties
public org.gradle.api.file.RegularFileProperty getConfigProperties()
Description copied from interface:SmallryeOpenApiPropertiesLoad any properties from a file. This file is loaded first, and gets overwritten by explicitly set properties in the maven configuration. Example `${basedir}/src/main/resources/application.properties`.- Specified by:
getConfigPropertiesin interfaceSmallryeOpenApiProperties
-
getSchemaFilename
public org.gradle.api.provider.Property<java.lang.String> getSchemaFilename()
Description copied from interface:SmallryeOpenApiPropertiesFilename of the schema Defaults to openapi. So the files created will be openapi.yaml and openapi.json.- Specified by:
getSchemaFilenamein interfaceSmallryeOpenApiProperties
-
getScanDependenciesDisable
public org.gradle.api.provider.Property<java.lang.Boolean> getScanDependenciesDisable()
Description copied from interface:SmallryeOpenApiPropertiesDisable scanning the project's dependencies for OpenAPI model classes too- Specified by:
getScanDependenciesDisablein interfaceSmallryeOpenApiProperties
-
getModelReader
public org.gradle.api.provider.Property<java.lang.String> getModelReader()
Description copied from interface:SmallryeOpenApiPropertiesConfiguration property to specify the fully qualified name of the OASModelReader implementation.- Specified by:
getModelReaderin interfaceSmallryeOpenApiProperties
-
getFilter
public org.gradle.api.provider.Property<java.lang.String> getFilter()
Description copied from interface:SmallryeOpenApiPropertiesConfiguration property to specify the fully qualified name of the OASFilter implementation.- Specified by:
getFilterin interfaceSmallryeOpenApiProperties
-
getScanDisabled
public org.gradle.api.provider.Property<java.lang.Boolean> getScanDisabled()
Description copied from interface:SmallryeOpenApiPropertiesConfiguration property to disable annotation scanning.- Specified by:
getScanDisabledin interfaceSmallryeOpenApiProperties
-
getScanPackages
public org.gradle.api.provider.ListProperty<java.lang.String> getScanPackages()
Description copied from interface:SmallryeOpenApiPropertiesConfiguration property to specify the list of packages to scan.- Specified by:
getScanPackagesin interfaceSmallryeOpenApiProperties
-
getScanClasses
public org.gradle.api.provider.ListProperty<java.lang.String> getScanClasses()
Description copied from interface:SmallryeOpenApiPropertiesConfiguration property to specify the list of classes to scan.- Specified by:
getScanClassesin interfaceSmallryeOpenApiProperties
-
getScanExcludePackages
public org.gradle.api.provider.ListProperty<java.lang.String> getScanExcludePackages()
Description copied from interface:SmallryeOpenApiPropertiesConfiguration property to specify the list of packages to exclude from scans.- Specified by:
getScanExcludePackagesin interfaceSmallryeOpenApiProperties
-
getScanExcludeClasses
public org.gradle.api.provider.ListProperty<java.lang.String> getScanExcludeClasses()
Description copied from interface:SmallryeOpenApiPropertiesConfiguration property to specify the list of classes to exclude from scans.- Specified by:
getScanExcludeClassesin interfaceSmallryeOpenApiProperties
-
getServers
public org.gradle.api.provider.ListProperty<java.lang.String> getServers()
Description copied from interface:SmallryeOpenApiPropertiesConfiguration property to specify the list of global servers that provide connectivity information.- Specified by:
getServersin interfaceSmallryeOpenApiProperties
-
getPathServers
public org.gradle.api.provider.MapProperty<java.lang.String,java.lang.String> getPathServers()
Description copied from interface:SmallryeOpenApiPropertiesPrefix of the configuration property to specify an alternative list of servers to service all operations in a path- Specified by:
getPathServersin interfaceSmallryeOpenApiProperties
-
getOperationServers
public org.gradle.api.provider.MapProperty<java.lang.String,java.lang.String> getOperationServers()
Description copied from interface:SmallryeOpenApiPropertiesPrefix of the configuration property to specify an alternative list of servers to service an operation.- Specified by:
getOperationServersin interfaceSmallryeOpenApiProperties
-
getCustomSchemaRegistryClass
public org.gradle.api.provider.Property<java.lang.String> getCustomSchemaRegistryClass()
Description copied from interface:SmallryeOpenApiPropertiesFully qualified name of a CustomSchemaRegistry, which can be used to specify a custom schema for a type.- Specified by:
getCustomSchemaRegistryClassin interfaceSmallryeOpenApiProperties
-
getApplicationPathDisable
public org.gradle.api.provider.Property<java.lang.Boolean> getApplicationPathDisable()
Description copied from interface:SmallryeOpenApiPropertiesDisable scanning of the javax.ws.rs.Path (and jakarta.ws.rs.Path) for the application path.- Specified by:
getApplicationPathDisablein interfaceSmallryeOpenApiProperties
-
getOpenApiVersion
public org.gradle.api.provider.Property<java.lang.String> getOpenApiVersion()
Description copied from interface:SmallryeOpenApiPropertiesTo specify a custom OpenAPI version.- Specified by:
getOpenApiVersionin interfaceSmallryeOpenApiProperties
-
getInfoTitle
public org.gradle.api.provider.Property<java.lang.String> getInfoTitle()
- Specified by:
getInfoTitlein interfaceSmallryeOpenApiProperties
-
getInfoVersion
public org.gradle.api.provider.Property<java.lang.String> getInfoVersion()
- Specified by:
getInfoVersionin interfaceSmallryeOpenApiProperties
-
getInfoDescription
public org.gradle.api.provider.Property<java.lang.String> getInfoDescription()
- Specified by:
getInfoDescriptionin interfaceSmallryeOpenApiProperties
-
getInfoTermsOfService
public org.gradle.api.provider.Property<java.lang.String> getInfoTermsOfService()
- Specified by:
getInfoTermsOfServicein interfaceSmallryeOpenApiProperties
-
getInfoContactEmail
public org.gradle.api.provider.Property<java.lang.String> getInfoContactEmail()
- Specified by:
getInfoContactEmailin interfaceSmallryeOpenApiProperties
-
getInfoContactName
public org.gradle.api.provider.Property<java.lang.String> getInfoContactName()
- Specified by:
getInfoContactNamein interfaceSmallryeOpenApiProperties
-
getInfoContactUrl
public org.gradle.api.provider.Property<java.lang.String> getInfoContactUrl()
- Specified by:
getInfoContactUrlin interfaceSmallryeOpenApiProperties
-
getInfoLicenseName
public org.gradle.api.provider.Property<java.lang.String> getInfoLicenseName()
- Specified by:
getInfoLicenseNamein interfaceSmallryeOpenApiProperties
-
getInfoLicenseUrl
public org.gradle.api.provider.Property<java.lang.String> getInfoLicenseUrl()
- Specified by:
getInfoLicenseUrlin interfaceSmallryeOpenApiProperties
-
getOperationIdStrategy
public org.gradle.api.provider.Property<io.smallrye.openapi.api.OpenApiConfig.OperationIdStrategy> getOperationIdStrategy()
Description copied from interface:SmallryeOpenApiPropertiesConfiguration property to specify how the operationid is generated. Can be used to minimize risk of collisions between operations.- Specified by:
getOperationIdStrategyin interfaceSmallryeOpenApiProperties
-
getDuplicateOperationIdBehavior
public org.gradle.api.provider.Property<io.smallrye.openapi.api.OpenApiConfig.DuplicateOperationIdBehavior> getDuplicateOperationIdBehavior()
Description copied from interface:SmallryeOpenApiPropertiesConfiguration property to specify what should happen if duplicate operationIds occur.- Specified by:
getDuplicateOperationIdBehaviorin interfaceSmallryeOpenApiProperties
-
getScanProfiles
public org.gradle.api.provider.ListProperty<java.lang.String> getScanProfiles()
Description copied from interface:SmallryeOpenApiPropertiesProfiles which explicitly include operations. Any operation without a matching profile is excluded.- Specified by:
getScanProfilesin interfaceSmallryeOpenApiProperties
-
getScanExcludeProfiles
public org.gradle.api.provider.ListProperty<java.lang.String> getScanExcludeProfiles()
Description copied from interface:SmallryeOpenApiPropertiesProfiles which explicitly exclude operations. Any operation without a matching profile is included.- Specified by:
getScanExcludeProfilesin interfaceSmallryeOpenApiProperties
-
getScanResourceClasses
public org.gradle.api.provider.MapProperty<java.lang.String,java.lang.String> getScanResourceClasses()
- Specified by:
getScanResourceClassesin interfaceSmallryeOpenApiProperties
-
getEncoding
public org.gradle.api.provider.Property<java.lang.String> getEncoding()
Description copied from interface:SmallryeOpenApiPropertiesOutput encoding for openapi document.- Specified by:
getEncodingin interfaceSmallryeOpenApiProperties
-
-