This has nothing to do with gradle, just that your lombok version is incompatible with jdk you're using to build. Spring Boot BOM will bring some version of lombok that you might have to upgrade if you're using newer jdk than that boot version targeted.