-
Notifications
You must be signed in to change notification settings - Fork 160
Add support for Gradle configuration cache to Gradle Artifactory plugin #601
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
Comments
Hello @maxtracking Can I solve this issue? I can |
Oh, please go ahead :) All I need is new plugin version that lets me use configuration cache |
I believe system properties and environment variables are no longer causing configuration cache failures. In the current version of gradle (7.4.2) the only configuration cache error is
Perhaps build listeners will be supported by the configuration cache in the future, or the artifactory plugin could be refactored to not use build listeners. |
Hi any update on this? i stil get error when using configuration cache on jfrog latest version 4.29.4 |
This would be great to see, as it enables huge performance improvements for large multi-module projects. However, the listener is not the only problem. References to the project from tasks would have to be refactored to use Inputs/providers, tasks cannot reference each other by looking up the instance via the project. This last one is how DeployTask is implemented by finding ArtifactoryTask instances in the build graph. I'm not sure how to get that to play well with the configuration cache. |
Hi , |
Hello all, |
@maxtracking @NaincyKumariKnoldus @Sineaggi @doniwinata0309 @joprice @ahna92 & @jacinpoz, Configuration cache should work now in the following Gradle versions: [7.4.1, 8.2.0). We'll add support for 8.2.0+ in the near future. We'd appreciate your feedback on that. |
I confirm that gradle cache is working now on my project after switching to your version 5.1.0. I have this sestting in my gradle (fro Android) and this does not work any more:
|
I appreciate your input regarding the Gradle cache, @raydenvoldeskine. |
@yahavi Android Studio still complaining about the configuration cache of your plugin version 5.1.0. |
Done: jfrog/artifactory-gradle-plugin#51 Do I assume it right that this is a regression which went through your verification gate? (based on fact that you haven't announced any changes to publishBuildInfo behaviour in your release notes). In this case is creation of a bug "report" through external persons corresponds to your process rules? I have already spent time trying to debug it first and then write a report, the time is billed to my customer. |
@raydenvoldeskine @rpavliuk Thanks! |
@yahavi after updating the plugin to the 5.1.1 version the warning has gone. |
I can confirm it is working again now. Regression (it's an official term) is gone now. Thank you for the quick fix, my builds are sped up now. |
We appreciate the confirmation, @rpavliuk & @raydenvoldeskine! |
AGP 7.x introduced configuration cache: https://docs.gradle.org/7.3.2/userguide/configuration_cache.html#config_cache:intro
When I tried to enable it in my Android project like this in
gradle.properties
...I've got the following errors after the simplest
./gradlew help
:They all seem to be the same standard problem that could be fixed in the plugin thus making it supporting configuration cache (and making builds faster).
For the time being I can workaround it by simply treating these errors as warnings and setting insanely high limit on errors:
Ideally JFrog pluging implements all the necessary changes to provide such support.
The text was updated successfully, but these errors were encountered: