-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 CONFIGURATION phase from 3sec to 1min+ after switching to 3.16.1 #44940
Comments
/cc @glefloch, @quarkusio/devtools, @radcortez (config) |
@cdsap you may be interested in this one |
The configuration cache changes require eager resolution of the dependencies causing this duration.
I assume my times are faster because I'm using a M1. Investigating |
👋 Just wanted to chime in here that a project I'm working on (closed source) is experiencing this behavior as well; I haven't had the time to dig in/make a reproducer like the one linked here. Our project (larger than the one linked) went from taking 6 seconds to calculate the task graph on a full cached build (no tasks executed) to 58 seconds for a fully cached build. This is without the configuration cache enabled, on an M2 Pro with 32GB of ram. I had skimmed the release notes and hadn't seen the news about configuration cache compatibility for QuarkusBuild tasks (#42496). I tried enabling the configuration cache on the reproducer project linked to this issue, but the entry is discarded each time due to probelms with how the quarkus plugin configures gradle's test task. |
The issue is related to the request of the deployment configuration with Regarding the configuration cache compatibility, a |
Agreed— I'm delaying minor version upgrades at the moment, but depending on which bugs/security issues come in, I will eventually have to take the productivity hit. If there's any help/more info I can provide, please let me know! |
Describe the bug
After switching from version 3.13.3 to 3.17.3 I noticed that gradle configuration phase takes more than a minute to complete. On 3.13.3 it was very quick, about 3 seconds or even less. I checked different versions:
3.13.3 -> ok
3.14.4 -> ok
3.15.2 -> ok
3.16.4 -> not ok
3.16.1 -> not ok
3.17.3 -> not ok
Here is a project which demonstrates the problem - https://github.com/Shohou/gradle_quarkus_3.16
run
./gradlew build
and see how long it takes for CONFIGURATION phase to complete. First time it might be even longer because of libraries download, but then run it again and it still takes over 1 minute.You can modify
gradle.properties
and change therequarkusPluginVersion
,quarkusPlatformVersion
to3.15.2
and see how fast CONFIGURATION phase passes, although whole project takes about 3 minutes to build without a single java file, but with some libraries.Expected behavior
I expect CONFIGURATOIN to take about 3 seconds, slightly more with libraries download
Actual behavior
It takes 1 minute+
How to Reproduce?
Download project from here - https://github.com/Shohou/gradle_quarkus_3.16
run
./gradlew build
Output of
uname -a
orver
No response
Output of
java -version
openjdk 21.0.4 2024-07-16 LTS
Quarkus version or git rev
3.16.1+
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.9, also tried with 8.11.1
Additional information
No response
The text was updated successfully, but these errors were encountered: