Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cicd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
working-directory: ./module-api
run: |
chmod +x ./gradlew
./gradlew bootJar
./gradlew bootJar -PapiDocNeeded=false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이게 어떤 역할을 하는 설정인가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

운영 환경에서는 API 문서를 생성되지 않게 하려고 파라미터 넘기는 거에요~!


- name: Grant execute permission And Build with Gradle (batch)
working-directory: ./module-batch
Expand Down
12 changes: 8 additions & 4 deletions module-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ tasks.withType(GenerateSwaggerUI) {

swaggerSources {
sample {
setInputFile(file("${project.buildDir}/api-spec/openapi3.yaml"))
setInputFile(file("${layout.buildDirectory.get().asFile}/api-spec/openapi3.yaml"))
}
}

Expand All @@ -122,9 +122,13 @@ openapi3 {
}

bootJar {
dependsOn generateSwaggerUISample
from("${generateSwaggerUISample.outputDir}") {
into 'static/docs'
def apiDocNeeded = !project.hasProperty('apiDocNeeded') ? true : apiDocNeeded.toBoolean()

if (apiDocNeeded) {
dependsOn generateSwaggerUISample
from("${generateSwaggerUISample.outputDir}") {
into 'static/docs'
}
}
}

Expand Down