Skip to content

ci: pin JDK 11 for the Spark and Struts jobs 1.x - #1737

Merged
ckawl merged 2 commits into
aws:1.xfrom
ckawl:ci/pin-jdk-spark-struts-1.x
Dec 1, 2026
Merged

ckawl merged 2 commits into
aws:1.xfrom
ckawl:ci/pin-jdk-spark-struts-1.x

Conversation

@ckawl

@ckawl ckawl commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

The Spark and Struts jobs ran on the runner's default JDK. ubuntu-latest moved from ubuntu-24.04 to ubuntu-26.04, whose default is Java 25, and SpotBugs 4.8.3 can't read Java 25 class files (Unsupported class file major version 69), so both jobs now fail in the core module before any tests run. This breaks every PR against 1.x, for example #1736.

Both jobs now set up Corretto 11 like the other jobs in this workflow. With JDK 11 they get past Maven but stop at the archetype and sample Gradle steps, because the Gradle preinstalled on the runner needs JVM 17 or later, so they also pin Gradle 8.14 the same way the other JDK 11 jobs already do.

Testing

Ran ./gha_build.sh spark true true and ./gha_build.sh struts true true locally on Corretto 11 with Gradle 8.14: both build and pass.

By submitting this pull request

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I confirm that I've made a best effort attempt to update all relevant documentation.

Both jobs ran on the runner's default JDK. ubuntu-latest moved from
ubuntu-24.04 to ubuntu-26.04, whose default is Java 25, and SpotBugs 4.8.3
cannot read Java 25 class files ("Unsupported class file major version 69"),
so both jobs fail in the core module before any tests run. They now set up
Corretto 11 like the other jobs in this workflow.

@aws-sam-tooling-bot aws-sam-tooling-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Results

Reviewed: a9e6b59..87279f3
Files: 1
Comments: 1

With JDK 11 set up, these jobs get past Maven but then stop at the
archetype and sample Gradle steps, because the Gradle preinstalled on the
runner requires JVM 17 or later. Pin Gradle 8.14 the same way the other
JDK 11 jobs in this workflow already do.
@ckawl
ckawl merged commit 61476cb into aws:1.x Dec 1, 2026
7 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