From 3adb3589909a621746ee7746b8b6daf4537cae3d Mon Sep 17 00:00:00 2001 From: DDonghyeo Date: Mon, 27 May 2024 23:11:19 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9Ddocs=20:=20springdoc=20=EC=9D=98?= =?UTF-8?q?=EC=A1=B4=EC=84=B1=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apiGateway-service/build.gradle | 2 ++ noti-service/build.gradle | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/apiGateway-service/build.gradle b/apiGateway-service/build.gradle index a394c8d4..884135da 100644 --- a/apiGateway-service/build.gradle +++ b/apiGateway-service/build.gradle @@ -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' diff --git a/noti-service/build.gradle b/noti-service/build.gradle index 5f7e2ca0..ae41b641 100644 --- a/noti-service/build.gradle +++ b/noti-service/build.gradle @@ -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' @@ -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 {