diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2023-08-21 08:51:07 +0000 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2023-08-21 08:51:45 +0000 |
commit | fa5edccf8d37767c8f9d4dde9a5f65988dbe1242 (patch) | |
tree | df33b464151ace158c08c4903f13c1194fc4d7f5 /openapi/client-portal-keycloak | |
parent | 473792061d40a0027b57d65a97f3da06e4b8c7bd (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/client-portal-keycloak')
-rw-r--r-- | openapi/client-portal-keycloak/build.gradle | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/openapi/client-portal-keycloak/build.gradle b/openapi/client-portal-keycloak/build.gradle index f01cf4b..525fa18 100644 --- a/openapi/client-portal-keycloak/build.gradle +++ b/openapi/client-portal-keycloak/build.gradle @@ -1,4 +1,6 @@ -apply plugin: 'org.openapi.generator' +plugins { + id 'org.openapi.generator' +} dependencies { implementation "org.springframework.boot:spring-boot-starter-webflux" @@ -6,8 +8,7 @@ dependencies { } compileJava { - createOpenApiGenerateClientTask(project, "portal_keycloak_openapi.yaml", "client_portal_keycloak", "KeycloakDto") - dependsOn = [':openapi:openApiGenerate_client_portal_keycloak'] + dependsOn = ['openApiGenerate_keycloak'] } sourceSets { @@ -23,3 +24,26 @@ idea { generatedSourceDirs += file("$buildDir/openapi/src/main/java") } } + +tasks.register('openApiGenerate_keycloak', org.openapitools.generator.gradle.plugin.tasks.GenerateTask) { + generatorName = "java" + library = "webclient" + inputSpec = "${project.projectDir}/src/portal_keycloak_openapi.yaml" + outputDir = "${buildDir}/openapi" + 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.client_portal_keycloak" + apiPackage = "org.onap.portalng.bff.openapi.client_portal_keycloak.api" + modelPackage = "org.onap.portalng.bff.openapi.client_portal_keycloak.model" + modelNameSuffix = "KeycloakDto" +}
\ No newline at end of file |