diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2023-07-21 09:21:50 +0000 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2023-07-21 09:21:50 +0000 |
commit | f3e143422364cbdc7f4f6d68fc628d95773c454d (patch) | |
tree | 13ae2d08eee8261aeecfa1b75e0cc6636deba513 /openapi/build.gradle | |
parent | b146259516cc90cc9084bdf2f69c358b896cfdf7 (diff) |
Upgrade history openapi generator to 6.6.0
Issue-ID: PORTALNG-23
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: I2234ba72aa6cc5013ff62261b91e7fd0480d73bf
Diffstat (limited to 'openapi/build.gradle')
-rw-r--r-- | openapi/build.gradle | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/openapi/build.gradle b/openapi/build.gradle index 505ac7b..63c32b5 100644 --- a/openapi/build.gradle +++ b/openapi/build.gradle @@ -4,14 +4,20 @@ plugins { } ext { - openapiVersion = '6.0.1' + openapiVersion = '6.6.0' } dependencies { implementation "org.openapitools:openapi-generator:$openapiVersion" - // NOTE(KE) needed to add these dependencies, check in next version whether its removable... - // https://github.com/OpenAPITools/openapi-generator/issues/8360 - compileOnly "io.springfox:springfox-swagger2:3.0.0" + + constraints { + implementation('io.swagger.core.v3:swagger-annotations:2.2.5') { + because 'there is a dependency conflict between swagger-parser versions 2 and 3 (https://github.com/OpenAPITools/openapi-generator/issues/14901)' + } + implementation('javax.validation:validation-api:2.0.1.Final') { + because 'because min max validation wouldnt work with older version of dependency' + } + } } // https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator-gradle-plugin/README.adoc @@ -21,13 +27,14 @@ openApiGenerate { inputSpec = "$projectDir/src/main/resources/api/api.yml" outputDir = "$buildDir/openapi" configOptions = [ - openApiNullable: "false", - skipDefaultInterface: "true", - dateLibrary: "java8", - interfaceOnly: "true", - useTags: "true", - useOptional: "true", - reactive: "true" + hideGenerationTimestamp: "true", + openApiNullable: "false", + skipDefaultInterface: "true", + dateLibrary: "java8", + interfaceOnly: "true", + useTags: "true", + useOptional: "true", + reactive: "true" ] generateApiTests = false generateApiDocumentation = false |