diff options
-rwxr-xr-x | build.gradle | 2 | ||||
-rw-r--r-- | openapi/server/build.gradle | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle index 1f78aa7..388d92a 100755 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ buildscript { springBootVersion = '2.7.3' springCloudVersion = '3.1.3' lombokVersion = '1.18.24' - openapiVersion = '6.0.1' + openapiVersion = '6.6.0' redocVersion = '2.0.0-rc.65' spotlessVersion = '6.10.0' spotbugsVersion = '5.0.10' diff --git a/openapi/server/build.gradle b/openapi/server/build.gradle index d3b4a47..e13bc20 100644 --- a/openapi/server/build.gradle +++ b/openapi/server/build.gradle @@ -4,6 +4,12 @@ dependencies { implementation "org.springframework.boot:spring-boot-starter-webflux" implementation "org.openapitools:openapi-generator:$openapiVersion" implementation "org.webjars:redoc:$redocVersion" + + 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)' + } + } } openApiGenerate { @@ -12,6 +18,7 @@ openApiGenerate { inputSpec = "$projectDir/src/main/resources/static/api.yaml" outputDir = "$buildDir/openapi" configOptions = [ + hideGenerationTimestamps: "true", openApiNullable: "false", skipDefaultInterface: "true", dateLibrary: "java8", |