Skip to content

Commit 31a3eb7

Browse files
committed
Use Java 21(exact) for 1.1.x branch
Signed-off-by: Eric Bottard <eric.bottard@broadcom.com>
1 parent e3fd662 commit 31a3eb7

11 files changed

+37
-22
lines changed

.github/workflows/artifactory-milestone-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
- name: Checkout source code
1616
uses: actions/checkout@v4
1717

18-
- name: Set up JDK 17
18+
- name: Set up JDK
1919
uses: actions/setup-java@v4
2020
with:
21-
java-version: '17'
21+
java-version: '21'
2222
distribution: 'temurin'
2323
cache: 'maven'
2424

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Set up JDK 17
4949
uses: actions/setup-java@v4
5050
with:
51-
java-version: '17'
51+
java-version: '21'
5252
distribution: 'temurin'
5353
cache: 'maven'
5454

.github/workflows/documentation-upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up JDK 17
2222
uses: actions/setup-java@v4
2323
with:
24-
java-version: '17'
24+
java-version: '21'
2525
distribution: 'temurin'
2626
cache: 'maven'
2727

.github/workflows/fast-continuous-integration.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set up JDK 17
3131
uses: actions/setup-java@v4
3232
with:
33-
java-version: '17'
33+
java-version: '21'
3434
distribution: 'temurin'
3535
cache: 'maven'
3636

@@ -65,7 +65,7 @@ jobs:
6565
- name: Set up JDK 17
6666
uses: actions/setup-java@v4
6767
with:
68-
java-version: '17'
68+
java-version: '21'
6969
distribution: 'temurin'
7070
cache: 'maven'
7171

@@ -102,7 +102,7 @@ jobs:
102102
- name: Set up JDK 17
103103
uses: actions/setup-java@v4
104104
with:
105-
java-version: '17'
105+
java-version: '21'
106106
distribution: 'temurin'
107107
cache: 'maven'
108108

@@ -139,7 +139,7 @@ jobs:
139139
- name: Set up JDK 17
140140
uses: actions/setup-java@v4
141141
with:
142-
java-version: '17'
142+
java-version: '21'
143143
distribution: 'temurin'
144144
cache: 'maven'
145145

@@ -176,7 +176,7 @@ jobs:
176176
- name: Set up JDK 17
177177
uses: actions/setup-java@v4
178178
with:
179-
java-version: '17'
179+
java-version: '21'
180180
distribution: 'temurin'
181181
cache: 'maven'
182182

@@ -219,7 +219,7 @@ jobs:
219219
- name: Set up JDK 17
220220
uses: actions/setup-java@v4
221221
with:
222-
java-version: '17'
222+
java-version: '21'
223223
distribution: 'temurin'
224224
cache: 'maven'
225225

@@ -248,7 +248,7 @@ jobs:
248248
- name: Set up JDK 17
249249
uses: actions/setup-java@v4
250250
with:
251-
java-version: '17'
251+
java-version: '21'
252252
distribution: 'temurin'
253253
cache: 'maven'
254254

.github/workflows/main-push-fast.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
5454
- uses: actions/setup-java@v4
5555
with:
56-
java-version: '17'
56+
java-version: '21'
5757
distribution: 'temurin'
5858
# cache: 'maven' # Disabled for fast workflow - reduces post-job noise
5959

.github/workflows/maintenance-fast.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
- uses: actions/setup-java@v4
2222
with:
23-
java-version: '17'
23+
java-version: '21'
2424
distribution: 'temurin'
2525
cache: 'maven'
2626

.github/workflows/pr-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
- name: Checkout source code
1515
uses: actions/checkout@v4
1616

17-
- name: Set up JDK 17
17+
- name: Set up JDK
1818
uses: actions/setup-java@v4
1919
with:
20-
java-version: '17'
20+
java-version: '21'
2121
distribution: 'temurin'
2222
cache: 'maven'
2323

.github/workflows/release-notes-generation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
- name: Download changelog generator
2424
run: wget https://github.com/spring-io/github-changelog-generator/releases/download/v$GENERATOR_VERSION/github-changelog-generator.jar
2525

26-
- name: Set up JDK 17
26+
- name: Set up JDK
2727
uses: actions/setup-java@v4
2828
with:
29-
java-version: '17'
29+
java-version: '21'
3030
distribution: 'temurin'
3131

3232
- name: Prepare configuration file

.sdkmanrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Enable auto-env through the sdkman_auto_env config
2+
# Add key=value pairs of SDKs to use below
3+
java=21.0.9-tem

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Spring AI [![build status](https://github.com/spring-projects/spring-ai/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/spring-projects/spring-ai/actions/workflows/continuous-integration.yml) [![build status](https://github.com/spring-projects/spring-ai-integration-tests/actions/workflows/spring-ai-integration-tests.yml/badge.svg)](https://github.com/spring-projects/spring-ai-integration-tests/actions/workflows/spring-ai-integration-tests.yml)
22

3+
### Spring Boot Version Compatibility
4+
5+
> **Spring AI 2.x.x** ([main](https://github.com/spring-projects/spring-ai/tree/main) branch) - Spring Boot `4.x`
6+
>
7+
> **Spring AI 1.1.x** ([1.1.x](https://github.com/spring-projects/spring-ai/tree/1.1.x) branch) - Spring Boot `3.5.x`
8+
39

410
The Spring AI project provides a Spring-friendly API and abstractions for developing AI applications.
511

@@ -65,7 +71,8 @@ To clone it you have to either:
6571

6672
## Building
6773

68-
Build using Java 17.
74+
The project targets and build artifacts compatible with Java 17+, but requires JDK 21
75+
to build. This is enforced by the maven enforcer plugin.
6976

7077
To build with running unit tests
7178

0 commit comments

Comments
 (0)