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'
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 {
inputSpec = "$projectDir/src/main/resources/static/api.yaml"
outputDir = "$buildDir/openapi"
configOptions = [
+ hideGenerationTimestamps: "true",
openApiNullable: "false",
skipDefaultInterface: "true",
dateLibrary: "java8",