Skip to content

Commit

Permalink
📝docs : springdoc 의존성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
DDonghyeo committed May 27, 2024
1 parent 6ad1258 commit 3adb358
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions apiGateway-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-security'
testImplementation 'org.springframework.security:spring-security-test'

// Swagger
implementation 'org.springdoc:springdoc-openapi-starter-webflux-ui:2.1.0'

// //Spring Boot Actuator
// implementation 'org.springframework.boot:spring-boot-starter-actuator'
Expand Down
22 changes: 11 additions & 11 deletions noti-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java'
id 'org.springframework.boot' version '3.2.3'
id 'io.spring.dependency-management' version '1.1.4'
id "org.springdoc.openapi-gradle-plugin" version '1.8.0'
// id "org.springdoc.openapi-gradle-plugin" version '1.8.0'
}

group = 'com.waither'
Expand Down Expand Up @@ -62,16 +62,16 @@ dependencies {
testImplementation 'org.assertj:assertj-core:3.23.1'
}

openApi {
apiDocsUrl.set("http://localhost:80") // Document URL
outputDir.set(file("$rootDir/build/docs")) // Build Result Path
outputFileName.set("noti.json") // Build Result File Name
groupedApiMappings.set(Map.of("http://localhost:8082/noti/api-docs", "noti.json"))
waitTimeInSeconds.set(60) // Timeout
customBootRun {
args.add("--spring.profiles.active=dev")
}
}
//openApi {
// apiDocsUrl.set("http://localhost:80") // Document URL
// outputDir.set(file("$rootDir/build/docs")) // Build Result Path
// outputFileName.set("noti.json") // Build Result File Name
// groupedApiMappings.set(Map.of("http://localhost:8082/noti/api-docs", "noti.json"))
// waitTimeInSeconds.set(60) // Timeout
// customBootRun {
// args.add("--spring.profiles.active=dev")
// }
//}

dependencyManagement {
imports {
Expand Down

0 comments on commit 3adb358

Please sign in to comment.