Skip to content

Commit 15b1de7

Browse files
authored
Merge pull request #95 from 31n5ang/master
Add Gradle dependency example to Getting Started docs #94
2 parents d40d929 + a994ac4 commit 15b1de7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/docs/asciidoc/v4/getting-started.adoc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
For the integration between spring-boot and swagger-ui, add the library to the list of your project dependencies (No additional configuration is needed)
55

6+
=== Maven
67
[source,xml, subs="attributes+"]
78
----
89
<dependency>
@@ -12,6 +13,16 @@ For the integration between spring-boot and swagger-ui, add the library to the l
1213
</dependency>
1314
----
1415

16+
=== Gradle
17+
[source,gradle, subs="attributes+"]
18+
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:{springdoc-upcoming-version}'
19+
20+
21+
For example, using version 2.8.11:
22+
[source,gradle]
23+
----
24+
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.11'
25+
----
1526

1627
This will automatically deploy swagger-ui to a spring-boot application:
1728

@@ -43,4 +54,4 @@ springdoc.swagger-ui.path=/swagger-ui.html
4354
<script>
4455
(adsbygoogle = window.adsbygoogle || []).push({});
4556
</script>
46-
++++
57+
++++

0 commit comments

Comments
 (0)