-
Notifications
You must be signed in to change notification settings - Fork 33
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
Lombok plugin does not support Gradle configuration cache #1059
Comments
This should have been fixed in 6aec34a#diff-63fae8c516a4967b0d7d6d9f377498a917d53ddd44778ae584a0c5078bed416f Which version of the Plugin are you using? |
Plugin version 8.6 |
I also get the same issue using 8.6 with Gradle 8.7, but on Delombok task.
|
@mrozanc Can you share an example project that reproduces the problem? Or can you at least share the full stack trace for the warning? |
OK, it's as simple as creating a new Java Gradle 8.7 project, adding the What you get when you run Long output with not so helpful stack
And the more interresting part that you get with the actual call in the configuration cache HTML report:
So I would suggest this as a quick fix: #1122 (which I quickly tested using includeBuild from the above dummy project for now). Edit: unfortunately when I try to add a test with config cache I have this limitation in the test log:
|
Probably a similar change as in #1122 needs to be made to https://github.com/freefair/gradle-plugins/blob/2140f55daaf7834197eb4d37dc625f679538cc3c/lombok-plugin/src/main/java/io/freefair/gradle/plugins/lombok/tasks/GenerateLombokConfig.java ? |
I could not reproduce your issue with I don't see the same problem I had with Edit: your initial log mentions an "other task", probably this other task requires some adaptation. |
I can confirm this issue, but with weird build errors coming from For those passing by having the same issue and needing a quick and dirty fix, here's how to disregard all benefits from configuration cache: val delombok by tasks.getting(Delombok::class) {
// Workaround for :delombok returning cached compilation errors.
inputs.files("doesntexist/${UUID.randomUUID()}")
} |
The Lombok plugin 8.6 fails when the Gradle configuration cache is enabled and the
generateEffectiveLombokConfig
task is ran.The text was updated successfully, but these errors were encountered: