-
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
generateEffectiveLombokConfig is not cached #549
Comments
Please have a look at #525 (comment) |
@larsgrefer
but if I make any changes at all to any files - not to config then I get
and my entire source is recompiled. This is better than the previous situation (always recompiling everything) but not ideal because if the config hasn't changed then the generateEffectiveLombokConfig should be UP-TO-DATE already and not invalidate the java compile. |
|
Thats a good point. For the up-to-date check here, I don't care about the contents of your java classes, just where they are. I'll have a look at this. |
I'm not sure I fully understand, but doesn't the effective Lombok config only depend on files called lombok.config and those imported by it? I'd assumed that no java classes needed to be used at all? |
Thats correct. Given your example path of
It traverses the file system upwards, starting at the java source file. That's why the location of the java sources is important. The content of the source files is not needed. |
Oh, of course sorry. I forgot that Lombok configuration can be per directory. Thank you. |
+1 , using |
This has been fixed but not released. Locally I'm currently running the main branch as my plugin by installing the plugin into maven local and then referencing that in my project build instead of a release. It's annoying having to keep merging my local changes in git though and I can't commit it because the build machine doesn't have this plugin snapshot. |
Is it possible to include this change in the next version of the plugin? |
@kancsuki This should already be released for some time now |
Hello, am I correct in stating that based on #525 (comment), the Running with plugin version
In this scenario, there exists only one lombok.config file found at the root of the project: While the task typically executes very quickly, in some cases it can take up to 31 seconds or so. Could this task be made cacheable as pointed out here? |
When I run gradle build and then without any changes in the code I run gradle build again then all the generateEffectiveLombokConfig tasks are run again even though the code hasn't change. IMHO generateEffectiveLombokConfig should be cached and it should only run again if there was a change in the code. (I'm using 6.4.3)
The text was updated successfully, but these errors were encountered: