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
Regression in 8.2: StackOverflowError w/ Gradle 8.2 + Quarkus 2.16.7 (latest) #25579
Comments
Thank you for providing a valid reproducer. The issue is in the backlog of the relevant team, but this area of Gradle is currently not a focus one, so it might take a while before a fix is made. |
Update: Gradle 8.2 works with the Quarkus 3 Gradle plugin, but not w/ the Quarkus 2 Gradle plugin. |
Thank you for your interest in Gradle! This issue needs a decision from the team responsible for that area. They have been informed. Response time may vary. |
This will be fixed in 8.2.1 by #25626 |
…solve current project Prior to 8.2, addAllLater hooks on a configuration could resolve other configurations in the same project in order to determine the dependencies to add. 8.2 added a change which eager calculated confguration metadata dependenices for all consumable variants in the same project, causing a stackoverflow. This once again makes configuration dependency calculation lazy, avoiding a stackoverflow. Note, a stackoverflow will likely still happen if the configuration with the lazy dependencies selects itself. But, this makes no sense conceptually. Fixes: #25579 Co-authored-by: Justin Van Dort <jvandort@gradle.com>
Hey @snazy, Could you confirm that the 8.2.1 nightly fixes this reported issue? |
Looks good! |
Gradle 8.2.0+8.2.1 have serious bugs in combination with Quarkus, causing builds to fail with either a [`StackOverflowException`](gradle/gradle#25579)) or [`ConcurrentModificationException`](gradle/gradle#25751). This change reverts Gradle back to 8.1.1 and also cleans up the failed, nowhere (yet) published Nessie releases 0.65.0+0.65.1.
Gradle 8.2.0+8.2.1 have serious bugs in combination with Quarkus, causing builds to fail with either a [`StackOverflowException`](gradle/gradle#25579)) or [`ConcurrentModificationException`](gradle/gradle#25751). This change reverts Gradle back to 8.1.1 and also cleans up the failed, nowhere (yet) published Nessie releases 0.65.0+0.65.1.
Gradle 8.2.0+8.2.1 have serious bugs in combination with Quarkus, causing builds to fail with either a [`StackOverflowException`](gradle/gradle#25579)) or [`ConcurrentModificationException`](gradle/gradle#25751). This change reverts Gradle back to 8.1.1 and also cleans up the failed, nowhere (yet) published Nessie releases 0.65.0+0.65.1.
Expected Behavior
No
StackOverflowError
Current Behavior
java.lang.StackOverflowError
w/ repeated stack frames:Context (optional)
This failure happens since Gradle 8.2. Gradle 8.1.1 works fine (regression with Gradle 8.2).
This happens with Quarkus 2.16.7.Final (Quarkus Gradle plugin version).
The failure seems not to happen with Quarkus 3.1.3.Final (the Quarkus Gradle plugin has been heavily changed in Quarkus 3). Haven't sorted out the task-dependency issues yet, so haven't seen the build passing w/ Quarkus 3 + Gradle 8.2 yet.
Tried with Java 20.0.1 + 17.0.7.
Steps to Reproduce
git clone https://github.com/projectnessie/nessie.git
cd nessie
./gradlew compileJava
Gradle version
8.2
Build scan URL (optional)
CI w/ Quarkus leads to build scan
CI w/o Quarkus leads to build scan
Your Environment (optional)
Linux 6.4.0
No additional/changed Gradle settings than in the source repo's
gradle.properties
The text was updated successfully, but these errors were encountered: