Package io.micronaut.gradle.openapi
Class DefaultOpenApiExtension
java.lang.Object
io.micronaut.gradle.openapi.DefaultOpenApiExtension
- All Implemented Interfaces:
OpenApiExtension
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefaultOpenApiExtension
(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration classpath) -
Method Summary
Modifier and TypeMethodDescriptionvoid
client
(File file, org.gradle.api.Action<? super OpenApiClientSpec> spec) Configures generation of a client, given a definition file.void
client
(String name, File definition, org.gradle.api.Action<? super OpenApiClientSpec> spec) Configures generation of a server, given a definition file.void
client
(String name, org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> definition, org.gradle.api.Action<? super OpenApiClientSpec> spec) Configures generation of a server, given a definition file.void
server
(File file, org.gradle.api.Action<? super OpenApiServerSpec> spec) Configures generation of a server, given a definition file.void
server
(String name, File definition, org.gradle.api.Action<? super OpenApiServerSpec> spec) Configures generation of a server, given a definition file.void
server
(String name, org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> definition, org.gradle.api.Action<? super OpenApiServerSpec> spec) Configures generation of a server, given a definition file.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.gradle.openapi.OpenApiExtension
getVersion
-
Field Details
-
OPENAPI_GROUP
- See Also:
-
-
Constructor Details
-
DefaultOpenApiExtension
@Inject public DefaultOpenApiExtension(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration classpath)
-
-
Method Details
-
server
Description copied from interface:OpenApiExtension
Configures generation of a server, given a definition file.- Specified by:
server
in interfaceOpenApiExtension
- Parameters:
file
- the OpenAPI definition filespec
- configuration for the server generation
-
client
Description copied from interface:OpenApiExtension
Configures generation of a client, given a definition file.- Specified by:
client
in interfaceOpenApiExtension
- Parameters:
file
- the OpenAPI definition filespec
- configuration for the client generation
-
server
public void server(String name, org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> definition, org.gradle.api.Action<? super OpenApiServerSpec> spec) Description copied from interface:OpenApiExtension
Configures generation of a server, given a definition file.- Specified by:
server
in interfaceOpenApiExtension
- Parameters:
name
- an identifier used to uniquely refer to the generator, used to derive task namesdefinition
- the OpenAPI definition file providerspec
- configuration for the server generation
-
client
public void client(String name, org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> definition, org.gradle.api.Action<? super OpenApiClientSpec> spec) Description copied from interface:OpenApiExtension
Configures generation of a server, given a definition file.- Specified by:
client
in interfaceOpenApiExtension
- Parameters:
name
- an identifier used to uniquely refer to the generator, used to derive task namesdefinition
- the OpenAPI definition file providerspec
- configuration for the server generation
-
server
public void server(String name, File definition, org.gradle.api.Action<? super OpenApiServerSpec> spec) Description copied from interface:OpenApiExtension
Configures generation of a server, given a definition file.- Specified by:
server
in interfaceOpenApiExtension
- Parameters:
name
- an identifier used to uniquely refer to the generator, used to derive task namesdefinition
- the OpenAPI definition file providerspec
- configuration for the server generation
-
client
public void client(String name, File definition, org.gradle.api.Action<? super OpenApiClientSpec> spec) Description copied from interface:OpenApiExtension
Configures generation of a server, given a definition file.- Specified by:
client
in interfaceOpenApiExtension
- Parameters:
name
- an identifier used to uniquely refer to the generator, used to derive task namesdefinition
- the OpenAPI definition file providerspec
- configuration for the server generation
-