Switch to building the project with Java 25
Some checks failed
Java CI with Gradle / build (25) (push) Failing after 8s
Java CI with Maven / build (25) (push) Successful in 2m8s

Closes gh-2101
This commit is contained in:
Stéphane Nicoll 2025-10-14 12:35:15 +02:00
parent 7deaa78575
commit 6feeae0f13
7 changed files with 9 additions and 9 deletions

View file

@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '24' ]
java: [ '25' ]
steps:
- uses: actions/checkout@v4

View file

@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '24' ]
java: [ '25' ]
steps:
- uses: actions/checkout@v4

3
.gitignore vendored
View file

@ -42,9 +42,6 @@ out/
### VS Code ###
.vscode/
### SDK Man ###
.sdkmanrc
### CSS ###
_site/
*.css

3
.sdkmanrc Normal file
View file

@ -0,0 +1,3 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=25-librca

View file

@ -14,7 +14,7 @@ See the presentation here:
## Run Petclinic locally
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/).
Java 24 or later is required for the build, but the application can run with Java 17 or newer:
Java 25 or later is required for the build, but the application can run with Java 17 or newer:
```bash
git clone https://github.com/spring-projects/spring-petclinic.git
@ -98,7 +98,7 @@ There is a `petclinic.css` in `src/main/resources/static/resources/css`. It was
The following items should be installed in your system:
- Java 24 or newer (full JDK, not a JRE)
- Java 25 or newer (full JDK, not a JRE)
- [Git command line tool](https://help.github.com/articles/set-up-git)
- Your preferred IDE
- Eclipse with the m2e plugin. Note: when m2e is available, there is an m2 icon in `Help -> About` dialog. If m2e is

View file

@ -17,7 +17,7 @@ version = '4.0.0-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(24)
languageVersion = JavaLanguageVersion.of(25)
}
}

View file

@ -18,7 +18,7 @@
<properties>
<!-- Generic properties -->
<java.version>24</java.version>
<java.version>25</java.version>
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>