aboutsummaryrefslogtreecommitdiffstats
path: root/openapi/build.gradle
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-08-21 08:51:07 +0000
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-08-21 08:51:45 +0000
commitfa5edccf8d37767c8f9d4dde9a5f65988dbe1242 (patch)
treedf33b464151ace158c08c4903f13c1194fc4d7f5 /openapi/build.gradle
parent473792061d40a0027b57d65a97f3da06e4b8c7bd (diff)
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 <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'openapi/build.gradle')
-rw-r--r--openapi/build.gradle27
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
- }
-}