From a994ac4b1725c0af67f34fa343d582b8ec3d83bb Mon Sep 17 00:00:00 2001 From: Song Minsang <31n5ang@gmail.com> Date: Sun, 24 Aug 2025 14:47:46 +0900 Subject: [PATCH] Add Gradle dependency example to Getting Started docs #94 --- src/docs/asciidoc/v4/getting-started.adoc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/docs/asciidoc/v4/getting-started.adoc b/src/docs/asciidoc/v4/getting-started.adoc index 08fcd18..ae89711 100644 --- a/src/docs/asciidoc/v4/getting-started.adoc +++ b/src/docs/asciidoc/v4/getting-started.adoc @@ -3,6 +3,7 @@ For the integration between spring-boot and swagger-ui, add the library to the list of your project dependencies (No additional configuration is needed) +=== Maven [source,xml, subs="attributes+"] ---- @@ -12,6 +13,16 @@ For the integration between spring-boot and swagger-ui, add the library to the l ---- +=== Gradle +[source,gradle, subs="attributes+"] +implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:{springdoc-upcoming-version}' + + +For example, using version 2.8.11: +[source,gradle] +---- +implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.11' +---- This will automatically deploy swagger-ui to a spring-boot application: @@ -43,4 +54,4 @@ springdoc.swagger-ui.path=/swagger-ui.html -++++ \ No newline at end of file +++++