Skip to content

CLI app created for latest LTS selects unsupported Gradle version, build fails #49963

@svifred

Description

@svifred

Describe the bug

When creating a new Quarkus app using the CLI with options for latest LTS stream 3.20 and Gradle as build tool, the newly created app does not build.

The CLI selects Gradle 9.0.0, which is not supported in Quarkus 3.20.

Expected behavior

The CLI should select a version of the build tool, that is supported by the stream supplied, or should provide the option to override the build tool version.

Actual behavior

CLI creates app with Quarkus version 3.20.2.2 and Gradle wrapper for Gradle 9.0.0.

This combination does not build:

$ ./gradlew build
Downloading https://services.gradle.org/distributions/gradle-9.0.0-bin.zip
............10%.............20%.............30%.............40%.............50%............60%.............70%.............80%.............90%.............100%

Welcome to Gradle 9.0.0!

Here are the highlights of this release:
 - Configuration Cache is the recommended execution mode
 - Gradle requires JVM 17 or higher to run
 - Build scripts use Kotlin 2.2 and Groovy 4.0
 - Improved Kotlin DSL script compilation avoidance

For more details see https://docs.gradle.org/9.0.0/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

[Incubating] Problems report is available at: file:///C:/Udvikler/Projects/tmp/qcli/code-with-quarkus/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'code-with-quarkus'.
> Extending a detachedConfiguration is not allowed
    configuration ':detachedConfiguration1' cannot extend configuration ':compileClasspath'

How to Reproduce?

quarkus create app -S 3.20 --gradle
cd code-with-quarkus/
./gradlew build

Output of uname -a or ver

No response

Output of java -version

openjdk version "21.0.8" 2025-07-15 LTS

Quarkus version or git rev

3.20.2.2

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 9.0.0 (328772c6bae126949610a8beb59cb227ee580241)

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    3.27.0

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions