Skip to content

fix(sam-serverless-app): upgrade Gradle wrapper to 8.5 for JDK 21 com… - #607

Merged
Mirijam1 merged 1 commit into
mainfrom
fix/gradle-8.5-jdk21-compat
Aug 21, 2026
Merged

fix(sam-serverless-app): upgrade Gradle wrapper to 8.5 for JDK 21 com…#607
Mirijam1 merged 1 commit into
mainfrom
fix/gradle-8.5-jdk21-compat

Conversation

@Mirijam1

Copy link
Copy Markdown
Contributor

The MDE Universal Image 4.0 ships JDK 21 as default, which produces class file version 65. Gradle 7.3.3's Groovy/ASM only supports up to version 61 (JDK 17), causing 'Unsupported class file major version 65' errors during postStart in Dev Environments.

Gradle 8.5 is the minimum version supporting JDK 21.

Issue

Description

Updates the SAM blueprint's Gradle wrapper from 7.3.3 to 8.5 so that the generated Java Lambda project can build under JDK 21 (shipped in MDE Universal Image 4.0). Also updates the corresponding snapshot test.

Testing

  • yarn blueprint:synth — confirmed generated projects use Gradle 8.5
  • yarn test — all 26 tests pass, 84 snapshots pass
  • Full monorepo yarn build passes (pre-push hook)
  • Manually verified Dev Environment postStart failure matches the Unsupported class file major version 65 error from devfileCommand.log

Additional context

The sam-serverless-application blueprint is used by internal canary testing only. No customer impact from this change. The canary alarm has been firing continuously since Aug 14 (7

…patibility

The MDE Universal Image 4.0 ships JDK 21 as default, which produces class
file version 65. Gradle 7.3.3's Groovy/ASM only supports up to version 61
(JDK 17), causing 'Unsupported class file major version 65' errors during
postStart in Dev Environments.

Gradle 8.5 is the minimum version supporting JDK 21.
@Mirijam1
Mirijam1 merged commit fbfeca1 into main Aug 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants