fix java deploy

This commit is contained in:
Anatoly Karlov 2024-08-13 14:47:46 +07:00
parent 614c5a6668
commit e5bac4a35e
3 changed files with 15 additions and 10 deletions

14
.gitignore vendored
View File

@ -1,6 +1,12 @@
# Dir for API portal deploy
dist
out
/.idea/
/lib/
/node_modules/
/static/
/web_deploy/
openapitools.json
# Logs
logs
@ -38,7 +44,7 @@ node_modules
# Generated
web_deploy/
target
target/
# User-specific stuff:
.idea/
@ -60,10 +66,8 @@ target
# Gradle:
.idea/gradle.xml
.idea/libraries
.DS_Store
spec/.DS_Store
# Frontend
/lib
redoc-static.html
#Mac OS
.DS_Store

View File

@ -12,8 +12,9 @@
},
"scripts": {
"start": "openapi preview-docs",
"build": "openapi bundle -o openapi/openapi.yaml",
"docs": "redocly build-docs openapi/openapi.yaml --output static/index.html",
"validate": "openapi lint"
"build": "openapi bundle -o web_deploy/openapi.yaml && openapi bundle -o web_deploy/openapi.json",
"docs": "redocly build-docs ./web_deploy/openapi.yaml --output static/index.html",
"validate": "openapi lint",
"codegen": "vality-openapi generate ./web_deploy/openapi.json"
}
}

View File

@ -128,7 +128,7 @@
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>openapi/openapi.yaml</inputSpec>
<inputSpec>web_deploy/openapi.yaml</inputSpec>
<generatorName>spring</generatorName>
<generateModels>true</generateModels>
<generateApis>true</generateApis>
@ -165,7 +165,7 @@
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>openapi/openapi.yaml</inputSpec>
<inputSpec>web_deploy/openapi.yaml</inputSpec>
<generatorName>java</generatorName>
<configOptions>
<dateLibrary>java8</dateLibrary>