Skip to content

Commit

Permalink
[Gradle] add inputSpecRootDirectory for generate task (#15548) (fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
borsch committed May 17, 2023
1 parent 04b34e7 commit d60b108
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit d60b108

Please sign in to comment.