Skip to content

Commit ee2fb63

Browse files
author
Dave Syer
committed
Even up material in 'build an executable' section
Before this change to was a bit confusing because I had to read all the Gradle instructions to find out about the JAR content, and then the Maven instructions were very terse.
1 parent 879b6b2 commit ee2fb63

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
:linkattrs:
22

3-
If you are using Gradle, you can run the application using `./gradlew bootRun`.
3+
You can run the application from the command line with Gradle or Maven. Or you can build a single executable JAR file that contains all the necessary dependencies, classes, and resources, and run that. This makes it easy to ship, version, and deploy the service as an application throughout the development lifecycle, across different environments, and so forth.
44

5-
You can build a single executable JAR file that contains all the necessary dependencies, classes, and resources. This makes it easy to ship, version, and deploy the service as an application throughout the development lifecycle, across different environments, and so forth.
5+
If you are using Gradle, you can run the application using `./gradlew bootRun`. Or you can build the JAR file using `./gradlew build`.
66

7-
[subs="attributes", role="has-copy-button"]
8-
....
9-
./gradlew build
10-
....
7+
If you are using Maven, you can run the application using `./mvnw spring-boot:run`. Or you can build the JAR file with `./mvnw clean package`.
118

129
Then you can run the JAR file:
1310

@@ -16,12 +13,5 @@ Then you can run the JAR file:
1613
java -jar build/libs/{project_id}-0.1.0.jar
1714
....
1815

19-
If you are using Maven, you can run the application using `mvn spring-boot:run`. Or you can build the JAR file with `mvn clean package` and run the JAR by typing:
20-
21-
[subs="attributes", role="has-copy-button"]
22-
....
23-
java -jar target/{project_id}-0.1.0.jar
24-
....
25-
2616
NOTE: The procedure above will create a runnable JAR. You can also opt to link:/guides/gs/convert-jar-to-war/[build a classic WAR file] instead.
2717

0 commit comments

Comments
 (0)