diff options
Diffstat (limited to 'openapi/build.gradle')
-rw-r--r-- | openapi/build.gradle | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/openapi/build.gradle b/openapi/build.gradle deleted file mode 100644 index eb39818..0000000 --- a/openapi/build.gradle +++ /dev/null @@ -1,27 +0,0 @@ -apply plugin: 'org.openapi.generator' - -void createOpenApiGenerateClientTask(Project project, String apiDefinition, String packageName, String dtoSuffix) { - String taskName = "openApiGenerate_$packageName" - tasks.create(taskName, org.openapitools.generator.gradle.plugin.tasks.GenerateTask) { - generatorName = "java" - library = "webclient" - inputSpec = "${project.projectDir}/src/$apiDefinition".toString() - outputDir = "${project.buildDir}/openapi".toString() - configOptions = [ - openApiNullable : "false", - dateLibrary : "java8", - serializationLibrary: "jackson" - ] - typeMappings = [ - "File": "org.springframework.core.io.buffer.DataBuffer" - ] - generateApiTests = false - generateApiDocumentation = false - generateModelTests = false - generateModelDocumentation = false - invokerPackage = "org.onap.portalng.bff.openapi.$packageName" - apiPackage = "org.onap.portalng.bff.openapi.${packageName}.api" - modelPackage = "org.onap.portalng.bff.openapi.${packageName}.model" - modelNameSuffix = dtoSuffix - } -} |