Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit f8b48ad

Browse files
committed
Use version variable in doc for dependency management
1 parent 11bddd5 commit f8b48ad

File tree

1 file changed

+39
-8
lines changed

1 file changed

+39
-8
lines changed

src/docs/asciidoc/getting-started.adoc

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,40 +132,41 @@ Boot environment.
132132
To build your own application using the Reactor RabbitMQ API,
133133
you need to include a dependency to Reactor RabbitMQ.
134134

135-
For gradle:
135+
For Gradle:
136136

137-
[source,groovy]
137+
[source,groovy,subs="attributes"]
138138
--------
139139
dependencies {
140-
compile "io.projectreactor.rabbitmq:reactor-rabbitmq:1.4.0.RC1"
140+
compile "io.projectreactor.rabbitmq:reactor-rabbitmq:{appversion}"
141141
}
142142
--------
143143

144144

145145
For Maven:
146146

147-
[source,xml]
147+
[source,xml,subs="attributes"]
148148
--------
149149
<dependency>
150150
<groupId>io.projectreactor.rabbitmq</groupId>
151151
<artifactId>reactor-rabbitmq</artifactId>
152-
<version>1.4.0.RC1</version>
152+
<version>{appversion}</version>
153153
</dependency>
154154
--------
155155

156-
When using a milestone or a release candidate, you need to add the Spring IO
156+
When using a *milestone* or a *release candidate*, you need to add the Spring IO
157157
milestone repository.
158158

159-
For gradle:
159+
For Gradle:
160160

161161
[source,groovy]
162162
--------
163163
repositories {
164164
maven { url 'https://repo.spring.io/milestone' }
165+
mavenCentral()
165166
}
166167
--------
167168

168-
For maven:
169+
For Maven:
169170

170171
[source,xml]
171172
--------
@@ -180,3 +181,33 @@ For maven:
180181
</repository>
181182
</repositories>
182183
--------
184+
185+
When using a *snapshot*, you need to add the Spring IO snapshots repository.
186+
187+
For Gradle:
188+
189+
[source,groovy]
190+
--------
191+
repositories {
192+
maven { url 'https://repo.spring.io/libs-snapshot' }
193+
mavenCentral()
194+
}
195+
--------
196+
197+
For Maven:
198+
199+
[source,xml]
200+
--------
201+
<repositories>
202+
<repository>
203+
<id>spring-snapshots</id>
204+
<name>Spring Snapshots</name>
205+
<url>https://repo.spring.io/libs-snapshot</url>
206+
<snapshots>
207+
<enabled>true</enabled>
208+
</snapshots>
209+
</repository>
210+
</repositories>
211+
--------
212+
213+

0 commit comments

Comments
 (0)