Skip to content

Open Liberty Starter: Gradle 9 and Liberty Gradle Plugin 4.x #4186

@kinueng

Description

@kinueng

Goal

Introduce a new UX for the Open Liberty starter (start.openliberty.io) that allows users to choose between Gradle 8 and 9. Depending on their choice, the starter will choose between Liberty Gradle Plugin (LGP) 3.x or 4.x.

Reason

The starter currently generates Gradle-based projects using the Liberty Gradle Plugin (LGP) 3.x with Gradle 8. With LGP 4.0.0, support for Gradle 9 was introduced. To support both:

  • Users who want to use Gradle 9 need projects generated with LGP 4.x
  • Users who need to stay on Gradle 8 should continue using LGP 3.x

Compatibility Constraints

Gradle Version LGP Version Minimum Java SE
Gradle 8 LGP 3.x Java 8
Gradle 9 LGP 4.x Java 17

Key Constraint: When Gradle 9 is selected:

  • Disable Java SE 8 and 11 options and automatically choose 17 as the default choice with Gradle 9
  • Show message to user to tell them why certain things are disabled (an existing UX)

LGP compatibility docs https://github.com/OpenLiberty/ci.gradle?tab=readme-ov-file#compatibility--support
Gradle Java support https://docs.gradle.org/current/userguide/compatibility.html

Outstanding Investigation

Need to confirm Jakarta EE and MicroProfile selections are compatible with both LGP 3.x and 4.x

Metadata

Metadata

Labels

No labels
No labels
No fields configured for Feature.

Projects

Status
In Development

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions