Switch Java versions used in documentation

See gh-32746
This commit is contained in:
Phillip Webb
2022-10-18 13:28:29 -07:00
parent 7d03a201c0
commit cb48674536
4 changed files with 7 additions and 8 deletions

View File

@@ -136,11 +136,11 @@ You can list the capabilities of the service by using the `--list` flag, as show
The `init` command supports many options.
See the `help` output for more details.
For instance, the following command creates a Gradle project that uses Java 8 and `war` packaging:
For instance, the following command creates a Gradle project that uses Java 17 and `war` packaging:
[source,shell,indent=0,subs="verbatim"]
----
$ spring init --build=gradle --java-version=1.8 --dependencies=websocket --packaging=war sample-app.zip
$ spring init --build=gradle --java-version=17 --dependencies=websocket --packaging=war sample-app.zip
Using service at https://start.spring.io
Content saved to 'sample-app.zip'
----