Skip to content

Commit f5b8a89

Browse files
committed
Polish "Fix Java version mismatch and clarify Gradle usage in readme"
See gh-2188
1 parent 430b5ff commit f5b8a89

1 file changed

Lines changed: 14 additions & 19 deletions

File tree

README.md

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,31 @@ See the presentation here:
1414
## Run Petclinic locally
1515

1616
Spring Petclinic is a [Spring Boot](https://spring.io/guides/gs/spring-boot) application built using [Maven](https://spring.io/guides/gs/maven/) or [Gradle](https://spring.io/guides/gs/gradle/).
17-
Java 17 or later is required for the build, and the application can run with Java 17 or newer:
17+
Java 17 or later is required for the build, and the application can run with Java 17 or newer.
18+
19+
You first need to clone the project locally:
1820

1921
```bash
2022
git clone https://github.com/spring-projects/spring-petclinic.git
2123
cd spring-petclinic
22-
./mvnw package
23-
java -jar target/*.jar
2424
```
25-
26-
(On Windows, or if your shell doesn't expand the glob, you might need to specify the JAR file name explicitly on the command line at the end there.)
27-
28-
You can then access the Petclinic at <http://localhost:8080/>.
29-
30-
<img width="1042" alt="petclinic-screenshot" src="https://cloud.githubusercontent.com/assets/838318/19727082/2aee6d6c-9b8e-11e6-81fe-e889a5ddfded.png">
31-
32-
Or you can run it from Maven directly using the Spring Boot Maven plugin. If you do this, it will pick up changes that you make in the project immediately (changes to Java source files require a compile as well - most people use an IDE for this):
25+
If you are using Maven, you can start the application on the command-line as follows:
3326

3427
```bash
3528
./mvnw spring-boot:run
3629
```
30+
With Gradle, the command is as follows:
31+
32+
```bash
33+
./gradlew bootRun
34+
```
3735

36+
You can then access the Petclinic at <http://localhost:8080/>.
3837

39-
> NOTE: If you prefer to use Gradle, you can build the app using `./gradlew build` and look for the jar file in `build/libs`.
40-
>
41-
> You can also run the application directly using Gradle:
42-
>
43-
> ```bash
44-
> ./gradlew bootRun
45-
> ```
38+
<img width="1042" alt="petclinic-screenshot" src="https://cloud.githubusercontent.com/assets/838318/19727082/2aee6d6c-9b8e-11e6-81fe-e889a5ddfded.png">
4639

40+
You can, of course, run Petclinic in your favorite IDE.
41+
See below for more details.
4742

4843
## Building a Container
4944

@@ -106,7 +101,7 @@ There is a `petclinic.css` in `src/main/resources/static/resources/css`. It was
106101

107102
The following items should be installed in your system:
108103

109-
- Java 17 or newer (LTS recommended, full JDK required)
104+
- Java 17 or newer (full JDK, not a JRE)
110105
- [Git command line tool](https://help.github.com/articles/set-up-git)
111106
- Your preferred IDE
112107
- Eclipse with the m2e plugin. Note: when m2e is available, there is a m2 icon in `Help -> About` dialog. If m2e is

0 commit comments

Comments
 (0)