gradle-plugins icon indicating copy to clipboard operation
gradle-plugins copied to clipboard

Sporadically slow Lombok generateTestEffectiveLombokConfig step

Open lars06 opened this issue 2 years ago • 5 comments

I'm having an issue where the Lombok plugin often causes dramatically longer build times on CI (Azure DevOps). It is not 100% reproducible as it only occurs on some runs, but I ran the Gradle build scan 4 times with build cache off and here are the results:

Execution time of generateTestEffectiveLombokConfig:

  • 27.76 s
  • 20.16 s
  • 0.21 s
  • 0.30 s

This is a pretty big difference and causes quite slow builds when adding 30 seconds. The rest of the steps in my build scan stay relatively stable, so it appears to be related to Lombok. The generateIntegrationTestEffectiveLombokConfig and generateEffectiveLombokConfig steps vary between 0.1 - 3 s, so less drastic than the other step but still worth noting.

Any idea why the execution time would vary so much when the build cache is off and no code changes have been made? Let me know if I can provide any further information to help! :) Thanks!


Gradle version: 8.0.2 io.freefair.lombok version: 8.0.1

lars06 avatar Apr 05 '23 15:04 lars06

I can confirm the same, generateTestEffectiveLombokConfig and generateEffectiveLombokConfig sometimes take over 1 minute (!) in my project.

ppawel avatar Jun 10 '23 10:06 ppawel

I've added some logging which will print the actual execution time and the parameters used. I hope this helps to further investigate the problem.

larsgrefer avatar Aug 08 '23 21:08 larsgrefer

Any news ? I'm having the same issue. A build scan showed 5minute execution time for generateTestEffectiveLombokConfig which is in the TOP 5 of the slowest tasks.

kristofdepypere avatar Jan 31 '24 12:01 kristofdepypere

I have the same issue - it would be nice to know why it takes so long.

cschoell avatar Jun 27 '24 15:06 cschoell

I use Gradle 8.1.1, and io.freefair.lombok 8.6 plugin generateTestEffectiveLombokConfig takes over a minute (1m29s).

Is there any chance to optimize it?

xeagle2 avatar Jul 01 '24 18:07 xeagle2

got into this we have nexus for dependencies and plugins added mavenCentral() into build.gradle -> repositories before nexus urls now build/bootRun executes properly

adikmain avatar May 19 '25 09:05 adikmain

Hey @adikmain,

Thats nice to hear that the issue is found. I'll close the issue then.

Frisch12 avatar Jun 25 '25 07:06 Frisch12