Skip to content

chore: bump sourceCompatibility from 1.8 to 11 (fleet floor alignment)#687

Merged
bjagg merged 1 commit intouPortal-Project:masterfrom
bjagg:chore/source-compat-11
May 1, 2026
Merged

chore: bump sourceCompatibility from 1.8 to 11 (fleet floor alignment)#687
bjagg merged 1 commit intouPortal-Project:masterfrom
bjagg:chore/source-compat-11

Conversation

@bjagg
Copy link
Copy Markdown
Member

@bjagg bjagg commented May 1, 2026

Bumps sourceCompatibility in build.gradle from 1.8 to 11, matching the workspace fleet floor (per CLAUDE.md).

Why

The CI matrix already runs on Java 11 only (see .github/workflows/CI.yml). The sourceCompatibility = 1.8 pin was just a stale relic, but it had a concrete cost: Gradle resolves dependencies looking for Java 8 class-file variants, and modern artifact majors don't publish those anymore.

Three of the four currently-failing Renovate PRs surface this:

Once this PR lands, those three should pass naturally. (#685 jsonpath v3 still fails — it requires Java 17; it'll be capped via a separate renovate.json PR.)

Changes

build.gradle:

  • sourceCompatibility = 1.8sourceCompatibility = 11.

targetCompatibility is not pinned separately; Gradle defaults it to sourceCompatibility, so the bytecode target moves to 11 too.

Test plan

CLAUDE.md says the workspace fleet floor is Java 11. NotificationPortlet's
build.gradle still pinned sourceCompatibility = 1.8, which is below the
floor and below the CI matrix (which already runs on Java 11 only).

The pin is causing concrete pain: Gradle resolves dependencies looking
for Java 8 class-file variants, and modern artifacts (guava 32+,
jsonpath 3+, jackson recent patch lines) only ship Java 11+ variants.
Several Renovate PRs that should be straightforward bumps fail with
'No matching variant ... compatible with Java 8' errors. Once
sourceCompatibility lifts to 11, those resolve naturally.

Changes:
- build.gradle: sourceCompatibility = 1.8 -> 11.

Notes: targetCompatibility is not pinned separately; Gradle defaults
it to sourceCompatibility, so the bytecode target moves to 11 too.
The CI matrix already pins Java 11 (per .github/workflows/CI.yml),
so this is just aligning the pin with what the build actually runs.
@bjagg bjagg merged commit 00e8f38 into uPortal-Project:master May 1, 2026
3 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