Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle composite build fails when more than two included build have a gradle quarkus plugin with version 3.7.1 #38567

Closed
Malandril opened this issue Feb 2, 2024 · 3 comments
Labels
area/gradle Gradle area/kotlin kind/bug Something isn't working

Comments

@Malandril
Copy link
Contributor

Describe the bug

A composite gradle project fails to configure if more than two included build have a subproject with the quarkus plugin applied.
This has been tested with gradle 8.5 and openjdk-21.
This only fails with the quarkus gradle plugin 3.7.1 and 3.7.0.CR1 .

Expected behavior

A gradle composite project can include multiple projects applying the gradle quarkus plugin.

Actual behavior

The project fails to configure, and no gradle task can be run.
Gradle fails with :

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':quarkus-1'.
> The root project is not yet available for build.

How to Reproduce?

  1. Create two quarkus gradle projects
    for example using:
     quarkus create app quarkus-1  --gradle -P 3.7.1
     quarkus create app quarkus-2  --gradle -P 3.7.1
  2. Create a gradle project including the other 2 in a composite build using
    rootProject.name = "aggregator"
    includeBuild("quarkus-1")
    includeBuild("quarkus-2")
  3. Run any gradle task in the aggregator project it should display an error:
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    A problem occurred configuring project ':quarkus-1'.
    > The root project is not yet available for build.
    

Output of uname -a or ver

Linux tca 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 12 18:54:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version "21.0.1" 2023-10-17 OpenJDK Runtime Environment (build 21.0.1+12-Ubuntu-222.04) OpenJDK 64-Bit Server VM (build 21.0.1+12-Ubuntu-222.04, mixed mode, sharing)

Quarkus version or git rev

3.7.1

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

------------------------------------------------------------ Gradle 8.5 ------------------------------------------------------------ Build time: 2023-11-29 14:08:57 UTC Revision: 28aca86a7180baa17117e0e5ba01d8ea9feca598 Kotlin: 1.9.20 Groovy: 3.0.17 Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023 JVM: 21.0.1 (Private Build 21.0.1+12-Ubuntu-222.04) OS: Linux 6.5.0-15-generic amd64

Additional information

No response

@Malandril Malandril added the kind/bug Something isn't working label Feb 2, 2024
Copy link

quarkus-bot bot commented Feb 2, 2024

/cc @geoand (kotlin), @glefloch, @quarkusio/devtools

@ChristianGmw
Copy link

We ran into the same issue. We are currently on java 17 and gradle 8.4. I also tried with older gradle versions, but the issue still was there.

@Malandril
Copy link
Contributor Author

Fixed by #38607

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gradle Gradle area/kotlin kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants