Skip to content

Commit e20803c

Browse files
ci: bump Code format job to Java 17
The springai sample modules require Java 17 (Spring AI 1.1 needs Spring Boot 3.x, which needs Java 17). Running spotlessCheck on Java 11 made google-java-format choke on text blocks in those sources with "unclosed string literal" errors. Bump the format job's setup-java to 17 so it can parse the springai sources. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 00ea6f3 commit e20803c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,14 @@ jobs:
4242
- name: Set up Java
4343
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
4444
with:
45-
java-version: "11"
45+
# The springai sample modules require Java 17 (Spring AI 1.1 needs
46+
# Spring Boot 3.x, which needs Java 17). google-java-format has to
47+
# run on Java 17 to parse those sources.
48+
java-version: "17"
4649
distribution: "temurin"
4750

4851
- name: Set up Gradle
4952
uses: gradle/actions/setup-gradle@ac396bf1a80af16236baf54bd7330ae21dc6ece5 # v6
50-
53+
5154
- name: Run copyright and code format checks
5255
run: ./gradlew --no-daemon spotlessCheck

0 commit comments

Comments
 (0)