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

View File

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

View File

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