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
Fix configuration cache issues #54
Comments
Thanks for this incompatibility report @C-Otto. I think the solution is making the
Would be helpful if you could try it :-) |
That works with the
Feel free to give it a try in my playground: https://github.com/C-Otto/playground/ I had to edit |
Do you also have another change unknown to me as "work on my machine"(TM)... BTW as I accidentally saw "architecture-tests": Do you know https://www.archunit.org/ (open sourcen and build by the company I work for. Also on https://www.thoughtworks.com/radar/tools/archunit ;-)) |
Signed-off-by: Andreas Schmid <service@aaschmid.de>
I open issues as soon as I see the need :) I know about ArchUnit, have used it in projects - it's a great tool! It's on my TODO list, I want to use it in the playground project. |
Is your |
Yes, I still see that issue. Reproducible with |
On I have the following changes:
|
I had to run the |
As reported on November 28, building the second time triggers a failure. Reproduced with Gradle 7.0 RC1, Java 16, CPD 3.2-SNAPSHOT. |
To reproduce:
|
Yes, I have the same issue ;-) |
Unfortunately, I don't see any easy fixes for this, rather I need to rewrite a good part of the properties / configuration stuff of the plugin :-( |
Signed-off-by: Andreas Schmid <service@aaschmid.de>
Another yet strange thing is that my test application works with bfe0311, however your project does now complain about a |
Signed-off-by: Andreas Schmid <service@aaschmid.de>
Signed-off-by: Andreas Schmid <service@aaschmid.de>
Signed-off-by: Andreas Schmid <service@aaschmid.de>
Signed-off-by: Andreas Schmid <service@aaschmid.de>
Signed-off-by: Andreas Schmid <service@aaschmid.de>
Signed-off-by: Andreas Schmid <service@aaschmid.de>
Signed-off-by: Andreas Schmid <service@aaschmid.de>
Signed-off-by: Andreas Schmid <service@aaschmid.de>
Signed-off-by: Andreas Schmid <service@aaschmid.de>
Signed-off-by: Andreas Schmid <service@aaschmid.de>
Signed-off-by: Andreas Schmid <service@aaschmid.de>
* to be able to use `--configuration-cache` in tests * because APIs changed again, see `forUseAtConfigurationTime()` Signed-off-by: Andreas Schmid <service@aaschmid.de>
At least I found the problem with |
@C-Otto with the newest However the warning from above is skipped and I still have no clue where it comes from :-( |
Thank you! For Google's sake, here's the warning as text:
From that page:
I don't know how that relates to the plugin, though. |
Unfortunately, I never directly relate to As far as I could analyse it, I inherit from My reports are built upon the API described in |
Maybe this helps? https://github.com/gradle/gradle/pull/14628/files#diff-239c622f1af32f1bee008aa813579ded9fffeb072f25557cf8eb27801268c770 |
Thank you @C-Otto. To be honest I was professionally blinkered in a way that The PR from above let me rethink it and now I could copy and adjust from the correct place - first tests look promising :-) |
* as it would break configuration-cache * Thanks to @C-Otto for the decisive link (#54 (comment)) Signed-off-by: Andreas Schmid <service@aaschmid.de>
* and by the way update spock to used groovy version Signed-off-by: Andreas Schmid <service@aaschmid.de>
Merged to master, preparing for next release... |
* #54.configuration.cache: check-in acceptance test for configuration cache (#54) do not use Project within configuration lambda (#54) align report methods with internal quality tasks like PMD upgrade to Gradle 6.6 (#54) make encoding property compatible with configuration cache (#54) use primitive wrapper as otherwise it is not configuration cached (#54) fix configuration cache problem with reports (#54) upgrade to Gradle 6.1
Configuration cache working with v3.2 of |
The new incubating feature "configuration cache" seems to be incompatible with the plugin:
https://docs.gradle.org/6.8-rc-1/userguide/configuration_cache.html
Stacktrace snippet:
The text was updated successfully, but these errors were encountered: