Dependency Scanning: Add support for Java 25 LTS and Gradle 9.1

Proposal

Extend Dependency Scanning support to include:

  • Java 25
  • Gradle 9.1

Java 25 was released in September 2025 as the latest Long-Term Support (LTS) release.

Currently, GitLab Dependency Scanning only supports Java 8, 11, 17, and 21 LTS versions. According to the Gradle compatibility matrix, Java 25 requires Gradle 9.1.0 or later. Gradle 9.x is not supported and fails with the following error due to breaking API changes.

Why this issue is no longer relevant?

Because with the new DS analyzer (19.0) we can support users with Java 25. See #590066 (comment 3369569644)

Edited by Nick Ilieskou