From fa5edccf8d37767c8f9d4dde9a5f65988dbe1242 Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Mon, 21 Aug 2023 08:51:07 +0000 Subject: Use more of the new plugin syntax in the bff build.gradle files - replace apply plugin with plugin {} block syntax - ultimately the buildscript should be replaced, but that currently leads to a StackOverflow during the build Issue-ID: PORTALNG-42 Change-Id: I6c65127c3f6b8e095ccffb7e930576461fd5901c Signed-off-by: Fiete Ostkamp --- openapi/build.gradle | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 openapi/build.gradle (limited to 'openapi/build.gradle') 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 - } -} -- cgit 1.2.3-korg