Skip to content

Commit cbee163

Browse files
committed
Fix version references in Maven Plugin's reference documentation
Closes gh-19878
1 parent 331ebe9 commit cbee163

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/build-info.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ It also allows you to add an arbitrary number of additional properties, as shown
1212
<plugin>
1313
<groupId>org.springframework.boot</groupId>
1414
<artifactId>spring-boot-maven-plugin</artifactId>
15-
<version>{version}</version>
15+
<version>{gradle-project-version}</version>
1616
<executions>
1717
<execution>
1818
<goals>

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/integration-tests.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To make sure that the lifecycle of your Spring Boot application is properly mana
1111
<plugin>
1212
<groupId>org.springframework.boot</groupId>
1313
<artifactId>spring-boot-maven-plugin</artifactId>
14-
<version>{version}</version>
14+
<version>{gradle-project-version}</version>
1515
<executions>
1616
<execution>
1717
<id>pre-integration-test</id>
@@ -79,7 +79,7 @@ The example below showcases how you could achieve the same feature using the htt
7979
<plugin>
8080
<groupId>org.springframework.boot</groupId>
8181
<artifactId>spring-boot-maven-plugin</artifactId>
82-
<version>{version}</version>
82+
<version>{gradle-project-version}</version>
8383
<executions>
8484
<execution>
8585
<id>pre-integration-test</id>
@@ -136,7 +136,7 @@ This example shows how you can skip integration tests with a command-line proper
136136
<plugin>
137137
<groupId>org.springframework.boot</groupId>
138138
<artifactId>spring-boot-maven-plugin</artifactId>
139-
<version>{version}</version>
139+
<version>{gradle-project-version}</version>
140140
<executions>
141141
<execution>
142142
<id>pre-integration-test</id>

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Packaging an executable archive is performed by the `repackage` goal, as shown i
1212
<plugin>
1313
<groupId>org.springframework.boot</groupId>
1414
<artifactId>spring-boot-maven-plugin</artifactId>
15-
<version>{version}</version>
15+
<version>{gradle-project-version}</version>
1616
<executions>
1717
<execution>
1818
<goals>
@@ -47,7 +47,7 @@ The "Main-Class" in the manifest is actually controlled by the "layout" property
4747
<plugin>
4848
<groupId>org.springframework.boot</groupId>
4949
<artifactId>spring-boot-maven-plugin</artifactId>
50-
<version>{version}</version>
50+
<version>{gradle-project-version}</version>
5151
<configuration>
5252
<mainClass>${start.class}</mainClass>
5353
<layout>ZIP</layout>
@@ -92,7 +92,7 @@ If that is the case or if you prefer to keep the original artifact and attach th
9292
<plugin>
9393
<groupId>org.springframework.boot</groupId>
9494
<artifactId>spring-boot-maven-plugin</artifactId>
95-
<version>{version}</version>
95+
<version>{gradle-project-version}</version>
9696
<executions>
9797
<execution>
9898
<id>repackage</id>
@@ -165,7 +165,7 @@ The following configuration installs/deploys a single `task` classified artifact
165165
<plugin>
166166
<groupId>org.springframework.boot</groupId>
167167
<artifactId>spring-boot-maven-plugin</artifactId>
168-
<version>{version}</version>
168+
<version>{gradle-project-version}</version>
169169
<executions>
170170
<execution>
171171
<id>repackage</id>
@@ -235,7 +235,7 @@ If you need the repackaged jar to have a different local name than the one defin
235235
<plugin>
236236
<groupId>org.springframework.boot</groupId>
237237
<artifactId>spring-boot-maven-plugin</artifactId>
238-
<version>{version}</version>
238+
<version>{gradle-project-version}</version>
239239
<executions>
240240
<execution>
241241
<id>repackage</id>
@@ -267,7 +267,7 @@ If you need to only deploy the original jar and yet be able to run your app with
267267
<plugin>
268268
<groupId>org.springframework.boot</groupId>
269269
<artifactId>spring-boot-maven-plugin</artifactId>
270-
<version>{version}</version>
270+
<version>{gradle-project-version}</version>
271271
<executions>
272272
<execution>
273273
<id>repackage</id>
@@ -302,7 +302,7 @@ Spring Boot repackages the jar file for this project using a custom layout facto
302302
<plugin>
303303
<groupId>org.springframework.boot</groupId>
304304
<artifactId>spring-boot-maven-plugin</artifactId>
305-
<version>{version}</version>
305+
<version>{gradle-project-version}</version>
306306
<executions>
307307
<execution>
308308
<id>repackage</id>
@@ -359,7 +359,7 @@ The following example excludes `com.foo:bar`, and only that artifact:
359359
<plugin>
360360
<groupId>org.springframework.boot</groupId>
361361
<artifactId>spring-boot-maven-plugin</artifactId>
362-
<version>{version}</version>
362+
<version>{gradle-project-version}</version>
363363
<configuration>
364364
<excludes>
365365
<exclude>
@@ -384,7 +384,7 @@ This example excludes any artifact belonging to the `com.foo` group:
384384
<plugin>
385385
<groupId>org.springframework.boot</groupId>
386386
<artifactId>spring-boot-maven-plugin</artifactId>
387-
<version>{version}</version>
387+
<version>{gradle-project-version}</version>
388388
<configuration>
389389
<excludeGroupIds>com.foo</excludeGroupIds>
390390
</configuration>

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/running.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To enable it, just add the following dependency to your project:
2626
<dependency>
2727
<groupId>org.springframework.boot</groupId>
2828
<artifactId>spring-boot-devtools</artifactId>
29-
<version>{version}</version>
29+
<version>{gradle-project-version}</version>
3030
<optional>true</optional>
3131
</dependency>
3232
</dependencies>
@@ -54,7 +54,7 @@ You can restore it at any time by configuring your project:
5454
<plugin>
5555
<groupId>org.springframework.boot</groupId>
5656
<artifactId>spring-boot-maven-plugin</artifactId>
57-
<version>{version}</version>
57+
<version>{gradle-project-version}</version>
5858
<configuration>
5959
<addResources>true</addResources>
6060
</configuration>
@@ -99,7 +99,7 @@ The following configuration suspend the process until a debugger has joined on p
9999
<plugin>
100100
<groupId>org.springframework.boot</groupId>
101101
<artifactId>spring-boot-maven-plugin</artifactId>
102-
<version>{version}</version>
102+
<version>{gradle-project-version}</version>
103103
<configuration>
104104
<jvmArguments>
105105
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
@@ -136,7 +136,7 @@ The following example sets `property1` to `test` and `property2` to 42:
136136
<plugin>
137137
<groupId>org.springframework.boot</groupId>
138138
<artifactId>spring-boot-maven-plugin</artifactId>
139-
<version>{version}</version>
139+
<version>{gradle-project-version}</version>
140140
<configuration>
141141
<systemPropertyVariables>
142142
<property1>test</property1>
@@ -178,7 +178,7 @@ The following example sets the 'ENV1', 'ENV2', 'ENV3', 'ENV4' env variables:
178178
<plugin>
179179
<groupId>org.springframework.boot</groupId>
180180
<artifactId>spring-boot-maven-plugin</artifactId>
181-
<version>{version}</version>
181+
<version>{gradle-project-version}</version>
182182
<configuration>
183183
<environmentVariables>
184184
<ENV1>5000</ENV1>
@@ -217,7 +217,7 @@ The following configuration enables the `foo` and `bar` profiles:
217217
<plugin>
218218
<groupId>org.springframework.boot</groupId>
219219
<artifactId>spring-boot-maven-plugin</artifactId>
220-
<version>{version}</version>
220+
<version>{gradle-project-version}</version>
221221
<configuration>
222222
<profiles>
223223
<profile>foo</profile>

0 commit comments

Comments
 (0)