fix(sam-serverless-app): upgrade Gradle wrapper to 8.5 for JDK 21 com… - #607
Merged
Conversation
…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.
dnemec-aws
approved these changes
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.5yarn test— all 26 tests pass, 84 snapshots passyarn buildpasses (pre-push hook)Unsupported class file major version 65error fromdevfileCommand.logAdditional 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