Skip to content

Commit fe779bf

Browse files
authored
feat(readme): update Java version to 25 in setup examples (#969)
Updated the Java version in the README setup examples from 21 to 25 to reflect the latest supported version. This change ensures that users are guided to use the most current Java version for their projects. - Updated all instances of 'java-version: 21' to 'java-version: 25' - Modified supported version syntax to include '25'
1 parent be666c2 commit fe779bf

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ steps:
8282
- uses: actions/setup-java@v5
8383
with:
8484
distribution: 'temurin' # See 'Supported distributions' for available options
85-
java-version: '21'
85+
java-version: '25'
8686
- run: java HelloWorldApp.java
8787
```
8888
@@ -93,13 +93,13 @@ steps:
9393
- uses: actions/setup-java@v5
9494
with:
9595
distribution: 'zulu' # See 'Supported distributions' for available options
96-
java-version: '21'
96+
java-version: '25'
9797
- run: java HelloWorldApp.java
9898
```
9999
100100
#### Supported version syntax
101101
The `java-version` input supports an exact version or a version range using [SemVer](https://semver.org/) notation:
102-
- major versions: `8`, `11`, `16`, `17`, `21`
102+
- major versions: `8`, `11`, `16`, `17`, `21`, `25`
103103
- more specific versions: `8.0.282+8`, `8.0.232`, `11.0`, `11.0.4`, `17.0`
104104
- early access (EA) versions: `15-ea`, `15.0.0-ea`
105105

@@ -149,7 +149,7 @@ steps:
149149
- uses: actions/setup-java@v5
150150
with:
151151
distribution: 'temurin'
152-
java-version: '21'
152+
java-version: '25'
153153
cache: 'gradle'
154154
cache-dependency-path: | # optional
155155
sub-project/*.gradle*
@@ -169,7 +169,7 @@ steps:
169169
- uses: actions/setup-java@v5
170170
with:
171171
distribution: 'temurin'
172-
java-version: '21'
172+
java-version: '25'
173173
cache: 'maven'
174174
cache-dependency-path: 'sub-project/pom.xml' # optional
175175
- name: Build with Maven
@@ -183,7 +183,7 @@ steps:
183183
- uses: actions/setup-java@v5
184184
with:
185185
distribution: 'temurin'
186-
java-version: '21'
186+
java-version: '25'
187187
cache: 'sbt'
188188
cache-dependency-path: | # optional
189189
sub-project/build.sbt
@@ -203,7 +203,7 @@ steps:
203203
- uses: actions/setup-java@v5
204204
with:
205205
distribution: 'temurin'
206-
java-version: '21'
206+
java-version: '25'
207207
cache: 'gradle'
208208
- run: ./gradlew build --no-daemon
209209
```
@@ -223,7 +223,7 @@ steps:
223223
- uses: actions/setup-java@v5
224224
with:
225225
distribution: 'temurin'
226-
java-version: '21'
226+
java-version: '25'
227227
check-latest: true
228228
- run: java HelloWorldApp.java
229229
```
@@ -235,7 +235,7 @@ jobs:
235235
runs-on: ubuntu-20.04
236236
strategy:
237237
matrix:
238-
java: [ '8', '11', '17', '21' ]
238+
java: [ '8', '11', '17', '21', '25' ]
239239
name: Java ${{ matrix.Java }} sample
240240
steps:
241241
- uses: actions/checkout@v6

0 commit comments

Comments
 (0)