[Gradle] add inputSpecRootDirectory for generate task (#15548) (fix #15483)

This commit is contained in:
Oleh Kurpiak 2023-05-17 09:58:08 +03:00 committed by GitHub
parent 04b34e7096
commit d60b10826c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -97,6 +97,7 @@ class OpenApiGeneratorPlugin : Plugin<Project> {
generatorName.set(generate.generatorName)
outputDir.set(generate.outputDir)
inputSpec.set(generate.inputSpec)
inputSpecRootDirectory.set(generate.inputSpecRootDirectory)
remoteInputSpec.set(generate.remoteInputSpec)
templateDir.set(generate.templateDir)
auth.set(generate.auth)

View File

@ -54,6 +54,11 @@ open class OpenApiGeneratorGenerateExtension(project: Project) {
*/
val inputSpec = project.objects.property<String>()
/**
* Local root folder with spec files
*/
val inputSpecRootDirectory = project.objects.property<String>()
/**
* The remote Open API 2.0/3.x specification URL location.
*/