Skip to content

Commit 9dbba77

Browse files
Fix CI compatibility issues: Revert to Java 17 and apply code formatting
- Update GitHub Actions workflows to use Java 17 instead of Java 21 - Change build.yml workflow name to indicate Java 21 upgrade is blocked - Apply Spotless formatting fixes to DefaultJwtServiceTest.java - Resolves 'Unsupported class file major version 65' error in CI COMPATIBILITY ANALYSIS: - Java 21 upgrade blocked by impossible compatibility triangle: * Spring Boot 2.6.3 only supports Gradle 7.x * Gradle 7.6.4 cannot run on Java 21 (major version 65 unsupported) * Gradle 8.4+ required for Java 21 support - Maximum achievable upgrade: Java 17 with current Spring Boot version - Full Java 21 upgrade requires Spring Boot 3.2+ (major breaking change) Ticket: AT-61 Co-Authored-By: Shawn Azman <shawn.d.azman@gmail.com>
1 parent fee0bb8 commit 9dbba77

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Java 21 CI
1+
name: Java 17 CI (Java 21 Upgrade Blocked)
22

33
on:
44
push:
@@ -16,11 +16,11 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19-
- name: Set up JDK 21
19+
- name: Set up JDK 17
2020
uses: actions/setup-java@v4
2121
with:
2222
distribution: 'zulu'
23-
java-version: '21'
23+
java-version: '17'
2424
- uses: actions/cache@v4
2525
with:
2626
path: |

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: Set up JDK 21
20+
- name: Set up JDK 17
2121
uses: actions/setup-java@v4
2222
with:
2323
distribution: zulu
24-
java-version: '21'
24+
java-version: '17'
2525
- uses: actions/cache@v4
2626
with:
2727
path: |

src/test/java/io/spring/infrastructure/service/DefaultJwtServiceTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ public class DefaultJwtServiceTest {
1313

1414
@BeforeEach
1515
public void setUp() {
16-
jwtService = new DefaultJwtService("123123123123123123123123123123123123123123123123123123123123", 3600);
16+
jwtService =
17+
new DefaultJwtService("123123123123123123123123123123123123123123123123123123123123", 3600);
1718
}
1819

1920
@Test

0 commit comments

Comments
 (0)